Revision 606f90cc hw/alpha_pci.c
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 |
} |
Also available in: Unified diff