Revision deb54399 hw/cirrus_vga.c
b/hw/cirrus_vga.c | ||
---|---|---|
173 | 173 |
#define CIRRUS_MMIO_LINEDRAW_MODE 0x39 // byte |
174 | 174 |
#define CIRRUS_MMIO_BLTSTATUS 0x40 // byte |
175 | 175 |
|
176 |
// PCI 0x00: vendor, 0x02: device |
|
177 |
#define PCI_VENDOR_CIRRUS 0x1013 |
|
176 |
// PCI 0x02: device |
|
178 | 177 |
#define PCI_DEVICE_CLGD5462 0x00d0 |
179 | 178 |
#define PCI_DEVICE_CLGD5465 0x00d6 |
180 | 179 |
|
... | ... | |
3376 | 3375 |
sizeof(PCICirrusVGAState), |
3377 | 3376 |
-1, NULL, pci_cirrus_write_config); |
3378 | 3377 |
pci_conf = d->dev.config; |
3379 |
pci_conf[0x00] = (uint8_t) (PCI_VENDOR_CIRRUS & 0xff); |
|
3380 |
pci_conf[0x01] = (uint8_t) (PCI_VENDOR_CIRRUS >> 8); |
|
3381 |
pci_conf[0x02] = (uint8_t) (device_id & 0xff); |
|
3382 |
pci_conf[0x03] = (uint8_t) (device_id >> 8); |
|
3378 |
pci_config_set_vendor_id(pci_conf, PCI_VENDOR_ID_CIRRUS); |
|
3379 |
pci_config_set_device_id(pci_conf, device_id); |
|
3383 | 3380 |
pci_conf[0x04] = PCI_COMMAND_IOACCESS | PCI_COMMAND_MEMACCESS; |
3384 | 3381 |
pci_conf[0x0a] = PCI_CLASS_SUB_VGA; |
3385 | 3382 |
pci_conf[0x0b] = PCI_CLASS_BASE_DISPLAY; |
Also available in: Unified diff