diff options
| author | Amlal El Mahrouss <amlal@el-mahrouss-logic.com> | 2024-03-17 19:54:32 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal@el-mahrouss-logic.com> | 2024-03-17 19:54:32 +0100 |
| commit | a8366afaf39321ae2bbae70740f5ca65bee06769 (patch) | |
| tree | e7c7384a2611a02dacae4e1f0e43b863b541fad5 /Private/Builtins | |
| parent | 5a0a901f6d4a4499c13877376ff34e6411500410 (diff) | |
unrelated: Rework the ACPI interface.
Signed-off-by: Amlal El Mahrouss <amlal@el-mahrouss-logic.com>
Diffstat (limited to 'Private/Builtins')
| -rw-r--r-- | Private/Builtins/ACPI/ACPIFactoryInterface.hxx (renamed from Private/Builtins/ACPI/ACPIManager.hxx) | 20 | ||||
| -rw-r--r-- | Private/Builtins/README.TXT | 2 |
2 files changed, 15 insertions, 7 deletions
diff --git a/Private/Builtins/ACPI/ACPIManager.hxx b/Private/Builtins/ACPI/ACPIFactoryInterface.hxx index 1fa5e714..21cd026e 100644 --- a/Private/Builtins/ACPI/ACPIManager.hxx +++ b/Private/Builtins/ACPI/ACPIFactoryInterface.hxx @@ -13,20 +13,28 @@ #include <NewKit/Ref.hpp> namespace HCore { -class ACPIManager final { +class ACPIFactoryInterface final { public: - explicit ACPIManager(voidPtr rsdPtr); - ~ACPIManager() = default; + explicit ACPIFactoryInterface(voidPtr rsdPtr); + ~ACPIFactoryInterface() = default; - ACPIManager &operator=(const ACPIManager &) = default; - ACPIManager(const ACPIManager &) = default; + ACPIFactoryInterface &operator=(const ACPIFactoryInterface &) = default; + ACPIFactoryInterface(const ACPIFactoryInterface &) = default; public: void Shutdown(); // shutdown - void Reset(); // soft-reboot + void Reboot(); // soft-reboot + public: + /// @brief Descriptor find factory. + /// @param signature The signature of the descriptor table (MADT, ACPI...) + /// @return the blob inside an ErrorOr object. ErrorOr<voidPtr> Find(const char *signature); + /// @brief Checksum factory. + /// @param checksum the data to checksum + /// @param len it's size + /// @return if it succeed bool Checksum(const char *checksum, SSizeT len); // watch for collides! public: diff --git a/Private/Builtins/README.TXT b/Private/Builtins/README.TXT index ce39f472..2e341e5d 100644 --- a/Private/Builtins/README.TXT +++ b/Private/Builtins/README.TXT @@ -12,5 +12,5 @@ These are HCore builtins device drivers. Maintainers =========== -ACPIManager: Amlal EL Mahrouss +ACPIFactoryInterface: Amlal EL Mahrouss AHCI: Amlal EL Mahrouss
\ No newline at end of file |
