hw/xio3130_upstream.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
3ec39b2d20
commit
5844997a28
@ -65,9 +65,6 @@ static int xio3130_upstream_initfn(PCIDevice *d)
|
|||||||
}
|
}
|
||||||
|
|
||||||
pcie_port_init_reg(d);
|
pcie_port_init_reg(d);
|
||||||
pci_config_set_vendor_id(d->config, PCI_VENDOR_ID_TI);
|
|
||||||
pci_config_set_device_id(d->config, PCI_DEVICE_ID_TI_XIO3130U);
|
|
||||||
d->config[PCI_REVISION_ID] = XIO3130_REVISION;
|
|
||||||
|
|
||||||
rc = msi_init(d, XIO3130_MSI_OFFSET, XIO3130_MSI_NR_VECTOR,
|
rc = msi_init(d, XIO3130_MSI_OFFSET, XIO3130_MSI_NR_VECTOR,
|
||||||
XIO3130_MSI_SUPPORTED_FLAGS & PCI_MSI_FLAGS_64BIT,
|
XIO3130_MSI_SUPPORTED_FLAGS & PCI_MSI_FLAGS_64BIT,
|
||||||
@ -159,6 +156,9 @@ static PCIDeviceInfo xio3130_upstream_info = {
|
|||||||
.config_write = xio3130_upstream_write_config,
|
.config_write = xio3130_upstream_write_config,
|
||||||
.init = xio3130_upstream_initfn,
|
.init = xio3130_upstream_initfn,
|
||||||
.exit = xio3130_upstream_exitfn,
|
.exit = xio3130_upstream_exitfn,
|
||||||
|
.vendor_id = PCI_VENDOR_ID_TI,
|
||||||
|
.device_id = PCI_DEVICE_ID_TI_XIO3130U,
|
||||||
|
.revision = XIO3130_REVISION,
|
||||||
|
|
||||||
.qdev.props = (Property[]) {
|
.qdev.props = (Property[]) {
|
||||||
DEFINE_PROP_UINT8("port", PCIEPort, port, 0),
|
DEFINE_PROP_UINT8("port", PCIEPort, port, 0),
|
||||||
|
Loading…
Reference in New Issue
Block a user