summaryrefslogtreecommitdiffhomepage
path: root/dev/modules/APM
diff options
context:
space:
mode:
authorAmlal El Mahrouss <zka-holder@mahrouss-logic.com>2024-10-14 05:58:38 +0000
committerAmlal El Mahrouss <zka-holder@mahrouss-logic.com>2024-10-14 05:58:38 +0000
commitd9d82713326069478e6dd212763d1fac15e65370 (patch)
tree37775f4299281598b0f5121df4c188392daebd04 /dev/modules/APM
parent7477a0f942c374b652da4f80cdb36d4661aac3c8 (diff)
IMP: Basic ARM64 port.
Diffstat (limited to 'dev/modules/APM')
-rw-r--r--dev/modules/APM/APM.hxx17
1 files changed, 10 insertions, 7 deletions
diff --git a/dev/modules/APM/APM.hxx b/dev/modules/APM/APM.hxx
index abcfb468..ed9f6f45 100644
--- a/dev/modules/APM/APM.hxx
+++ b/dev/modules/APM/APM.hxx
@@ -14,21 +14,24 @@ namespace Kernel
enum
{
- kAPMPowerCommandStop = 0x01,
- kAPMPowerCommandStart = 0x02,
- kAPMPowerCommandSleep = 0x04,
- kAPMPowerCommandSWakeup = 0x06
+ kAPMPowerCommandInvalid = 0x00,
+ kAPMPowerCommandStop = 0x01,
+ kAPMPowerCommandStart = 0x02,
+ kAPMPowerCommandSleep = 0x04,
+ kAPMPowerCommandWakeup = 0x06,
+ kAPMPowerCommandShutdown = 0x07,
+ kAPMPowerCommandReboot = 0x08,
};
/// @brief Send a APM command into it's own DMA space.
/// @param base_dma the DMA base address.
/// @param cmd the command.
/// @return status code.
- EXTERN_C Int32 apm_send_dma_command(Ptr64 base_dma, APMPowerCmd cmd);
+ EXTERN_C Int32 apm_send_dma_command(Ptr64 register_addr, APMPowerCmd value);
/// @brief Send a APM command into it's own IO space.
/// @param base_dma the IO base port.
/// @param cmd the command.
/// @return status code.
- EXTERN_C Int32 apm_send_io_command(UInt16 base_port, APMPowerCmd cmd);
-} // namespace Kernel \ No newline at end of file
+ EXTERN_C Int32 apm_send_io_command(UInt16 cmd, APMPowerCmd value);
+} // namespace Kernel