diff options
author | Michael Brown | 2005-04-12 20:04:03 +0200 |
---|---|---|
committer | Michael Brown | 2005-04-12 20:04:03 +0200 |
commit | 762fa9a4787a6594e29cb9f90ec99d7396cc2bad (patch) | |
tree | 8acdd71ea7414900a91bcbe319f906705071d997 /src/include/dev.h | |
parent | Use pci_{vendor,device}_id instead of just pci_{vendor,device}, to avoid (diff) | |
download | ipxe-762fa9a4787a6594e29cb9f90ec99d7396cc2bad.tar.gz ipxe-762fa9a4787a6594e29cb9f90ec99d7396cc2bad.tar.xz ipxe-762fa9a4787a6594e29cb9f90ec99d7396cc2bad.zip |
Fix up find_pci_device so that it can be used for scanning for devices
*other* than the main boot device.
Diffstat (limited to 'src/include/dev.h')
-rw-r--r-- | src/include/dev.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/include/dev.h b/src/include/dev.h index aa9ccac3..3c029b91 100644 --- a/src/include/dev.h +++ b/src/include/dev.h @@ -3,6 +3,7 @@ #include "stdint.h" #include "nic.h" +#include "pci.h" /* Need to check the packing of this struct if Etherboot is ported */ struct dev_id { @@ -17,9 +18,13 @@ struct dev_id { #define DEV_ID_SIZE 8 struct dev { + struct dev_operations *dev_op; const char *name; struct dev_id devid; /* device ID string (sent to DHCP server) */ - struct dev_operations *dev_op; + /* All possible bus types */ + union { + struct pci_device pci; + }; /* All possible device types */ union { struct nic nic; |