Revision fb47a2e9
b/hw/pci_host.h | ||
---|---|---|
30 | 30 |
|
31 | 31 |
#include "sysbus.h" |
32 | 32 |
|
33 |
typedef struct {
|
|
33 |
struct PCIHostState {
|
|
34 | 34 |
SysBusDevice busdev; |
35 | 35 |
uint32_t config_reg; |
36 | 36 |
PCIBus *bus; |
37 |
} PCIHostState;
|
|
37 |
}; |
|
38 | 38 |
|
39 | 39 |
void pci_data_write(PCIBus *s, uint32_t addr, uint32_t val, int len); |
40 | 40 |
uint32_t pci_data_read(PCIBus *s, uint32_t addr, int len); |
b/hw/pcie_host.h | ||
---|---|---|
24 | 24 |
|
25 | 25 |
#include "pci_host.h" |
26 | 26 |
|
27 |
typedef struct {
|
|
27 |
struct PCIExpressHost {
|
|
28 | 28 |
PCIHostState pci; |
29 | 29 |
|
30 | 30 |
/* express part */ |
... | ... | |
37 | 37 |
|
38 | 38 |
/* result of cpu_register_io_memory() to map MMCONFIG area */ |
39 | 39 |
int mmio_index; |
40 |
} PCIExpressHost;
|
|
40 |
}; |
|
41 | 41 |
|
42 | 42 |
int pcie_host_init(PCIExpressHost *e); |
43 | 43 |
void pcie_host_mmcfg_unmap(PCIExpressHost *e); |
b/qemu-common.h | ||
---|---|---|
198 | 198 |
typedef struct i2c_slave i2c_slave; |
199 | 199 |
typedef struct SMBusDevice SMBusDevice; |
200 | 200 |
typedef struct QEMUTimer QEMUTimer; |
201 |
typedef struct PCIHostState PCIHostState; |
|
202 |
typedef struct PCIExpressHost PCIExpressHost; |
|
201 | 203 |
typedef struct PCIBus PCIBus; |
202 | 204 |
typedef struct PCIDevice PCIDevice; |
203 | 205 |
typedef struct SerialState SerialState; |
Also available in: Unified diff