summaryrefslogtreecommitdiffhomepage
path: root/Kernel/Modules/HPET
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2024-06-24 14:33:40 +0200
committerAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2024-06-24 14:34:18 +0200
commit9784f940cf71aef91ccbeb1a11651a83a3eff213 (patch)
treebf0294e5ad8161372aaa27cacbfba4eb3e81eda0 /Kernel/Modules/HPET
parent7738550a55d6fa79447d0298c53fe6320a3135b2 (diff)
IMP: UIAccessibilty class, work in progress Core CoreGraphics (GPU/FB
SDK). REFACTOR: Moved Builtins to Modules/ Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'Kernel/Modules/HPET')
-rw-r--r--Kernel/Modules/HPET/.gitkeep0
-rw-r--r--Kernel/Modules/HPET/Defines.hxx42
2 files changed, 42 insertions, 0 deletions
diff --git a/Kernel/Modules/HPET/.gitkeep b/Kernel/Modules/HPET/.gitkeep
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/Kernel/Modules/HPET/.gitkeep
diff --git a/Kernel/Modules/HPET/Defines.hxx b/Kernel/Modules/HPET/Defines.hxx
new file mode 100644
index 00000000..b0366ad2
--- /dev/null
+++ b/Kernel/Modules/HPET/Defines.hxx
@@ -0,0 +1,42 @@
+/* -------------------------------------------
+
+ Copyright Zeta Electronics Corporation
+
+ File: HPET.hxx
+ Purpose: HPET builtin.
+
+ Revision History:
+
+------------------------------------------- */
+
+#pragma once
+
+#include <NewKit/Defines.hpp>
+#include <Modules/ACPI/ACPI.hxx>
+
+namespace NewOS
+{
+ struct PACKED HPETAddressStructure final
+ {
+ NewOS::UInt8 AddressSpaceId; // 0 - system memory, 1 - system I/O
+ NewOS::UInt8 RegisterBitWidth;
+ NewOS::UInt8 RegisterBitOffset;
+ NewOS::UInt8 Reserved;
+ NewOS::UInt64 Address;
+ };
+
+ struct PACKED HPETHeader final : public SDT
+ {
+ NewOS::UInt8 HardwareRevId;
+ NewOS::UInt8 ComparatorCount : 5;
+ NewOS::UInt8 CounterSize : 1;
+ NewOS::UInt8 Reserved : 1;
+ NewOS::UInt8 LegacyReplacement : 1;
+ NewOS::UInt16 PciVendorId;
+ HPETAddressStructure Address;
+ NewOS::UInt8 HpetNumber;
+ NewOS::UInt16 MinimumTick;
+ NewOS::UInt8 PageProtection;
+ };
+
+} // namespace NewOS