[patch] Xircom REM56G-100

From: Carlos Velasco <freebsd_at_newipnet.com>
Date: Fri, 02 Apr 2004 17:24:40 +0200
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
_at__at_ -271,7 +271,7 _at__at_
        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
Received on Fri Apr 02 2004 - 05:25:55 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:49 UTC