Revision 56fe6408 hw/versatile_pci.c

b/hw/versatile_pci.c
133 133

  
134 134
static int versatile_pci_host_init(PCIDevice *d)
135 135
{
136
    pci_config_set_vendor_id(d->config, PCI_VENDOR_ID_XILINX);
137
    /* Both boards have the same device ID.  Oh well.  */
138
    pci_config_set_device_id(d->config, PCI_DEVICE_ID_XILINX_XC2VP30);
139 136
    pci_set_word(d->config + PCI_STATUS,
140 137
		 PCI_STATUS_66MHZ | PCI_STATUS_DEVSEL_MEDIUM);
141
    pci_config_set_class(d->config, PCI_CLASS_PROCESSOR_CO);
142 138
    pci_set_byte(d->config + PCI_LATENCY_TIMER, 0x10);
143 139
    return 0;
144 140
}
......
147 143
    .qdev.name = "versatile_pci_host",
148 144
    .qdev.size = sizeof(PCIDevice),
149 145
    .init      = versatile_pci_host_init,
146
    .vendor_id = PCI_VENDOR_ID_XILINX,
147
    /* Both boards have the same device ID.  Oh well.  */
148
    .device_id = PCI_DEVICE_ID_XILINX_XC2VP30,
149
    .class_id  = PCI_CLASS_PROCESSOR_CO,
150 150
};
151 151

  
152 152
static void versatile_pci_register_devices(void)

Also available in: Unified diff