diff options
| author | Michael Brown | 2007-01-10 16:27:48 +0100 |
|---|---|---|
| committer | Michael Brown | 2007-01-10 16:27:48 +0100 |
| commit | fdc97499bf83ef958db8a50985fdd321835dccf3 (patch) | |
| tree | 344a37ef66fa70650a85cd7429ad139bc7b284e0 /src/drivers/bus | |
| parent | Give UNDI device a more meaningful name. (diff) | |
| download | ipxe-fdc97499bf83ef958db8a50985fdd321835dccf3.tar.gz ipxe-fdc97499bf83ef958db8a50985fdd321835dccf3.tar.xz ipxe-fdc97499bf83ef958db8a50985fdd321835dccf3.zip | |
Add device description fields to struct device.
Diffstat (limited to 'src/drivers/bus')
| -rw-r--r-- | src/drivers/bus/pci.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/drivers/bus/pci.c b/src/drivers/bus/pci.c index 11a8e0a0..56436b7d 100644 --- a/src/drivers/bus/pci.c +++ b/src/drivers/bus/pci.c @@ -282,6 +282,10 @@ static int pcibus_probe ( struct root_device *rootdev ) { snprintf ( pci->dev.name, sizeof ( pci->dev.name ), "PCI%02x:%02x.%x", bus, PCI_SLOT ( devfn ), PCI_FUNC ( devfn ) ); + pci->dev.desc.bus_type = BUS_TYPE_PCI; + pci->dev.desc.pci.busdevfn = PCI_BUSDEVFN (bus, devfn); + pci->dev.desc.pci.vendor = pci->vendor; + pci->dev.desc.pci.device = pci->device; pci->dev.parent = &rootdev->dev; list_add ( &pci->dev.siblings, &rootdev->dev.children); INIT_LIST_HEAD ( &pci->dev.children ); |
