Skip to content
Snippets Groups Projects
Commit 1818504a authored by Dor Laor's avatar Dor Laor
Browse files

Fix pci subsystem address and add bar0 addr

parent 8715112a
No related branches found
No related tags found
No related merge requests found
...@@ -28,9 +28,11 @@ using processor::outl; ...@@ -28,9 +28,11 @@ using processor::outl;
PCI_CLASS_OFFSET = 0xb, PCI_CLASS_OFFSET = 0xb,
PCI_SUBCLASS_OFFSET= 0xa, PCI_SUBCLASS_OFFSET= 0xa,
PCI_HEADER_TYPE = 0xe, PCI_HEADER_TYPE = 0xe,
PCI_SUBSYSTEM_ID = 0x40, PCI_SUBSYSTEM_ID = 0x2e,
PCI_SUBSYSTEM_VID = 0x42, PCI_SUBSYSTEM_VID = 0x2c,
PCI_HEADER_MULTI_FUNC = 0x80, PCI_HEADER_MULTI_FUNC = 0x80,
PCI_BAR0_ADDR = 0x10,
PCI_CAPABILITIES_PTR = 0x34,
}; };
u32 read_pci_config(u8 bus, u8 slot, u8 func, u8 offset); u32 read_pci_config(u8 bus, u8 slot, u8 func, u8 offset);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment