Revision 28c2c264 hw/cirrus_vga.c
b/hw/cirrus_vga.c | ||
---|---|---|
3336 | 3336 |
/* memory #0 LFB */ |
3337 | 3337 |
/* memory #1 memory-mapped I/O */ |
3338 | 3338 |
/* XXX: s->vga.vram_size must be a power of two */ |
3339 |
pci_register_io_region((PCIDevice *)d, 0, 0x2000000,
|
|
3339 |
pci_register_bar((PCIDevice *)d, 0, 0x2000000,
|
|
3340 | 3340 |
PCI_ADDRESS_SPACE_MEM_PREFETCH, cirrus_pci_lfb_map); |
3341 | 3341 |
if (device_id == CIRRUS_ID_CLGD5446) { |
3342 |
pci_register_io_region((PCIDevice *)d, 1, CIRRUS_PNPMMIO_SIZE,
|
|
3342 |
pci_register_bar((PCIDevice *)d, 1, CIRRUS_PNPMMIO_SIZE,
|
|
3343 | 3343 |
PCI_ADDRESS_SPACE_MEM, cirrus_pci_mmio_map); |
3344 | 3344 |
} |
3345 | 3345 |
/* XXX: ROM BIOS */ |
Also available in: Unified diff