summaryrefslogtreecommitdiffhomepage
path: root/dev/SCIKit
diff options
context:
space:
mode:
authorAmlal <amlalelmahrouss@icloud.com>2024-11-30 19:48:33 +0100
committerAmlal <amlalelmahrouss@icloud.com>2024-11-30 19:48:33 +0100
commit98b24c3a90d3c97a06cb553d08369943605efbe0 (patch)
treed5762818e678ec0047d03ccea54108873e6c5f94 /dev/SCIKit
parentb2588beae1dceeb0a0c5e95976874c6d6d53c703 (diff)
META: Add new error code for CD trays. New Power mgmt and CD-ROM API. Also format code.
Signed-off-by: Amlal <amlalelmahrouss@icloud.com>
Diffstat (limited to 'dev/SCIKit')
-rw-r--r--dev/SCIKit/Foundation.h19
-rw-r--r--dev/SCIKit/LPC.h1
-rw-r--r--dev/SCIKit/src/Makefile2
3 files changed, 21 insertions, 1 deletions
diff --git a/dev/SCIKit/Foundation.h b/dev/SCIKit/Foundation.h
index ba186511..039fe6ce 100644
--- a/dev/SCIKit/Foundation.h
+++ b/dev/SCIKit/Foundation.h
@@ -208,4 +208,23 @@ IMPORT_C Void EvtRemoveListener(_Input const Char* event_name, _Input SCIObject
/// @return the event data.
IMPORT_C VoidPtr EvtDispatchEvent(_Input const Char* event_name, _Input VoidPtr event_data);
+// ------------------------------------------------------------------------------------------ //
+// 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);
+
+// ------------------------------------------------------------------------------------------ //
+// CD-ROM API.
+// ------------------------------------------------------------------------------------------ //
+
+IMPORT_C SInt32 CdEjectDrive(_Input const Char drv_letter);
+
+IMPORT_C SInt32 CdOpenTray(Void);
+IMPORT_C SInt32 CdCloseTray(Void);
+
#endif // ifndef SCIKIT_FOUNDATION_H
diff --git a/dev/SCIKit/LPC.h b/dev/SCIKit/LPC.h
index 918cab17..4f2a4e86 100644
--- a/dev/SCIKit/LPC.h
+++ b/dev/SCIKit/LPC.h
@@ -47,6 +47,7 @@ inline constexpr ErrObject kErrorNonBlocking = 58;
inline constexpr ErrObject kErrorIPC = 59;
inline constexpr ErrObject kErrorSign = 60;
inline constexpr ErrObject kErrorInvalidCreds = 61;
+inline constexpr ErrObject kErrorCDTrayBroken = 62;
inline constexpr ErrObject kErrorUnimplemented = 0;
/// @brief The last error reported by the system to the process.
diff --git a/dev/SCIKit/src/Makefile b/dev/SCIKit/src/Makefile
index e7daa038..588f233a 100644
--- a/dev/SCIKit/src/Makefile
+++ b/dev/SCIKit/src/Makefile
@@ -1,5 +1,5 @@
##################################################
-# (c) EL Mahrouss Logic, all rights reserved.
+# (c) ELMH Group, all rights reserved.
# This is the bootloader makefile.
##################################################