mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
pci: introduce FMT_PCIBUS for printf format for pcibus_t.
This patch is preliminary for 64bit BAR. Later pcibus_t will be changed from uint32_t to uint64_t. Introduce FMT_PCIBUS for printf format for pcibus_t. Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp> Acked-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
6e355d901b
commit
89e8b13c53
6 changed files with 24 additions and 12 deletions
1
hw/pci.h
1
hw/pci.h
|
@ -72,6 +72,7 @@ extern target_phys_addr_t pci_mem_base;
|
|||
#define PCI_DEVICE_ID_VIRTIO_CONSOLE 0x1003
|
||||
|
||||
typedef uint32_t pcibus_t;
|
||||
#define FMT_PCIBUS PRIx32
|
||||
|
||||
typedef void PCIConfigWriteFunc(PCIDevice *pci_dev,
|
||||
uint32_t address, uint32_t data, int len);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue