NeKernel
dev
Loading...
Searching...
No Matches
APM.h
Go to the documentation of this file.
1
/* ========================================
2
3
Copyright (C) 2024-2025, Amlal El Mahrouss, licensed under the Apache 2.0 license.
4
5
======================================== */
6
7
#pragma once
8
9
#include <
NeKit/Config.h
>
10
11
namespace
Kernel
{
12
typedef
Int32
APMPowerCmd
;
13
14
enum
{
15
kAPMPowerCommandInvalid
= 0x00,
16
kAPMPowerCommandStop
= 0x01,
17
kAPMPowerCommandStart
= 0x02,
18
kAPMPowerCommandSleep
= 0x04,
19
kAPMPowerCommandWakeup
= 0x06,
20
kAPMPowerCommandShutdown
= 0x07,
21
kAPMPowerCommandReboot
= 0x08,
22
};
23
28
EXTERN_C
Int32
apm_send_io_command
(
UInt16
cmd);
29
}
// namespace Kernel
EXTERN_C
#define EXTERN_C
Config.h
Kernel
UPS inline definitions.
Definition
Device.h:12
Kernel::UInt16
__UINT16_TYPE__ UInt16
Definition
Config.h:40
Kernel::kAPMPowerCommandSleep
@ kAPMPowerCommandSleep
Definition
APM.h:18
Kernel::kAPMPowerCommandReboot
@ kAPMPowerCommandReboot
Definition
APM.h:21
Kernel::kAPMPowerCommandStop
@ kAPMPowerCommandStop
Definition
APM.h:16
Kernel::kAPMPowerCommandInvalid
@ kAPMPowerCommandInvalid
Definition
APM.h:15
Kernel::kAPMPowerCommandWakeup
@ kAPMPowerCommandWakeup
Definition
APM.h:19
Kernel::kAPMPowerCommandShutdown
@ kAPMPowerCommandShutdown
Definition
APM.h:20
Kernel::kAPMPowerCommandStart
@ kAPMPowerCommandStart
Definition
APM.h:17
Kernel::apm_send_io_command
EXTERN_C Int32 apm_send_io_command(UInt16 cmd)
Send a APM command into it's controller. (Shutdown, Reboot, Sleep...).
Kernel::Int32
__INT32_TYPE__ Int32
Definition
Config.h:38
Kernel::APMPowerCmd
Int32 APMPowerCmd
Definition
APM.h:12
src
modules
APM
APM.h
Generated by
1.15.0