qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] Re: [RFC] [PATCH] 3C90X Emulation


From: Sebastian Herbszt
Subject: [Qemu-devel] Re: [RFC] [PATCH] 3C90X Emulation
Date: Sun, 19 Jul 2009 21:10:54 +0200

Matthew Iselin wrote:
This patch adds a basic 3C90X emulation to QEMU.

I have tested this with Linux kernels 2.4 and 2.6 (DSL and Ubuntu), and
Pedigree.

This has been ported from the PearPC 3C90X emulation, with significant
modifications to enable it to work on 2.6 kernels.

Signed-off-by: Matthew Iselin <address@hidden>
---
Makefile.target |    1 +
hw/3c90x.c      | 2421 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
hw/pci.c        |    2 +
hw/pci_ids.h    |    3 +
4 files changed, 2427 insertions(+), 0 deletions(-)
create mode 100644 hw/3c90x.c

 CC    i386-softmmu/3c90x.o
cc1: warnings being treated as errors
hw/3c90x.c: In function 'a3c90x_io_readx':
hw/3c90x.c:2028: warning: comparison is always true due to limited range of 
data type
hw/3c90x.c: In function 'a3c90x_io_writex':
hw/3c90x.c:2096: warning: comparison is always true due to limited range of 
data type
make[1]: *** [3c90x.o] Error 1
make: *** [subdir-i386-softmmu] Error 2

diff --git a/hw/pci_ids.h b/hw/pci_ids.h
index 3afe674..872cca8 100644
--- a/hw/pci_ids.h
+++ b/hw/pci_ids.h
@@ -75,6 +75,9 @@
#define PCI_VENDOR_ID_REALTEK            0x10ec
#define PCI_DEVICE_ID_REALTEK_8139       0x8139

+#define PCI_VENDOR_ID_3COM               0x10b7
+#define PCI_DEVICE_ID_3COM_3C90X         0x9200
+
#define PCI_VENDOR_ID_XILINX             0x10ee

#define PCI_VENDOR_ID_MARVELL            0x11ab

The file content is supposed to be sorted:

/* Vendors and devices.  Sort key: vendor first, device next. */

- Sebastian





reply via email to

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