Revision 6b1b92d3 hw/pci.h
b/hw/pci.h | ||
---|---|---|
3 | 3 |
|
4 | 4 |
#include "qemu-common.h" |
5 | 5 |
|
6 |
#include "qdev.h" |
|
7 |
|
|
6 | 8 |
/* PCI includes legacy ISA access. */ |
7 | 9 |
#include "isa.h" |
8 | 10 |
|
... | ... | |
138 | 140 |
#define PCI_COMMAND_RESERVED_MASK_HI (PCI_COMMAND_RESERVED >> 8) |
139 | 141 |
|
140 | 142 |
struct PCIDevice { |
143 |
DeviceState qdev; |
|
141 | 144 |
/* PCI config space */ |
142 | 145 |
uint8_t config[256]; |
143 | 146 |
|
... | ... | |
217 | 220 |
cpu_to_le16wu((uint16_t *)&pci_config[PCI_CLASS_DEVICE], val); |
218 | 221 |
} |
219 | 222 |
|
223 |
typedef void (*pci_qdev_initfn)(PCIDevice *dev); |
|
224 |
void pci_qdev_register(const char *name, int size, pci_qdev_initfn init); |
|
225 |
|
|
226 |
PCIDevice *pci_create_simple(PCIBus *bus, int devfn, const char *name); |
|
227 |
|
|
220 | 228 |
/* lsi53c895a.c */ |
221 | 229 |
#define LSI_MAX_DEVS 7 |
222 | 230 |
void lsi_scsi_attach(void *opaque, BlockDriverState *bd, int id); |
Also available in: Unified diff