mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-19 12:30:32 +00:00
26 lines
574 B
C#
26 lines
574 B
C#
using sysIO = System.IO;
|
|
namespace Cosmos.System
|
|
{
|
|
/// <summary>
|
|
/// Power class.
|
|
/// </summary>
|
|
public static class Power
|
|
{
|
|
/// <summary>
|
|
/// Reboot with CPU.
|
|
/// </summary>
|
|
public static void Reboot()
|
|
{
|
|
HAL.Power.CPUReboot();
|
|
}
|
|
|
|
/// <summary>
|
|
/// Shutdown the ACPI.
|
|
/// </summary>
|
|
/// <exception cref="sysIO.IOException">Thrown on IO error.</exception>
|
|
public static void Shutdown()
|
|
{
|
|
HAL.Power.ACPIShutdown();
|
|
}
|
|
}
|
|
}
|