mirror of
https://github.com/RGBCube/serenity
synced 2025-06-01 03:08:13 +00:00
Kernel: Add write{8,16,32} to the PCI Capability struct
MSI(x) mechanism requires the device to write to its Capability structure. Add write{8,16,32} similar to read{8,16,32}.
This commit is contained in:
parent
91da264a4c
commit
71c75873c9
2 changed files with 24 additions and 0 deletions
|
@ -238,6 +238,9 @@ public:
|
|||
u8 read8(size_t offset) const;
|
||||
u16 read16(size_t offset) const;
|
||||
u32 read32(size_t offset) const;
|
||||
void write8(size_t offset, u8 value) const;
|
||||
void write16(size_t offset, u16 value) const;
|
||||
void write32(size_t offset, u32 value) const;
|
||||
|
||||
private:
|
||||
const Address m_address;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue