2 * libqos PCI bindings for SPAPR
4 * This work is licensed under the terms of the GNU GPL, version 2 or later.
5 * See the COPYING file in the top-level directory.
8 #ifndef LIBQOS_PCI_SPAPR_H
9 #define LIBQOS_PCI_SPAPR_H
15 /* From include/hw/pci-host/spapr.h */
17 typedef struct QPCIWindow
{
18 uint64_t pci_base
; /* window address in PCI space */
19 uint64_t size
; /* window size */
22 typedef struct QPCIBusSPAPR
{
25 QGuestAllocator
*alloc
;
29 uint64_t pio_cpu_base
;
32 uint64_t mmio32_cpu_base
;
36 void qpci_init_spapr(QPCIBusSPAPR
*ret
, QTestState
*qts
,
37 QGuestAllocator
*alloc
);
38 QPCIBus
*qpci_new_spapr(QTestState
*qts
, QGuestAllocator
*alloc
);
39 void qpci_free_spapr(QPCIBus
*bus
);