smc ezcard 10/100 boards, rtl8139 and diag

Marty Leisner
Thu Dec 24 21:44:57 1998

I just spent about an hour trying to figure out where inb
came from...(I didn't read the caveat about compiling with -O).

I understand the SMC EZcard 10/100 uses the chip with this driver
(the ethernet address it reports is right, it isn't working (yet) and
the other information seems to be wrong...

(someone said this on comp.os.linux.hardware, I have no idea how he
knows...the chip says SMC #####)

Well, this is better than works with gnuc...(is that the
only compiler we're supposed to use?)

: leisner@dw;rcsdiff -u rtl8139-diag.c
RCS file: RCS/rtl8139-diag.c,v
retrieving revision 1.1
diff -u -r1.1 rtl8139-diag.c
--- rtl8139-diag.c      1998/12/25 02:35:59     1.1
+++ rtl8139-diag.c      1998/12/25 02:36:27
@@ -38,6 +38,10 @@
 extern monitor_mii(int ioaddr, int phy_id);
+#ifndef __OPTIMIZE__
+#error you need to turn on the optimizer
 #define udelay(microsecs)      do { int _i = microsecs<<1; while (--_i > 0) { __SLOW_DOWN_IO; }} while (0)
 struct option longopts[] = {

Anyone, here's what I'm seeing when I boot (I'm using linux 2.0.36 [redhat 2.0.36]

Dec 24 19:18:08 hp kernel: rtl8139.c:v1.04 9/22/98 Donald Becker
Dec 24 19:18:08 hp kernel: eth0: RealTek RTL8139 Fast Ethernet (mislabeled) at 0xf480, IRQ 255, 00:e0:29:1c:a4:f1.

Marty Leisner
 | To unsubscribe, send mail to, and within the
 |  body of the mail, include only the text:
 |   unsubscribe this-list-name
 | You will be unsubscribed as speedily as possible.