summaryrefslogtreecommitdiffstats
path: root/src/include
diff options
context:
space:
mode:
authorMichael Brown2007-07-02 18:43:32 +0200
committerMichael Brown2007-07-02 18:43:32 +0200
commit5f17089b148211dd8667af4efa9302a1f46dbc49 (patch)
tree0d131e90f9b7d2ebdc9422e3d5bd24ff31dd0d98 /src/include
parentBuild bochs with ne2000 support, and add sample lines in bochsrc.txt (diff)
downloadipxe-5f17089b148211dd8667af4efa9302a1f46dbc49.tar.gz
ipxe-5f17089b148211dd8667af4efa9302a1f46dbc49.tar.xz
ipxe-5f17089b148211dd8667af4efa9302a1f46dbc49.zip
pxe_netdev now holds a reference to the network device.
Use generic fields in struct device_description rather than assuming that the struct device * is contained within a pci_device or isapnp_device; this assumption is broken when using the undionly driver. Add PXENV_UNDI_SET_STATION_ADDRESS.
Diffstat (limited to 'src/include')
-rw-r--r--src/include/gpxe/device.h6
-rw-r--r--src/include/pxe.h2
2 files changed, 8 insertions, 0 deletions
diff --git a/src/include/gpxe/device.h b/src/include/gpxe/device.h
index f88a2da5a..caabdae56 100644
--- a/src/include/gpxe/device.h
+++ b/src/include/gpxe/device.h
@@ -27,6 +27,12 @@ struct device_description {
unsigned int vendor;
/** Device ID */
unsigned int device;
+ /** Device class */
+ unsigned long class;
+ /** I/O address */
+ unsigned long ioaddr;
+ /** IRQ */
+ unsigned int irq;
};
/** PCI bus type */
diff --git a/src/include/pxe.h b/src/include/pxe.h
index aba774efd..301bb10b8 100644
--- a/src/include/pxe.h
+++ b/src/include/pxe.h
@@ -137,4 +137,6 @@ struct pcir_header {
extern struct net_device *pxe_netdev;
+extern void pxe_set_netdev ( struct net_device *netdev );
+
#endif /* PXE_H */