|
@@ -1468,3 +1468,10 @@ EARLY_PCI_OP(read, dword, u32 *)
|
|
|
EARLY_PCI_OP(write, byte, u8)
|
|
|
EARLY_PCI_OP(write, word, u16)
|
|
|
EARLY_PCI_OP(write, dword, u32)
|
|
|
+
|
|
|
+extern int pci_bus_find_capability (struct pci_bus *bus, unsigned int devfn, int cap);
|
|
|
+int early_find_capability(struct pci_controller *hose, int bus, int devfn,
|
|
|
+ int cap)
|
|
|
+{
|
|
|
+ return pci_bus_find_capability(fake_pci_bus(hose, bus), devfn, cap);
|
|
|
+}
|