diff options
author | Liav A <liavalb@gmail.com> | 2020-03-08 16:50:46 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-03-09 10:53:13 +0100 |
commit | 0f45a1b5e74f22d0cad4db54f5d00cb2e2e8f328 (patch) | |
tree | 7219ddbf3db60b38590f6eb8561cb2f39e197882 /Kernel/PCI/IOAccess.h | |
parent | 8639ee26406158ebf3c37e85729db2c4883d414b (diff) | |
download | serenity-0f45a1b5e74f22d0cad4db54f5d00cb2e2e8f328.zip |
Kernel: Allow to reboot in ACPI via PCI or MMIO access
Also, we determine if ACPI reboot is supported by checking the FADT
flags' field.
Diffstat (limited to 'Kernel/PCI/IOAccess.h')
-rw-r--r-- | Kernel/PCI/IOAccess.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Kernel/PCI/IOAccess.h b/Kernel/PCI/IOAccess.h index 20e24d5257..7fc58e148b 100644 --- a/Kernel/PCI/IOAccess.h +++ b/Kernel/PCI/IOAccess.h @@ -37,6 +37,10 @@ public: virtual String get_access_type() override final { return "IO-Access"; }; virtual uint32_t get_segments_count() { return 1; }; + virtual void write8_field(Address address, u32, u8) override final; + virtual void write16_field(Address address, u32, u16) override final; + virtual void write32_field(Address address, u32, u32) override final; + protected: IOAccess(); @@ -44,13 +48,9 @@ private: virtual u8 read8_field(Address address, u32) override final; virtual u16 read16_field(Address address, u32) override final; virtual u32 read32_field(Address address, u32) override final; - virtual void write8_field(Address address, u32, u8) override final; - virtual void write16_field(Address address, u32, u16) override final; - virtual void write32_field(Address address, u32, u32) override final; virtual uint8_t get_segment_start_bus(u32) { return 0x0; }; virtual uint8_t get_segment_end_bus(u32) { return 0xFF; }; }; } - |