Revision 173a543b hw/pci.h
b/hw/pci.h | ||
---|---|---|
8 | 8 |
|
9 | 9 |
extern target_phys_addr_t pci_mem_base; |
10 | 10 |
|
11 |
/* Device classes and subclasses */ |
|
12 |
|
|
13 |
#define PCI_CLASS_STORAGE_SCSI 0x0100 |
|
14 |
#define PCI_CLASS_STORAGE_IDE 0x0101 |
|
15 |
#define PCI_CLASS_STORAGE_OTHER 0x0180 |
|
16 |
|
|
17 |
#define PCI_CLASS_NETWORK_ETHERNET 0x0200 |
|
18 |
|
|
19 |
#define PCI_CLASS_DISPLAY_VGA 0x0300 |
|
20 |
#define PCI_CLASS_DISPLAY_OTHER 0x0380 |
|
21 |
|
|
22 |
#define PCI_CLASS_MULTIMEDIA_AUDIO 0x0401 |
|
23 |
|
|
24 |
#define PCI_CLASS_MEMORY_RAM 0x0500 |
|
25 |
|
|
26 |
#define PCI_CLASS_SYSTEM_OTHER 0x0880 |
|
27 |
|
|
28 |
#define PCI_CLASS_SERIAL_USB 0x0c03 |
|
29 |
|
|
30 |
#define PCI_CLASS_BRIDGE_HOST 0x0600 |
|
31 |
#define PCI_CLASS_BRIDGE_ISA 0x0601 |
|
32 |
#define PCI_CLASS_BRIDGE_PCI 0x0604 |
|
33 |
#define PCI_CLASS_BRIDGE_OTHER 0x0680 |
|
34 |
|
|
35 |
#define PCI_CLASS_PROCESSOR_CO 0x0b40 |
|
36 |
|
|
37 |
#define PCI_CLASS_OTHERS 0xff |
|
38 |
|
|
39 |
/* Vendors and devices. */ |
|
40 |
|
|
11 | 41 |
#define PCI_VENDOR_ID_LSI_LOGIC 0x1000 |
12 | 42 |
#define PCI_DEVICE_ID_LSI_53C895A 0x0012 |
13 | 43 |
|
... | ... | |
209 | 239 |
cpu_to_le16wu((uint16_t *)&pci_config[PCI_DEVICE_ID], val); |
210 | 240 |
} |
211 | 241 |
|
242 |
static inline void |
|
243 |
pci_config_set_class(uint8_t *pci_config, uint16_t val) |
|
244 |
{ |
|
245 |
cpu_to_le16wu((uint16_t *)&pci_config[PCI_CLASS_DEVICE], val); |
|
246 |
} |
|
247 |
|
|
212 | 248 |
/* lsi53c895a.c */ |
213 | 249 |
#define LSI_MAX_DEVS 7 |
214 | 250 |
void lsi_scsi_attach(void *opaque, BlockDriverState *bd, int id); |
Also available in: Unified diff