summaryrefslogtreecommitdiffhomepage
path: root/dev/LibSCI
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2025-01-08 09:26:13 +0100
committerAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2025-01-08 09:26:13 +0100
commit491f19514fe986954e702e14023a2d9b1b54e066 (patch)
treec2ec83abb512f3e0d7d8dcb172bb37db5e72d15d /dev/LibSCI
parentd302a6f4761ef2eee60416736ffb24144cbe6cc9 (diff)
ADD: Format user name according to type of user in k*User macros.
ADD: Refactor Power mgmt API in SCI. ADD: Rework documentation of AHCI. Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'dev/LibSCI')
-rw-r--r--dev/LibSCI/SCI.h19
1 files changed, 12 insertions, 7 deletions
diff --git a/dev/LibSCI/SCI.h b/dev/LibSCI/SCI.h
index 7f7321d2..69945d20 100644
--- a/dev/LibSCI/SCI.h
+++ b/dev/LibSCI/SCI.h
@@ -244,13 +244,18 @@ IMPORT_C VoidPtr EvtDispatchEvent(_Input const Char* event_name, _Input VoidPtr
// Power API.
// ------------------------------------------------------------------------------------------ //
-IMPORT_C Void PwrShutdownMachine(const Char* _Input msg, _Input SInt32 code);
-
-IMPORT_C Void PwrRebootMachine(const Char* _Input msg, _Input SInt32 code);
-
-IMPORT_C Void PwrSleepMachine(const Char* _Input msg, _Input SInt32 code);
-
-IMPORT_C SInt32 PwrGetCode(_Output SInt32& code);
+enum
+{
+ kPowerCodeShutdown,
+ kPowerCodeReboot,
+ kPowerCodeSleep,
+ kPowerCodeWake,
+ kPowerCodeCount,
+};
+
+IMPORT_C SInt32 PwrReadCode(_Output SInt32& code);
+
+IMPORT_C SInt32 PwrSendCode(_Output SInt32& code);
// ------------------------------------------------------------------------------------------ //
// CD-ROM API.