summaryrefslogtreecommitdiffstats
path: root/src/include/pci.h
diff options
context:
space:
mode:
authorMichael Brown2005-04-14 15:44:07 +0200
committerMichael Brown2005-04-14 15:44:07 +0200
commit104880ca19e230ebbe6a4f46fa17e32ff05324f2 (patch)
treed99a776582dfb278218299f88c3ee8fd8203e631 /src/include/pci.h
parentSeparate out bus-scanning and device-probing logic. (diff)
downloadipxe-104880ca19e230ebbe6a4f46fa17e32ff05324f2.tar.gz
ipxe-104880ca19e230ebbe6a4f46fa17e32ff05324f2.tar.xz
ipxe-104880ca19e230ebbe6a4f46fa17e32ff05324f2.zip
Tweak API to allow separation of bus-scanning and device-probing logic.
Diffstat (limited to 'src/include/pci.h')
-rw-r--r--src/include/pci.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/include/pci.h b/src/include/pci.h
index 988259a32..e7ac084b5 100644
--- a/src/include/pci.h
+++ b/src/include/pci.h
@@ -236,10 +236,9 @@
* A physical PCI device
*
*/
-struct dev;
struct pci_device {
char * magic; /* must be first */
- struct dev * dev;
+ const char * name;
uint32_t membase; /* BAR 1 */
uint32_t ioaddr; /* first IO BAR */
uint16_t vendor, dev_id;
@@ -322,9 +321,9 @@ extern unsigned long pci_bus_base ( struct pci_device *dev );
* Functions in pci.c
*
*/
-extern struct pci_device * pci_device ( struct dev *dev );
extern int find_pci_device ( struct pci_device *pci,
struct pci_driver *driver );
+extern int find_pci_boot_device ( struct dev *dev, struct pci_driver *driver );
extern void adjust_pci_device ( struct pci_device *pci );
extern unsigned long pci_bar_start ( struct pci_device *pci,
unsigned int bar );