* [Qemu-devel] [PATCH] pcnet-pci: use pci_config_set_revision()
@ 2010-12-20 21:40 Sebastian Herbszt
0 siblings, 0 replies; only message in thread
From: Sebastian Herbszt @ 2010-12-20 21:40 UTC (permalink / raw)
To: qemu-devel; +Cc: Sebastian Herbszt
Use pci_config_set_revision().
Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>
diff --git a/hw/pcnet-pci.c b/hw/pcnet-pci.c
index 339a401..c9811e2 100644
--- a/hw/pcnet-pci.c
+++ b/hw/pcnet-pci.c
@@ -282,7 +282,7 @@ static int pci_pcnet_init(PCIDevice *pci_dev)
pci_config_set_device_id(pci_conf, PCI_DEVICE_ID_AMD_LANCE);
pci_set_word(pci_conf + PCI_STATUS,
PCI_STATUS_FAST_BACK | PCI_STATUS_DEVSEL_MEDIUM);
- pci_conf[PCI_REVISION_ID] = 0x10;
+ pci_config_set_revision(pci_conf, 0x10);
pci_config_set_class(pci_conf, PCI_CLASS_NETWORK_ETHERNET);
pci_set_word(pci_conf + PCI_SUBSYSTEM_VENDOR_ID, 0x0);
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2010-12-20 21:42 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-20 21:40 [Qemu-devel] [PATCH] pcnet-pci: use pci_config_set_revision() Sebastian Herbszt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).