Kernel/PCI: Fix offset error of the PCI_SUBSYSTEM values

Apparently both PCI_SUBSYSTEM_ID and PCI_SUBSYSTEM_VENDOR_ID offsets
should be swapped from one to another to be correct.
This commit is contained in:
Liav A 2021-08-27 11:33:37 +03:00 committed by Andreas Kling
parent b596af363c
commit 5a0aa66b73
Notes: sideshowbarker 2024-07-18 05:00:04 +09:00

View file

@ -32,8 +32,8 @@ namespace Kernel {
#define PCI_BAR3 0x1C // u32
#define PCI_BAR4 0x20 // u32
#define PCI_BAR5 0x24 // u32
#define PCI_SUBSYSTEM_ID 0x2C // u16
#define PCI_SUBSYSTEM_VENDOR_ID 0x2E // u16
#define PCI_SUBSYSTEM_VENDOR_ID 0x2C // u16
#define PCI_SUBSYSTEM_ID 0x2E // u16
#define PCI_CAPABILITIES_POINTER 0x34 // u8
#define PCI_INTERRUPT_LINE 0x3C // byte
#define PCI_SECONDARY_BUS 0x19 // byte