Revision 606f90cc
b/hw/alpha_dp264.c | ||
---|---|---|
77 | 77 |
isa_create_simple(isa_bus, "i8042"); |
78 | 78 |
|
79 | 79 |
/* VGA setup. Don't bother loading the bios. */ |
80 |
alpha_pci_vga_setup(pci_bus);
|
|
80 |
pci_vga_init(pci_bus);
|
|
81 | 81 |
|
82 | 82 |
/* Serial code setup. */ |
83 | 83 |
for (i = 0; i < MAX_SERIAL_PORTS; ++i) { |
b/hw/alpha_pci.c | ||
---|---|---|
10 | 10 |
#include "alpha_sys.h" |
11 | 11 |
#include "qemu-log.h" |
12 | 12 |
#include "sysemu.h" |
13 |
#include "vmware_vga.h" |
|
14 |
#include "vga-pci.h" |
|
15 | 13 |
|
16 | 14 |
|
17 | 15 |
/* PCI IO reads/writes, to byte-word addressable memory. */ |
... | ... | |
109 | 107 |
.max_access_size = 4, |
110 | 108 |
}, |
111 | 109 |
}; |
112 |
|
|
113 |
void alpha_pci_vga_setup(PCIBus *pci_bus) |
|
114 |
{ |
|
115 |
switch (vga_interface_type) { |
|
116 |
#ifdef CONFIG_SPICE |
|
117 |
case VGA_QXL: |
|
118 |
pci_create_simple(pci_bus, -1, "qxl-vga"); |
|
119 |
return; |
|
120 |
#endif |
|
121 |
case VGA_CIRRUS: |
|
122 |
pci_cirrus_vga_init(pci_bus); |
|
123 |
return; |
|
124 |
case VGA_VMWARE: |
|
125 |
pci_vmsvga_init(pci_bus); |
|
126 |
return; |
|
127 |
} |
|
128 |
/* If VGA is enabled at all, and one of the above didn't work, then |
|
129 |
fallback to Standard VGA. */ |
|
130 |
if (vga_interface_type != VGA_NONE) { |
|
131 |
pci_std_vga_init(pci_bus); |
|
132 |
} |
|
133 |
} |
b/hw/alpha_sys.h | ||
---|---|---|
19 | 19 |
extern const MemoryRegionOps alpha_pci_conf1_ops; |
20 | 20 |
extern const MemoryRegionOps alpha_pci_iack_ops; |
21 | 21 |
|
22 |
void alpha_pci_vga_setup(PCIBus *pci_bus); |
|
23 |
|
|
24 | 22 |
#endif |
Also available in: Unified diff