Revision a408b1de hw/versatile_pci.c

b/hw/versatile_pci.c
147 147
    pci_config_set_vendor_id(d->config, PCI_VENDOR_ID_XILINX);
148 148
    /* Both boards have the same device ID.  Oh well.  */
149 149
    pci_config_set_device_id(d->config, PCI_DEVICE_ID_XILINX_XC2VP30);
150
    /* TODO: no need to clear command */
151
    pci_set_byte(d->config + PCI_COMMAND, 0x00);
152
    pci_set_byte(d->config + PCI_COMMAND + 1, 0x00);
153
    /* TODO: convert to set_word */
154
    pci_set_byte(d->config + PCI_STATUS, PCI_STATUS_66MHZ);
155
    pci_set_byte(d->config + PCI_STATUS + 1, PCI_STATUS_DEVSEL_MEDIUM >> 8);
156
    /* TODO: no need to clear revision/prog ifc */
157
    pci_set_byte(d->config + PCI_REVISION_ID, 0x00);
158
    pci_set_byte(d->config + PCI_CLASS_PROG, 0x00);
150
    pci_set_word(d->config + PCI_STATUS,
151
		 PCI_STATUS_66MHZ | PCI_STATUS_DEVSEL_MEDIUM);
159 152
    pci_config_set_class(d->config, PCI_CLASS_PROCESSOR_CO);
160 153
    pci_set_byte(d->config + PCI_LATENCY_TIMER, 0x10);
161 154
    return 0;

Also available in: Unified diff