qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] [PATCH 08/14] QEMU: Fill in PCI subsystem vendor id for pcn


From: Amit Shah
Subject: [Qemu-devel] [PATCH 08/14] QEMU: Fill in PCI subsystem vendor id for pcnet
Date: Mon, 26 May 2008 13:36:47 +0300

The subsystem vendor ID shouldn't be 0x0 or 0xffff according
to the PCI spec

Signed-off-by: Amit Shah <address@hidden>
---
 qemu/hw/pcnet.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/qemu/hw/pcnet.c b/qemu/hw/pcnet.c
index a1fb610..1bbd626 100644
--- a/qemu/hw/pcnet.c
+++ b/qemu/hw/pcnet.c
@@ -1975,6 +1975,7 @@ PCIDevice *pci_pcnet_init(PCIBus *bus, NICInfo *nd, int 
devfn)
     pci_conf = d->dev.config;
 
     *(uint16_t *)&pci_conf[0x00] = cpu_to_le16(0x1022);
+    *(uint16_t *)&pci_conf[0x2c] = cpu_to_le16(0x1022);
     *(uint16_t *)&pci_conf[0x02] = cpu_to_le16(0x2000);
     *(uint16_t *)&pci_conf[0x04] = cpu_to_le16(0x0007);
     *(uint16_t *)&pci_conf[0x06] = cpu_to_le16(0x0280);
-- 
1.5.5.1





reply via email to

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