diff options
author | dg <dg@FreeBSD.org> | 1995-05-24 20:33:42 +0000 |
---|---|---|
committer | dg <dg@FreeBSD.org> | 1995-05-24 20:33:42 +0000 |
commit | 577429560f4b5edb083711fdf32caca0359ea8fb (patch) | |
tree | d483140287f8fd77e289996302da1d67e4aacd50 /sys/i386/isa | |
parent | 0d516486376ee4545b4349c17840936874702f78 (diff) | |
download | FreeBSD-src-577429560f4b5edb083711fdf32caca0359ea8fb.zip FreeBSD-src-577429560f4b5edb083711fdf32caca0359ea8fb.tar.gz |
Enclosed is a patch for if_ze.c which will allow it to operate with
the National Semiconductor InfoMover PCMCIA cards also. In tests on a
NE4100 on Jordan's laptop here, the ze driver works fine with that
card.
Reviewed by: Jordan Hubbard, Rod Grimes, and me
Submitted by: Gary Palmer
Diffstat (limited to 'sys/i386/isa')
-rw-r--r-- | sys/i386/isa/if_ze.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/sys/i386/isa/if_ze.c b/sys/i386/isa/if_ze.c index c213049..9315a60 100644 --- a/sys/i386/isa/if_ze.c +++ b/sys/i386/isa/if_ze.c @@ -47,7 +47,7 @@ */ /* - * $Id: if_ze.c,v 1.14 1995/05/02 04:03:07 phk Exp $ + * $Id: if_ze.c,v 1.15 1995/05/03 22:58:07 phk Exp $ */ #include "ze.h" @@ -173,6 +173,10 @@ static unsigned char card_info[256]; */ #define CARD2_INFO "IBM Corp.~Ethernet~0934214" +/* */ + +#define CARD3_INFO "National Semiconductor~InfoMover NE4" + /* * scan the card information structure looking for the version/product info * tuple. when we find it, compare it to the string we are looking for. @@ -208,7 +212,8 @@ ze_check_cis (unsigned char *scratch) return (memcmp (card_info, CARD_INFO, sizeof(CARD_INFO)-1) == 0); #else if ((memcmp (card_info, CARD_INFO, sizeof(CARD_INFO)-1) == 0) || - (memcmp (card_info, CARD2_INFO, sizeof(CARD2_INFO)-1) == 0)) { + (memcmp (card_info, CARD2_INFO, sizeof(CARD2_INFO)-1) == 0) || + (memcmp (card_info, CARD3_INFO, sizeof(CARD3_INFO)-1) == 0)) { return 1; } return 0; |