diff options
author | Andreas Kling <kling@serenityos.org> | 2020-04-08 17:26:39 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-04-08 17:26:39 +0200 |
commit | e5ec332eb164d4eb9b4fd7e0ac6249e1e7379a45 (patch) | |
tree | 771aa128194850228bacd9c73fcbc300117cf59f /Kernel/PCI | |
parent | c8b309a3b589ec827895c52e3a52276435947653 (diff) | |
download | serenity-e5ec332eb164d4eb9b4fd7e0ac6249e1e7379a45.zip |
Kernel: Make most of the PCI::MMIOAccess members private
This class is really meant to be used via a base class pointer.
Diffstat (limited to 'Kernel/PCI')
-rw-r--r-- | Kernel/PCI/MMIOAccess.h | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/Kernel/PCI/MMIOAccess.h b/Kernel/PCI/MMIOAccess.h index e24a329684..d61808042b 100644 --- a/Kernel/PCI/MMIOAccess.h +++ b/Kernel/PCI/MMIOAccess.h @@ -41,22 +41,20 @@ namespace PCI { class MMIOAccess final : public Access { public: static void initialize(PhysicalAddress mcfg); - virtual void enumerate_all(Function<void(Address, ID)>&) override final; - - virtual const char* access_type() const override { return "MMIO-Access"; }; - virtual u32 segment_count() const override; - - 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); 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 const char* access_type() const override { return "MMIO-Access"; }; + virtual u32 segment_count() const override; + virtual void enumerate_all(Function<void(Address, ID)>&) override; + virtual void write8_field(Address address, u32, u8) override; + virtual void write16_field(Address address, u32, u16) override; + virtual void write32_field(Address address, u32, u32) override; + virtual u8 read8_field(Address address, u32) override; + virtual u16 read16_field(Address address, u32) override; + virtual u32 read32_field(Address address, u32) override; void map_device(Address address); virtual u8 segment_start_bus(u32) const override; |