Skip to contentSkip to conversation

e1000 emulation

PATCH Tina Yang 1 participant 1 message Feb 26, 2008

lore
Share & tools
lore

Tina Yang

author
#0 lore raw
Quoted 6 lines

The attached patch adds e1000 emulation to Xen. This is a direct
port of the e1000 driver currently in Qemu CVS with extremely minimal changes (as shown below). This is useful for Xen as new OSes may not support the old 100Mbps NICs we currently support (especially on non-x86). Drivers for e1000 should be more readily available.

Per Intel 82540EM Software Developer's Manual pp. 211, the mmio size is 0x20000, or address overlapping occurs and causes the second card to fail, which happened to me earlier.

Tina

ioemu/hw/e1000.c 2008-02-26 10:55:00.111124000 -0800 renamed from ioemu/hw/e1000.c.orig 2008-02-26 10:55:00.113124000 -0800 +1 -1
@@ -48,7 +48,7 @@ static int debugflags = DBGBIT(TXERR) |
 #endif
 
 #define IOPORT_SIZE       0x40
-#define PNPMMIO_SIZE      0x60000
+#define PNPMMIO_SIZE      0x20000
 
 /*
  * HW models: