summaryrefslogtreecommitdiffhomepage
path: root/dev/modules/HPET
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2025-03-23 19:13:48 +0100
committerAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2025-03-23 19:15:17 +0100
commita13e1c0911c0627184bc38f18c7fdda64447b3ad (patch)
tree073a62c09bf216e85a3f310376640fa1805147f9 /dev/modules/HPET
parent149fa096eb306d03686b3b67e813cf1a78e08cd0 (diff)
meta(kernel): Reworked repository's filesystem structure.
Removing useless parts of the project too. Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'dev/modules/HPET')
-rw-r--r--dev/modules/HPET/.gitkeep0
-rw-r--r--dev/modules/HPET/Defines.h42
2 files changed, 42 insertions, 0 deletions
diff --git a/dev/modules/HPET/.gitkeep b/dev/modules/HPET/.gitkeep
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/dev/modules/HPET/.gitkeep
diff --git a/dev/modules/HPET/Defines.h b/dev/modules/HPET/Defines.h
new file mode 100644
index 00000000..36df3ebd
--- /dev/null
+++ b/dev/modules/HPET/Defines.h
@@ -0,0 +1,42 @@
+/* -------------------------------------------
+
+ Copyright (C) 2024-2025, Amlal EL Mahrouss, all rights reserved.
+
+ File: HPET.h
+ Purpose: HPET builtin.
+
+ Revision History:
+
+------------------------------------------- */
+
+#pragma once
+
+#include <NewKit/Defines.h>
+#include <modules/ACPI/ACPI.h>
+
+namespace NeOS
+{
+ struct PACKED HPETAddressStructure final
+ {
+ NeOS::UInt8 AddressSpaceId; // 0 - system memory, 1 - system I/O
+ NeOS::UInt8 RegisterBitWidth;
+ NeOS::UInt8 RegisterBitOffset;
+ NeOS::UInt8 Reserved;
+ NeOS::UInt64 Address;
+ };
+
+ struct PACKED HPETHeader final : public SDT
+ {
+ NeOS::UInt8 HardwareRevId;
+ NeOS::UInt8 ComparatorCount : 5;
+ NeOS::UInt8 CounterSize : 1;
+ NeOS::UInt8 Reserved : 1;
+ NeOS::UInt8 LegacyReplacement : 1;
+ NeOS::UInt16 PciVendorId;
+ HPETAddressStructure Address;
+ NeOS::UInt8 HpetNumber;
+ NeOS::UInt16 MinimumTick;
+ NeOS::UInt8 PageProtection;
+ };
+
+} // namespace NeOS