Hi,
what's the right way of getting the pci ids of a device when
traversing the device tree?
is seems that the "path" part can be used, but there's no reference to
the real hardware. I need this only _after_ pci initialization.
The config tool creates the following structure for an 8131 for example:
struct chip amd8131 = {
.link = 1,
.path = {
{ .enable = 1, .path = {.type=DEVICE_PATH_PCI,.u={.pci={ .bus = 0x0, .devfn = PCI_DEVFN(0x0,0) }}}},
{ .enable = 1, .path = {.type=DEVICE_PATH_PCI,.u={.pci={ .bus = 0x0, .devfn = PCI_DEVFN(0x0,1) }}}},
{ .enable = 1, .path = {.type=DEVICE_PATH_PCI,.u={.pci={ .bus = 0x0, .devfn = PCI_DEVFN(0x1,0) }}}},
{ .enable = 1, .path = {.type=DEVICE_PATH_PCI,.u={.pci={ .bus = 0x0, .devfn = PCI_DEVFN(0x1,1) }}}},
},
.next = &amd8111,
.children = 0,
.control= 0,
.chip_info= 0,
};
Best regards,
Stefan Reinauer
--
Stefan Reinauer, SUSE LINUX AG
Teamleader Architecture Development