mirror of
https://github.com/ipxe/ipxe
synced 2025-12-23 05:21:49 +03:00
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.
This commit is contained in:
@@ -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 */
|
||||
|
||||
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user