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:
Michael Brown
2007-07-02 17:43:32 +01:00
parent 8febe42f78
commit 5f17089b14
7 changed files with 64 additions and 57 deletions

View File

@@ -705,6 +705,8 @@ static int isapnpbus_probe ( struct root_device *rootdev ) {
isapnp->dev.desc.bus_type = BUS_TYPE_ISAPNP;
isapnp->dev.desc.vendor = isapnp->vendor_id;
isapnp->dev.desc.device = isapnp->prod_id;
isapnp->dev.desc.ioaddr = isapnp->ioaddr;
isapnp->dev.desc.irq = isapnp->irqno;
isapnp->dev.parent = &rootdev->dev;
list_add ( &isapnp->dev.siblings,
&rootdev->dev.children );

View File

@@ -286,6 +286,9 @@ static int pcibus_probe ( struct root_device *rootdev ) {
pci->dev.desc.location = PCI_BUSDEVFN (bus, devfn);
pci->dev.desc.vendor = pci->vendor;
pci->dev.desc.device = pci->device;
pci->dev.desc.class = pci->class;
pci->dev.desc.ioaddr = pci->ioaddr;
pci->dev.desc.irq = pci->irq;
pci->dev.parent = &rootdev->dev;
list_add ( &pci->dev.siblings, &rootdev->dev.children);
INIT_LIST_HEAD ( &pci->dev.children );