Revision 46e50e9d hw/cirrus_vga.c
b/hw/cirrus_vga.c | ||
---|---|---|
2891 | 2891 |
s->cirrus_mmio_io_addr); |
2892 | 2892 |
} |
2893 | 2893 |
|
2894 |
void pci_cirrus_vga_init(DisplayState *ds, uint8_t *vga_ram_base, |
|
2894 |
void pci_cirrus_vga_init(PCIBus *bus, DisplayState *ds, uint8_t *vga_ram_base,
|
|
2895 | 2895 |
unsigned long vga_ram_offset, int vga_ram_size) |
2896 | 2896 |
{ |
2897 | 2897 |
PCICirrusVGAState *d; |
... | ... | |
2902 | 2902 |
device_id = CIRRUS_ID_CLGD5446; |
2903 | 2903 |
|
2904 | 2904 |
/* setup PCI configuration registers */ |
2905 |
d = (PCICirrusVGAState *)pci_register_device("Cirrus VGA", |
|
2905 |
d = (PCICirrusVGAState *)pci_register_device(bus, "Cirrus VGA",
|
|
2906 | 2906 |
sizeof(PCICirrusVGAState), |
2907 |
0, -1, NULL, NULL);
|
|
2907 |
-1, NULL, NULL); |
|
2908 | 2908 |
pci_conf = d->dev.config; |
2909 | 2909 |
pci_conf[0x00] = (uint8_t) (PCI_VENDOR_CIRRUS & 0xff); |
2910 | 2910 |
pci_conf[0x01] = (uint8_t) (PCI_VENDOR_CIRRUS >> 8); |
Also available in: Unified diff