qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH] serial-pci: Set prog interface field of pci config


From: BALATON Zoltan
Subject: [Qemu-devel] [PATCH] serial-pci: Set prog interface field of pci config to 16550 compatible
Date: Thu, 27 Feb 2014 02:05:05 +0100

Signed-off-by: BALATON Zoltan <address@hidden>
---
 hw/char/serial-pci.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/hw/char/serial-pci.c b/hw/char/serial-pci.c
index 991c99f..e662b77 100644
--- a/hw/char/serial-pci.c
+++ b/hw/char/serial-pci.c
@@ -60,6 +60,7 @@ static int serial_pci_init(PCIDevice *dev)
         return -1;
     }
 
+    pci->dev.config[PCI_CLASS_PROG] = 0x02; /* 16550 compatible */
     pci->dev.config[PCI_INTERRUPT_PIN] = 0x01;
     s->irq = pci_allocate_irq(&pci->dev);
 
-- 
1.8.1.5




reply via email to

[Prev in Thread] Current Thread [Next in Thread]