summaryrefslogtreecommitdiffstats
path: root/src/include/dev.h
diff options
context:
space:
mode:
authorMichael Brown2005-04-12 20:04:03 +0200
committerMichael Brown2005-04-12 20:04:03 +0200
commit762fa9a4787a6594e29cb9f90ec99d7396cc2bad (patch)
tree8acdd71ea7414900a91bcbe319f906705071d997 /src/include/dev.h
parentUse pci_{vendor,device}_id instead of just pci_{vendor,device}, to avoid (diff)
downloadipxe-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.h7
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;