Revision d7dccd11
b/hw/pcnet-pci.c | ||
---|---|---|
265 | 265 |
|
266 | 266 |
pci_conf = pci_dev->config; |
267 | 267 |
|
268 |
pci_config_set_vendor_id(pci_conf, PCI_VENDOR_ID_AMD); |
|
269 |
pci_config_set_device_id(pci_conf, PCI_DEVICE_ID_AMD_LANCE); |
|
270 | 268 |
pci_set_word(pci_conf + PCI_STATUS, |
271 | 269 |
PCI_STATUS_FAST_BACK | PCI_STATUS_DEVSEL_MEDIUM); |
272 |
pci_conf[PCI_REVISION_ID] = 0x10; |
|
273 |
pci_config_set_class(pci_conf, PCI_CLASS_NETWORK_ETHERNET); |
|
274 | 270 |
|
275 | 271 |
pci_set_word(pci_conf + PCI_SUBSYSTEM_VENDOR_ID, 0x0); |
276 | 272 |
pci_set_word(pci_conf + PCI_SUBSYSTEM_ID, 0x0); |
... | ... | |
318 | 314 |
.qdev.vmsd = &vmstate_pci_pcnet, |
319 | 315 |
.init = pci_pcnet_init, |
320 | 316 |
.exit = pci_pcnet_uninit, |
317 |
.vendor_id = PCI_VENDOR_ID_AMD, |
|
318 |
.device_id = PCI_DEVICE_ID_AMD_LANCE, |
|
319 |
.revision = 0x10, |
|
320 |
.class_id = PCI_CLASS_NETWORK_ETHERNET, |
|
321 | 321 |
.qdev.props = (Property[]) { |
322 | 322 |
DEFINE_NIC_PROPERTIES(PCIPCNetState, state.conf), |
323 | 323 |
DEFINE_PROP_END_OF_LIST(), |
Also available in: Unified diff