mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-22 05:48:37 +00:00
- The user can now Enable and Disable ACPI - Image change in the setup (for a better design) - Bug fixed with Remote Debugging (NRE)
42 lines
No EOL
772 B
C#
42 lines
No EOL
772 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using Cosmos.Core;
|
|
|
|
namespace Cosmos.HAL
|
|
{
|
|
public class Power
|
|
{
|
|
//Reboot with CPU
|
|
public static void CPUReboot()
|
|
{
|
|
Core.Global.CPU.Reboot();
|
|
}
|
|
|
|
//Reboot with ACPI
|
|
public static void Reboot()
|
|
{
|
|
ACPI.Reboot();
|
|
}
|
|
|
|
//Shutdown with ACPI
|
|
public static void Shutdown()
|
|
{
|
|
ACPI.Shutdown();
|
|
}
|
|
|
|
//Enable ACPI
|
|
public static void ACPIEnable()
|
|
{
|
|
ACPI.Enable();
|
|
}
|
|
|
|
//Disable ACPI
|
|
public static void ACPIDisable()
|
|
{
|
|
ACPI.Disable();
|
|
}
|
|
}
|
|
} |