v1 -> v2: * Convert USB option from char to bool. v2 -> v3: * Remove global USB option * Get USB option with qemu_opt_get_bool(). * Send vga patch for sPAPR which requires USB enabled.
v3 -> v4: * Fix some English grammar and coding style faults * Replace usb_on with add_usb to be more functional. * Remove vga init functions' declearations from pc.h, and add one new file vga-pci.h for the declearations. * Cleanup pc.h on some platforms and add vga-pci.h * Remove graphic devices which are not supported on sPAPR platform. They will be added back when they are supported. v4 -> v5: * Correct several English words * Add header file "qemu-comman.h" in vga-pci.h, which defines PCIBus and DeviceState types. Move #endif to the end of the vga-pci.h and remove the trailing white line. v5 -> v6: * Remove global usb_enabled variable * Set USB option in machine option * Cleanup USB option on all platforms * Report error when vga model is not std Benjamin Herrenschmidt (1): spapr: Add support for -vga option Li Zhang (4): Add USB option in machine options Get USB option by machine options on all platforms Add one new file vga-pci.h Cleanup pc.h on other platforms hw/alpha_pci.c | 1 + hw/cirrus_vga.c | 2 +- hw/mips_malta.c | 1 + hw/nseries.c | 9 +++++++++ hw/pc.c | 1 + hw/pc.h | 4 ---- hw/pc_piix.c | 6 ++++++ hw/ppc_newworld.c | 12 ++++++++++-- hw/ppc_oldworld.c | 10 +++++++++- hw/ppc_prep.c | 8 ++++++++ hw/pxa2xx.c | 15 +++++++++++++++ hw/realview.c | 8 ++++++++ hw/spapr.c | 43 ++++++++++++++++++++++++++++++++++++++++++- hw/sun4u.c | 1 + hw/versatilepb.c | 8 ++++++++ hw/vga-pci.c | 2 +- hw/vga-pci.h | 12 ++++++++++++ qemu-config.c | 4 ++++ sysemu.h | 1 - vl.c | 29 +++++++++++++++++++++++------ 20 files changed, 160 insertions(+), 17 deletions(-) create mode 100644 hw/vga-pci.h -- 1.7.7.6