Revision c74b88df
b/hw/pc.h | ||
---|---|---|
183 | 183 |
|
184 | 184 |
static inline int isa_vga_init(void) |
185 | 185 |
{ |
186 |
isa_create_simple("isa-vga");
|
|
186 |
ISADevice *dev;
|
|
187 | 187 |
|
188 |
return 0; |
|
188 |
dev = isa_try_create("isa-vga"); |
|
189 |
if (!dev) { |
|
190 |
fprintf(stderr, "Warning: isa-vga not available\n"); |
|
191 |
return 0; |
|
192 |
} |
|
193 |
qdev_init_nofail(&dev->qdev); |
|
194 |
return 1; |
|
189 | 195 |
} |
190 | 196 |
|
191 | 197 |
int pci_vga_init(PCIBus *bus); |
Also available in: Unified diff