From d9d82713326069478e6dd212763d1fac15e65370 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Mon, 14 Oct 2024 05:58:38 +0000 Subject: IMP: Basic ARM64 port. --- dev/modules/APM/APM.hxx | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) (limited to 'dev/modules/APM') 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 -- cgit v1.2.3