mirror of
https://gitlab.com/qemu-project/qemu
synced 2024-11-05 20:35:44 +00:00
hw/ioh3420.c: convert to PCIDeviceInfo to initialize ids
use PCIDeviceInfo to initialize ids. Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
parent
d15fda639b
commit
3d0b1e704b
1 changed files with 3 additions and 4 deletions
|
@ -104,12 +104,8 @@ static int ioh3420_initfn(PCIDevice *d)
|
|||
return rc;
|
||||
}
|
||||
|
||||
d->config[PCI_REVISION_ID] = PCI_DEVICE_ID_IOH_REV;
|
||||
pcie_port_init_reg(d);
|
||||
|
||||
pci_config_set_vendor_id(d->config, PCI_VENDOR_ID_INTEL);
|
||||
pci_config_set_device_id(d->config, PCI_DEVICE_ID_IOH_EPORT);
|
||||
|
||||
rc = pci_bridge_ssvid_init(d, IOH_EP_SSVID_OFFSET,
|
||||
IOH_EP_SSVID_SVID, IOH_EP_SSVID_SSID);
|
||||
if (rc < 0) {
|
||||
|
@ -217,6 +213,9 @@ static PCIDeviceInfo ioh3420_info = {
|
|||
.config_write = ioh3420_write_config,
|
||||
.init = ioh3420_initfn,
|
||||
.exit = ioh3420_exitfn,
|
||||
.vendor_id = PCI_VENDOR_ID_INTEL,
|
||||
.device_id = PCI_DEVICE_ID_IOH_EPORT,
|
||||
.revision = PCI_DEVICE_ID_IOH_REV,
|
||||
|
||||
.qdev.props = (Property[]) {
|
||||
DEFINE_PROP_UINT8("port", PCIESlot, port.port, 0),
|
||||
|
|
Loading…
Reference in a new issue