Revision b90c73cf hw/cirrus_vga.c
b/hw/cirrus_vga.c | ||
---|---|---|
3204 | 3204 |
/* memory #0 LFB */ |
3205 | 3205 |
/* memory #1 memory-mapped I/O */ |
3206 | 3206 |
/* XXX: s->vga.vram_size must be a power of two */ |
3207 |
pci_register_bar((PCIDevice *)d, 0, 0x2000000,
|
|
3207 |
pci_register_bar(&d->dev, 0, 0x2000000,
|
|
3208 | 3208 |
PCI_BASE_ADDRESS_MEM_PREFETCH, cirrus_pci_lfb_map); |
3209 | 3209 |
if (device_id == CIRRUS_ID_CLGD5446) { |
3210 |
pci_register_bar((PCIDevice *)d, 1, CIRRUS_PNPMMIO_SIZE,
|
|
3210 |
pci_register_bar(&d->dev, 1, CIRRUS_PNPMMIO_SIZE,
|
|
3211 | 3211 |
PCI_BASE_ADDRESS_SPACE_MEMORY, cirrus_pci_mmio_map); |
3212 | 3212 |
} |
3213 | 3213 |
return 0; |
Also available in: Unified diff