qemu-devel
[Top][All Lists]
Advanced

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

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


From: Amit Shah
Subject: [Qemu-devel] [PATCH 04/14] QEMU: Fill in PCI subsystem vendor id for eepro100
Date: Mon, 26 May 2008 13:36:43 +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/eepro100.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/qemu/hw/eepro100.c b/qemu/hw/eepro100.c
index ccb5f8b..b49b774 100644
--- a/qemu/hw/eepro100.c
+++ b/qemu/hw/eepro100.c
@@ -64,6 +64,8 @@
 #define PCI_BASE_ADDRESS_4      0x20    /* 32 bits */
 #define PCI_BASE_ADDRESS_5      0x24    /* 32 bits */
 
+#define PCI_SUBSYSTEM_VENDOR_ID 0x2c    /* 16 bits */
+
 #define PCI_CONFIG_8(offset, value) \
     (pci_conf[offset] = (value))
 #define PCI_CONFIG_16(offset, value) \
@@ -423,6 +425,7 @@ static void pci_reset(EEPRO100State * s)
 
     /* PCI Vendor ID */
     PCI_CONFIG_16(PCI_VENDOR_ID, 0x8086);
+    PCI_CONFIG_16(PCI_SUBSYSTEM_VENDOR_ID, 0x8086);
     /* PCI Device ID */
     PCI_CONFIG_16(PCI_DEVICE_ID, 0x1209);
     /* PCI Command */
-- 
1.5.5.1





reply via email to

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