All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] cmd646: use pci_config_set_prog_interface()
@ 2010-12-20 21:18 Sebastian Herbszt
  0 siblings, 0 replies; only message in thread
From: Sebastian Herbszt @ 2010-12-20 21:18 UTC (permalink / raw)
  To: qemu-devel; +Cc: Sebastian Herbszt

Use pci_config_set_prog_interface().

Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>

diff --git a/hw/ide/cmd646.c b/hw/ide/cmd646.c
index 5d5464a..e125dfc 100644
--- a/hw/ide/cmd646.c
+++ b/hw/ide/cmd646.c
@@ -230,7 +230,7 @@ static int pci_cmd646_ide_initfn(PCIDevice *dev)
     pci_config_set_device_id(pci_conf, PCI_DEVICE_ID_CMD_646);
 
     pci_conf[PCI_REVISION_ID] = 0x07; // IDE controller revision
-    pci_conf[PCI_CLASS_PROG] = 0x8f;
+    pci_config_set_prog_interface(pci_conf, 0x8f);
 
     pci_config_set_class(pci_conf, PCI_CLASS_STORAGE_IDE);
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2010-12-20 21:20 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:18 [Qemu-devel] [PATCH] cmd646: use pci_config_set_prog_interface() Sebastian Herbszt

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.