Lines Matching full:pci
20 #include "hw/pci/pci_device.h"
21 #include "hw/pci/pci_bus.h"
26 * Recursively (in reverse order) appends addresses of PCI devices as it moves
27 * up in the PCI hierarchy.
31 static bool append_pci_address(char *buf, size_t buf_size, const PCIDevice *pci) in append_pci_address() argument
33 PCIBus *bus = pci_get_bus(pci); in append_pci_address()
44 PCI_SLOT(pci->devfn), PCI_FUNC(pci->devfn)); in append_pci_address()
57 PCIDevice *pci = (PCIDevice *) object_dynamic_cast(OBJECT(dev), in qemu_console_fill_device_address() local
60 if (pci == NULL) { in qemu_console_fill_device_address()
62 "Not a PCI device."); in qemu_console_fill_device_address()
66 strncpy(device_address, "pci/0000", size); in qemu_console_fill_device_address()
67 if (!append_pci_address(device_address, size, pci)) { in qemu_console_fill_device_address()
69 "Too many PCI devices in the chain."); in qemu_console_fill_device_address()