mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-30 06:06:48 +00:00
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.
This commit is contained in:
parent
8639ee2640
commit
0f45a1b5e7
Notes:
sideshowbarker
2024-07-19 08:49:08 +09:00
Author: https://github.com/supercomputer7
Commit: 0f45a1b5e7
Pull-request: https://github.com/SerenityOS/serenity/pull/1385
Reviewed-by: https://github.com/awesomekling
9 changed files with 183 additions and 25 deletions
|
@ -45,6 +45,10 @@ public:
|
|||
virtual String get_access_type() override final { return "MMIO-Access"; };
|
||||
virtual u32 get_segments_count();
|
||||
|
||||
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:
|
||||
explicit MMIOAccess(PhysicalAddress mcfg);
|
||||
|
||||
|
@ -52,9 +56,6 @@ 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;
|
||||
|
||||
void map_device(Address address);
|
||||
virtual u8 get_segment_start_bus(u32);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue