aboutsummaryrefslogtreecommitdiff
path: root/hw/vga.c
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2004-06-21 19:43:00 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2004-06-21 19:43:00 +0000
commit46e50e9d58aa0fd6ab8f5cadceb8b55ee7e1d806 (patch)
tree98b646b43c0032b4d2fafb8ad16d7bde2fbd69bc /hw/vga.c
parent7c29d0c0cff07660e8f012f0befb01962ac5f7f6 (diff)
downloadqemu-46e50e9d58aa0fd6ab8f5cadceb8b55ee7e1d806.zip
qemu-46e50e9d58aa0fd6ab8f5cadceb8b55ee7e1d806.tar.gz
qemu-46e50e9d58aa0fd6ab8f5cadceb8b55ee7e1d806.tar.bz2
added PCI bus
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@961 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/vga.c')
-rw-r--r--hw/vga.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/hw/vga.c b/hw/vga.c
index 57bad8f..1a55975 100644
--- a/hw/vga.c
+++ b/hw/vga.c
@@ -1747,9 +1747,8 @@ void vga_common_init(VGAState *s, DisplayState *ds, uint8_t *vga_ram_base,
}
-int vga_initialize(DisplayState *ds, uint8_t *vga_ram_base,
- unsigned long vga_ram_offset, int vga_ram_size,
- int is_pci)
+int vga_initialize(PCIBus *bus, DisplayState *ds, uint8_t *vga_ram_base,
+ unsigned long vga_ram_offset, int vga_ram_size)
{
VGAState *s;
@@ -1805,14 +1804,13 @@ int vga_initialize(DisplayState *ds, uint8_t *vga_ram_base,
cpu_register_physical_memory(isa_mem_base + 0x000a0000, 0x20000,
vga_io_memory);
- if (is_pci) {
+ if (bus) {
PCIDevice *d;
uint8_t *pci_conf;
- d = pci_register_device("VGA",
+ d = pci_register_device(bus, "VGA",
sizeof(PCIDevice),
- 0, -1,
- NULL, NULL);
+ -1, NULL, NULL);
pci_conf = d->config;
pci_conf[0x00] = 0x34; // dummy VGA (same as Bochs ID)
pci_conf[0x01] = 0x12;