[patch] Xircom REM56G-100
"Carlos Velasco" <[email protected]>
| Newsgroups | gmane.os.freebsd.devel.mobile,gmane.os.freebsd.current |
|---|---|
| Message-ID | <[email protected]> |
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
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-mobile
To unsubscribe, send any mail to "[email protected]"