diff options
Diffstat (limited to 'dev/SCIKit')
| -rw-r--r-- | dev/SCIKit/Foundation.h | 19 | ||||
| -rw-r--r-- | dev/SCIKit/LPC.h | 1 | ||||
| -rw-r--r-- | dev/SCIKit/src/Makefile | 2 |
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. ################################################## |
