diff options
author | pbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162> | 2009-04-10 02:24:36 +0000 |
---|---|---|
committer | pbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162> | 2009-04-10 02:24:36 +0000 |
commit | b584726df971c1238a5249cc21121cf2ebbcaf55 (patch) | |
tree | 32b73d21de064d8b3c28750d35608cac701d1863 /hw/cirrus_vga.c | |
parent | a8b01dd87f3f1cb93d51ce87b13f57fe5415e33e (diff) | |
download | qemu-b584726df971c1238a5249cc21121cf2ebbcaf55.zip qemu-b584726df971c1238a5249cc21121cf2ebbcaf55.tar.gz qemu-b584726df971c1238a5249cc21121cf2ebbcaf55.tar.bz2 |
Clean up VGA ram allocation.
Signed-off-by: Paul Brook <paul@codesourcery.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7063 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/cirrus_vga.c')
-rw-r--r-- | hw/cirrus_vga.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/hw/cirrus_vga.c b/hw/cirrus_vga.c index 08fd4c2..2200ae0 100644 --- a/hw/cirrus_vga.c +++ b/hw/cirrus_vga.c @@ -3289,15 +3289,13 @@ static void cirrus_init_common(CirrusVGAState * s, int device_id, int is_pci) * ***************************************/ -void isa_cirrus_vga_init(uint8_t *vga_ram_base, - ram_addr_t vga_ram_offset, int vga_ram_size) +void isa_cirrus_vga_init(int vga_ram_size) { CirrusVGAState *s; s = qemu_mallocz(sizeof(CirrusVGAState)); - vga_common_init((VGAState *)s, - vga_ram_base, vga_ram_offset, vga_ram_size); + vga_common_init((VGAState *)s, vga_ram_size); cirrus_init_common(s, CIRRUS_ID_CLGD5430, 0); s->ds = graphic_console_init(s->update, s->invalidate, s->screen_dump, s->text_update, s); @@ -3358,8 +3356,7 @@ static void pci_cirrus_write_config(PCIDevice *d, vga_dirty_log_start((VGAState *)s); } -void pci_cirrus_vga_init(PCIBus *bus, uint8_t *vga_ram_base, - ram_addr_t vga_ram_offset, int vga_ram_size) +void pci_cirrus_vga_init(PCIBus *bus, int vga_ram_size) { PCICirrusVGAState *d; uint8_t *pci_conf; @@ -3381,8 +3378,7 @@ void pci_cirrus_vga_init(PCIBus *bus, uint8_t *vga_ram_base, /* setup VGA */ s = &d->cirrus_vga; - vga_common_init((VGAState *)s, - vga_ram_base, vga_ram_offset, vga_ram_size); + vga_common_init((VGAState *)s, vga_ram_size); cirrus_init_common(s, device_id, 1); s->ds = graphic_console_init(s->update, s->invalidate, |