FreeBSD Bugzilla – Attachment 12038 Details for
Bug 23468
xe Driver causes kernel panic when Xircom PS-CE2-10 inserted
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 1.55 KB, created by
Chris Knight
on 2000-12-11 12:40:00 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Chris Knight
Created:
2000-12-11 12:40:00 UTC
Size:
1.55 KB
patch
obsolete
>--- if_xe.c.orig Mon Oct 16 01:18:36 2000 >+++ if_xe.c Mon Dec 11 07:24:23 2000 >@@ -354,6 +354,9 @@ > default: > scp->vendor = "Unknown"; > } >+#if XE_DEBUG > 1 >+ device_printf(dev, "Vendor %s\n", scp->vendor); >+#endif > > if (!((prod & 0x40) && (media & 0x01))) { > #if XE_DEBUG > 1 >@@ -392,6 +395,7 @@ > } else { /* Ethernet-only cards */ > #if XE_DEBUG > 1 > device_printf(dev, "Card is Ethernet only\n"); >+ device_printf(dev, "Card prod val is %d\n", prod & 0x0f); > #endif > switch (prod & 0x0f) { > case 1: >@@ -402,9 +406,19 @@ > case 3: > scp->mohawk = 1; > scp->card_type = "CE3"; break; >+ /* my PS-CE2-10 has a prod of 0xff ?? */ >+ case 15: >+ scp->card_type = "CE2"; break; > default: > rc = ENODEV; > } >+#if XE_DEBUG > 1 >+ if (rc != ENODEV) { >+ device_printf(dev, "Ethernet Type: %s\n", scp->card_type); >+ } else { >+ device_printf(dev, "Card Type not set!\n"); >+ } >+#endif > } > } > success++; >@@ -419,6 +433,17 @@ > #endif > for (i = 0; i < ETHER_ADDR_LEN; i++) > scp->arpcom.ac_enaddr[i] = CISTPL_DATA(buf, i+2); >+ } >+ /* my PS-CE2-10 has this: */ >+ if ((CISTPL_LEN(buf) == 13) && >+ (CISTPL_DATA(buf, 0) == 0x02) && >+ (CISTPL_DATA(buf, 1) == 0x01) && >+ (CISTPL_DATA(buf, 2) == ETHER_ADDR_LEN)) { >+#if XE_DEBUG > 1 >+ device_printf(dev, "Got MAC address (0x22)\n"); >+#endif >+ for (i = 0; i < ETHER_ADDR_LEN; i++) >+ scp->arpcom.ac_enaddr[i] = CISTPL_DATA(buf, i+3); > } > success++; > break;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 23468
: 12038