mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:47:45 +00:00
Kernel/PCI: Expose PCI option ROM data from the sysfs interface
For each exposed PCI device in sysfs, there's a new node called "rom" and by reading it, it exposes the raw data of a PCI option ROM blob to a user for examining the blob.
This commit is contained in:
parent
1f9d3a3523
commit
a7677f1d9b
6 changed files with 155 additions and 0 deletions
|
@ -35,6 +35,8 @@ u32 get_BAR5(DeviceIdentifier const&);
|
|||
u32 get_BAR(DeviceIdentifier const&, HeaderType0BaseRegister);
|
||||
size_t get_BAR_space_size(DeviceIdentifier const&, HeaderType0BaseRegister);
|
||||
BARSpaceType get_BAR_space_type(u32 pci_bar_value);
|
||||
size_t get_expansion_rom_space_size(DeviceIdentifier const&);
|
||||
|
||||
void enable_bus_mastering(DeviceIdentifier const&);
|
||||
void disable_bus_mastering(DeviceIdentifier const&);
|
||||
void enable_io_space(DeviceIdentifier const&);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue