Revision 81a322d4 hw/vga.c
b/hw/vga.c | ||
---|---|---|
2482 | 2482 |
s->map_addr = 0; |
2483 | 2483 |
} |
2484 | 2484 |
|
2485 |
static void pci_vga_initfn(PCIDevice *dev)
|
|
2485 |
static int pci_vga_initfn(PCIDevice *dev)
|
|
2486 | 2486 |
{ |
2487 | 2487 |
PCIVGAState *d = DO_UPCAST(PCIVGAState, dev, dev); |
2488 | 2488 |
VGAState *s = &d->vga_state; |
... | ... | |
2513 | 2513 |
bios_total_size <<= 1; |
2514 | 2514 |
pci_register_bar(&d->dev, PCI_ROM_SLOT, bios_total_size, |
2515 | 2515 |
PCI_ADDRESS_SPACE_MEM_PREFETCH, vga_map); |
2516 |
} |
|
2516 |
} |
|
2517 |
return 0; |
|
2517 | 2518 |
} |
2518 | 2519 |
|
2519 | 2520 |
int pci_vga_init(PCIBus *bus, |
Also available in: Unified diff