1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 20:17:44 +00:00

Kernel: Move PCI::MMIOSegment declaration into MMIOAccess.cpp

This is only used inside PCI::MMIOAccess, no need to expose it.
This commit is contained in:
Andreas Kling 2020-04-08 17:14:55 +02:00
parent 44e889785a
commit 7d28d9b2af
2 changed files with 41 additions and 37 deletions

View file

@ -36,8 +36,9 @@
#include <Kernel/VM/VMObject.h>
namespace Kernel {
namespace PCI {
class PCI::MMIOAccess final : public PCI::Access {
class MMIOAccess final : public Access {
public:
static void initialize(PhysicalAddress mcfg);
virtual void enumerate_all(Function<void(Address, ID)>&) override final;
@ -64,21 +65,8 @@ private:
PhysicalAddress m_mcfg;
HashMap<u16, MMIOSegment*>& m_segments;
OwnPtr<Region> m_mmio_window_region;
PCI::ChangeableAddress m_mapped_address;
};
class PCI::MMIOSegment {
public:
MMIOSegment(PhysicalAddress, u8, u8);
u8 get_start_bus();
u8 get_end_bus();
size_t get_size();
PhysicalAddress get_paddr();
private:
PhysicalAddress m_base_addr;
u8 m_start_bus;
u8 m_end_bus;
ChangeableAddress m_mapped_address;
};
}
}