All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] piix: use pci_config_set_prog_interface()
@ 2010-12-20 21:18 Sebastian Herbszt
  2010-12-27 14:01 ` [Qemu-devel] " Michael S. Tsirkin
  0 siblings, 1 reply; 9+ messages 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/piix.c b/hw/ide/piix.c
index 1cad906..2772e08 100644
--- a/hw/ide/piix.c
+++ b/hw/ide/piix.c
@@ -135,7 +135,7 @@ static int pci_piix_ide_initfn(PCIIDEState *d)
 {
     uint8_t *pci_conf = d->dev.config;
 
-    pci_conf[PCI_CLASS_PROG] = 0x80; // legacy ATA mode
+    pci_config_set_prog_interface(pci_conf, 0x80); // legacy ATA mode
     pci_config_set_class(pci_conf, PCI_CLASS_STORAGE_IDE);
 
     qemu_register_reset(piix3_reset, d);

^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2010-12-29 14:55 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-12-20 21:18 [Qemu-devel] [PATCH] piix: use pci_config_set_prog_interface() Sebastian Herbszt
2010-12-27 14:01 ` [Qemu-devel] " Michael S. Tsirkin
2010-12-28 16:24   ` Sebastian Herbszt
2010-12-28 17:19     ` Michael S. Tsirkin
2010-12-28 18:48       ` Sebastian Herbszt
2010-12-28 21:08         ` Michael S. Tsirkin
2010-12-29 10:26           ` Sebastian Herbszt
2010-12-29 11:21             ` Michael S. Tsirkin
2010-12-29 14:55             ` Michael S. Tsirkin

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.