Date: Fri, 02 Apr 2004 17:24:40 +0200 From: "Carlos Velasco" <freebsd@newipnet.com> To: freebsd-current@freebsd.org Cc: freebsd-mobile@freebsd.org Subject: [patch] Xircom REM56G-100 Message-ID: <200404021724400672.31B8DBC9@192.168.128.16>
next in thread | raw e-mail | index | archive | help
Hello,
Here's a patch for Xircom Ethernet cards REM56G and I think CEM56 to work
(Realports).
There's a problem in the current driver that prevent these cards to work
failing with errors:
xe0: Cannot allocate ioport
device_probe_and_attach: xe0 attach returned 12
It fails in OLDCARD and NEWCARD, as the problem is in the driver.
Problem is related to a simple error in a for.
--- xe/if_xe_pccard.c Fri Apr 2 17:13:37 2004
+++ xenew/if_xe_pccard.c Fri Apr 2 17:14:52 2004
@@ -271,7 +271,7 @@
scp->card_type = card_itm->card_type_desc;
if (card_itm->prod_type & XE_PROD_MODEM_UMASK)
scp->modem = 1;
- for(i=1; i!=XE_CARD_TYPE_FLAGS_DINGO; i=i<<1) {
+ for(i=1; i<=XE_CARD_TYPE_FLAGS_DINGO; i=i<<1) {
switch(i & card_itm->flags) {
case XE_CARD_TYPE_FLAGS_CE2:
scp->ce2 = 1; break;
Regards,
Carlos Velasco
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200404021724400672.31B8DBC9>
