mirror of
https://github.com/EnderIce2/Fennix.git
synced 2025-07-07 05:19:17 +00:00
Update files
This commit is contained in:
@ -3,12 +3,41 @@
|
||||
|
||||
#include <types.h>
|
||||
|
||||
struct Time
|
||||
namespace Time
|
||||
{
|
||||
uint64_t Year, Month, Day, Hour, Minute, Second;
|
||||
uint64_t Counter;
|
||||
};
|
||||
struct Clock
|
||||
{
|
||||
uint64_t Year, Month, Day, Hour, Minute, Second;
|
||||
uint64_t Counter;
|
||||
};
|
||||
|
||||
Time ReadClock();
|
||||
Clock ReadClock();
|
||||
|
||||
class time
|
||||
{
|
||||
private:
|
||||
struct HPET
|
||||
{
|
||||
uint64_t GeneralCapabilities;
|
||||
uint64_t Reserved0;
|
||||
uint64_t GeneralConfiguration;
|
||||
uint64_t Reserved1;
|
||||
uint64_t GeneralIntStatus;
|
||||
uint64_t Reserved2;
|
||||
uint64_t Reserved3[24];
|
||||
uint64_t MainCounterValue;
|
||||
uint64_t Reserved4;
|
||||
};
|
||||
|
||||
void *acpi;
|
||||
void *hpet;
|
||||
uint32_t clk = 0;
|
||||
|
||||
public:
|
||||
void Sleep(uint64_t Milliseconds);
|
||||
time(void *acpi);
|
||||
~time();
|
||||
};
|
||||
}
|
||||
|
||||
#endif // !__FENNIX_KERNEL_TIME_H__
|
||||
|
Reference in New Issue
Block a user