Revision 01764fe0
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 |
d->config[0x04] = 0x00; |
|
151 |
d->config[0x05] = 0x00; |
|
152 |
d->config[0x06] = 0x20; |
|
153 |
d->config[0x07] = 0x02; |
|
154 |
d->config[0x08] = 0x00; // revision |
|
155 |
d->config[0x09] = 0x00; // programming i/f |
|
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); |
|
156 | 159 |
pci_config_set_class(d->config, PCI_CLASS_PROCESSOR_CO); |
157 |
d->config[0x0D] = 0x10; // latency_timer
|
|
160 |
pci_set_byte(d->config + PCI_LATENCY_TIMER, 0x10);
|
|
158 | 161 |
return 0; |
159 | 162 |
} |
160 | 163 |
|
Also available in: Unified diff