Okay, here is the v3 as there seems no more comments on the series. patch descriptions: vender id/device id... in pci configuration space are read-only registers which are commonly defined for all pci devices. So initialize them in common code and it simplifies the initialization a bit. Potentially in the future, qemu would be able to list supported devices with device id and so on possibly with more updated description by linking libpci.
v2 -> v3: - eliminated redandant comments - converted virtio-pci changes v1 -> v2: - dropped header_type and prog_interface - converted more Isaku Yamahata (39): pci: move ids of config space into PCIDeviceInfo usb-uhci: convert to PCIDEviceInfo to initialize ids eepro100: convert to PCIDeviceInfo to initialize ids dec_pci: convert to PCIDeviceInfo to initialize ids apb_pci: convert to PCIDeviceInfo to initialize ids ide/piix: convert to PCIDeviceInfo to initialize ids vmware_vga.c: convert to PCIDeviceInfo to initialize ids hw/ac97.c: convert to PCIDeviceInfo to initialize ids hw/acpi_piix4.c: convert to PCIDeviceInfo to initialize ids hw/bonito.c: convert to PCIDeviceInfo to initialize ids hw/cirrus_vga.c: convert to PCIDeviceInfo to initialize ids hw/e1000.c: convert to PCIDeviceInfo to initialize ids hw/es1370.c: convert to PCIDeviceInfo to initialize ids hw/grackle_pci.c: convert to PCIDeviceInfo to initialize ids hw/gt64xxx.c: convert to PCIDeviceInfo to initialize ids hw/ide/cmd646.c: convert to PCIDeviceInfo to initialize ids hw/ide/ich.c: convert to PCIDeviceInfo to initialize ids hw/ide/via.c: convert to PCIDeviceInfo to initialize ids hw/intel-hda.c: convert to PCIDeviceInfo to initialize ids hw/ioh3420.c: convert to PCIDeviceInfo to initialize ids hw/ivshmem.c: convert to PCIDeviceInfo to initialize ids hw/lsi53c895a.c: convert to PCIDeviceInfo to initialize ids hw/ne2000.c: convert to PCIDeviceInfo to initialize ids hw/pcnet-pci.c: convert to PCIDeviceInfo to initialize ids hw/piix4.c: convert to PCIDeviceInfo to initialize ids hw/piix_pci.c: convert to PCIDeviceInfo to initialize ids hw/qxl.c: convert to PCIDeviceInfo to initialize ids hw/rtl8139.c: convert to PCIDeviceInfo to initialize ids hw/sh_pci.c: convert to PCIDeviceInfo to initialize ids hw/sun4u.c: convert to PCIDeviceInfo to initialize ids hw/unin_pci.c: convert to PCIDeviceInfo to initialize ids hw/usb-ohci.c: convert to PCIDeviceInfo to initialize ids hw/versatile_pci.c: convert to PCIDeviceInfo to initialize ids hw/vga-pci.c: convert to PCIDeviceInfo to initialize ids hw/vt82c686.c: convert to PCIDeviceInfo to initialize ids hw/wdt_i6300esb.c: convert to PCIDeviceInfo to initialize ids hw/xio3130_downstream.c: convert to PCIDeviceInfo to initialize ids hw/xio3130_upstream.c: convert to PCIDeviceInfo to initialize ids virtio-pci.c: convert to PCIDEviceInfo to initialize ids hw/ac97.c | 9 ++--- hw/acpi_piix4.c | 8 ++-- hw/apb_pci.c | 13 ++++---- hw/bonito.c | 9 +++-- hw/cirrus_vga.c | 10 +++--- hw/dec_pci.c | 26 ++++------------ hw/e1000.c | 8 ++-- hw/eepro100.c | 74 +++++++++++++++++++++-------------------------- hw/es1370.c | 24 +++++++-------- hw/grackle_pci.c | 8 ++-- hw/gt64xxx.c | 8 ++-- hw/ide/cmd646.c | 10 ++---- hw/ide/ich.c | 9 ++--- hw/ide/piix.c | 32 ++++++-------------- hw/ide/via.c | 8 ++-- hw/intel-hda.c | 8 ++-- hw/ioh3420.c | 7 ++-- hw/ivshmem.c | 8 ++--- hw/lsi53c895a.c | 13 ++------ hw/ne2000.c | 6 ++-- hw/pci.c | 46 ++++++++++++++++++++--------- hw/pci.h | 7 ++++ hw/pcnet-pci.c | 8 ++-- hw/piix4.c | 10 ++---- hw/piix_pci.c | 19 ++++------- hw/qxl.c | 7 ++-- hw/rtl8139.c | 8 ++-- hw/sh_pci.c | 4 +- hw/sun4u.c | 8 ++-- hw/unin_pci.c | 33 ++++++++++----------- hw/usb-ohci.c | 7 ++-- hw/usb-uhci.c | 46 +++++++++++------------------ hw/versatile_pci.c | 8 ++-- hw/vga-pci.c | 11 +++---- hw/virtio-pci.c | 69 +++++++++++++++++++------------------------ hw/vmware_vga.c | 13 ++++---- hw/vt82c686.c | 35 ++++++++++------------ hw/wdt_i6300esb.c | 6 ++-- hw/xio3130_downstream.c | 6 ++-- hw/xio3130_upstream.c | 6 ++-- 40 files changed, 300 insertions(+), 355 deletions(-)