mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
pci: add pci_address_space()
Returns the PCI address space. Useful for bridges that can obscure part of the PCI address space. Signed-off-by: Avi Kivity <avi@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
c839adec88
commit
f5e6fed879
2 changed files with 6 additions and 0 deletions
5
hw/pci.c
5
hw/pci.c
|
@ -2165,3 +2165,8 @@ int pci_qdev_find_device(const char *id, PCIDevice **pdev)
|
|||
|
||||
return rc;
|
||||
}
|
||||
|
||||
MemoryRegion *pci_address_space(PCIDevice *dev)
|
||||
{
|
||||
return dev->bus->address_space_mem;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue