From 5f17089b148211dd8667af4efa9302a1f46dbc49 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Mon, 2 Jul 2007 17:43:32 +0100 Subject: 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. --- src/include/gpxe/device.h | 6 ++++++ src/include/pxe.h | 2 ++ 2 files changed, 8 insertions(+) (limited to 'src/include') 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 */ -- cgit v1.2.3-55-g7522