hw/piix_pci.c: Fix PIIX3-xen to initialize ids
PATCH 1/1 hw/piix_pci.c: Fix PIIX3-xen to initialize ids
From: Anthony PERARD <[email protected]>
--- hw/piix_pci.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)
hw/piix_pci.c +3 -0
@@ -478,6 +478,9 @@ static PCIDeviceInfo i440fx_info[] = { .no_hotplug = 1, .init = piix3_initfn, .config_write = piix3_write_config_xen, + .vendor_id = PCI_VENDOR_ID_INTEL, + .device_id = PCI_DEVICE_ID_INTEL_82371SB_0, // 82371SB PIIX3 PCI-to-ISA bridge (Step A1) + .class_id = PCI_CLASS_BRIDGE_ISA, },{/* end of list */ }
Signature · 1 line
1.7.2.5
Quoted 12 lines · On Wed, 22 Jun 2011, [email protected] wrote:
From: Anthony PERARD <[email protected]>
Signed-off-by Anthony PERARD <[email protected]>--- hw/piix_pci.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)hw/piix_pci.c +0
-0
hw/piix_pci.c static PCIDeviceInfo i440fx_info[] = { · line 486
Quoted 9 lines
hw/piix_pci.c +3
-0@@ -478,6 +478,9 @@ static PCIDeviceInfo i440fx_info[] = { .no_hotplug = 1, .init = piix3_initfn, .config_write = piix3_write_config_xen, + .vendor_id = PCI_VENDOR_ID_INTEL, + .device_id = PCI_DEVICE_ID_INTEL_82371SB_0, // 82371SB PIIX3 PCI-to-ISA bridge (Step A1) + .class_id = PCI_CLASS_BRIDGE_ISA, },{/* end of list */ }
shouldn't piix3_initfn take care of setting vendor_id, device_id and class_id, as in the normal PIIX3 case?
Quoted 17 lines · Stefano Stabellini
Quoted 16 lines · On Wed, 22 Jun 2011, [email protected] wrote:
From: Anthony PERARD <[email protected]>
Signed-off-by Anthony PERARD <[email protected]>---
hw/piix_pci.c | 3 +++1 files changed, 3 insertions(+), 0 deletions(-)hw/piix_pci.c +1
-0@@ -478,6 +478,9 @@ static PCIDeviceInfo i440fx_info[] = { .no_hotplug = 1, .init = piix3_initfn, .config_write = piix3_write_config_xen, + .vendor_id = PCI_VENDOR_ID_INTEL,
Quoted 8 lines
hw/piix_pci.c static PCIDeviceInfo i440fx_info[] = { · line 486
Quoted 5 lines
hw/piix_pci.c +2
-0+ .device_id = PCI_DEVICE_ID_INTEL_82371SB_0, // 82371SB PIIX3 PCI-to-ISA bridge (Step A1) + .class_id = PCI_CLASS_BRIDGE_ISA, },{ /* end of list */ }shouldn't
piix3_initfntake care of settingvendor_id,device_idandclass_id, as in the normal PIIX3 case?
Not anymore. These ids have been removed from piix3_initfn and added to the PCIDeviceInfo of PIIX3 in the last update.
Signature · 1 line
Anthony PERARD
Quoted 28 lines · Anthony PERARD
Quoted 17 lines · Stefano Stabellini
Quoted 16 lines · On Wed, 22 Jun 2011, [email protected] wrote:
From: Anthony PERARD <[email protected]>
Signed-off-by Anthony PERARD <[email protected]>---
hw/piix_pci.c | 3 +++1 files changed, 3 insertions(+), 0 deletions(-)hw/piix_pci.c +1
-0@@ -478,6 +478,9 @@ static PCIDeviceInfo i440fx_info[] = { .no_hotplug = 1, .init = piix3_initfn, .config_write = piix3_write_config_xen, + .vendor_id = PCI_VENDOR_ID_INTEL,Quoted 8 lines
hw/piix_pci.c static PCIDeviceInfo i440fx_info[] = { · line 486
Quoted 5 lines
hw/piix_pci.c +2
-0+ .device_id = PCI_DEVICE_ID_INTEL_82371SB_0, // 82371SB PIIX3 PCI-to-ISA bridge (Step A1) + .class_id = PCI_CLASS_BRIDGE_ISA, },{ /* end of list */ }shouldn't
piix3_initfntake care of settingvendor_id,device_idandclass_id, as in the normal PIIX3 case?
Quoted 2 lines
Not anymore. These ids have been removed from
piix3_initfnand added to the PCIDeviceInfo of PIIX3 in the last update.
I see. Good catch.
Quoted 12 lines · On 06/22/2011 05:58 PM, [email protected] wrote:
From: Anthony PERARD<[email protected]>
Signed-off-by Anthony PERARD<[email protected]>--- hw/piix_pci.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)hw/piix_pci.c +0
-0
hw/piix_pci.c static PCIDeviceInfo i440fx_info[] = { · line 486
Quoted 9 lines
hw/piix_pci.c +3
-0@@ -478,6 +478,9 @@ static PCIDeviceInfo i440fx_info[] = { .no_hotplug = 1, .init = piix3_initfn, .config_write = piix3_write_config_xen, + .vendor_id = PCI_VENDOR_ID_INTEL, + .device_id = PCI_DEVICE_ID_INTEL_82371SB_0, // 82371SB PIIX3 PCI-to-ISA bridge (Step A1) + .class_id = PCI_CLASS_BRIDGE_ISA, },{/* end of list */ }
$ ./scripts/checkpatch.pl ~/patch-xen/anthony1/\[PATCH\]\ hw_piix_pci.c\:\ Fix\ PIIX3-xen\ to\ initialize\ ids.eml WARNING: line over 80 characters #70: FILE: hw/piix_pci.c:482: + .device_id = PCI_DEVICE_ID_INTEL_82371SB_0, // 82371SB PIIX3 PCI-to-ISA bridge (Step A1)
ERROR: do not use C99 // comments
#70: FILE: hw/piix_pci.c:482:
+ .device_id = PCI_DEVICE_ID_INTEL_82371SB_0, // 82371SB PIIX3 PCI-to-ISA bridge (Step A1)
total: 1 errors, 1 warnings, 9 lines checked