mirror of
https://github.com/ipxe/ipxe
synced 2025-12-20 12:00:19 +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:
@@ -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 );
|
||||
|
||||
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user