mirror of
https://github.com/EnderIce2/Fennix.git
synced 2025-07-10 23:09:15 +00:00
Implemented shutdown & reboot
This commit is contained in:
@ -8,17 +8,42 @@ namespace Power
|
||||
class Power
|
||||
{
|
||||
private:
|
||||
// specific for 64 and 32 bit
|
||||
void *acpi;
|
||||
void *dsdt;
|
||||
void *madt;
|
||||
void *acpi = nullptr;
|
||||
void *dsdt = nullptr;
|
||||
void *madt = nullptr;
|
||||
|
||||
public:
|
||||
/**
|
||||
* @brief Get Advanced Configuration and Power Interface. (Available only on x32 and x64)
|
||||
*
|
||||
* @return void*
|
||||
*/
|
||||
void *GetACPI() { return this->acpi; }
|
||||
|
||||
/**
|
||||
* @brief Get Differentiated System Description Table. (Available only on x32 and x64)
|
||||
*
|
||||
* @return void*
|
||||
*/
|
||||
void *GetDSDT() { return this->dsdt; }
|
||||
|
||||
/**
|
||||
* @brief Get Multiple APIC Description Table. (Available only on x32 and x64)
|
||||
*
|
||||
* @return void*
|
||||
*/
|
||||
void *GetMADT() { return this->madt; }
|
||||
|
||||
/**
|
||||
* @brief Reboot the system.
|
||||
*/
|
||||
void Reboot();
|
||||
|
||||
/**
|
||||
* @brief Shutdown the system.
|
||||
*/
|
||||
void Shutdown();
|
||||
|
||||
Power();
|
||||
~Power();
|
||||
};
|
||||
|
Reference in New Issue
Block a user