Update files

This commit is contained in:
Alex
2022-10-26 21:55:31 +03:00
parent f82aa2c444
commit 581638c256
9 changed files with 202 additions and 86 deletions

View File

@ -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__