mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 05:57:45 +00:00
Kernel/PCI: Convert PCI BAR number to a strong typed enum class
This commit is contained in:
parent
f510c0ba04
commit
bb6f61ee5d
10 changed files with 26 additions and 17 deletions
|
@ -21,6 +21,15 @@ enum class HeaderType {
|
|||
Bridge = 1,
|
||||
};
|
||||
|
||||
enum class HeaderType0BaseRegister {
|
||||
BAR0 = 0,
|
||||
BAR1,
|
||||
BAR2,
|
||||
BAR3,
|
||||
BAR4,
|
||||
BAR5,
|
||||
};
|
||||
|
||||
enum class RegisterOffset {
|
||||
VENDOR_ID = 0x00, // word
|
||||
DEVICE_ID = 0x02, // word
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue