FreeBSD Bugzilla – Attachment 5327 Details for
Bug 12803
patch to make xe driver's noise configurable in kernel config
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 3.16 KB, created by
Andre Albsmeier
on 1999-07-25 10:20:01 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Andre Albsmeier
Created:
1999-07-25 10:20:01 UTC
Size:
3.16 KB
patch
obsolete
>--- sys/dev/pccard/if_xe.c.ORI Mon Jul 26 10:37:44 1999 >+++ sys/dev/pccard/if_xe.c Mon Jul 26 10:45:29 1999 >@@ -99,6 +99,8 @@ > */ > > >+#include "opt_xe.h" >+ > #ifndef XE_DEBUG > #define XE_DEBUG 1 /* Increase for more voluminous output! */ > #endif >@@ -268,7 +270,7 @@ > /* > * Debug functions > */ >-#ifdef XE_DEBUG >+#if XE_DEBUG > 0 > #define XE_REG_DUMP(scp) xe_reg_dump((scp)) > #define XE_MII_DUMP(scp) xe_mii_dump((scp)) > static void xe_reg_dump (struct xe_softc *scp); >@@ -325,7 +327,7 @@ > */ > static int > xe_probe (struct isa_device *dev) { >-#ifdef XE_DEBUG >+#if XE_DEBUG > 0 > printf("xe%d: probe\n", dev->id_unit); > #endif > bzero(sca, MAXSLOT * sizeof(sca[0])); >@@ -480,7 +482,7 @@ > dev = &devi->isahd; > success = 0; > >-#ifdef XE_DEBUG >+#if XE_DEBUG > 0 > printf("xe: Probing for unit %d\n", unit); > #endif > >@@ -722,7 +724,7 @@ > struct xe_softc *scp = sca[dev->id_unit]; > int i; > >-#ifdef XE_DEBUG >+#if XE_DEBUG > 0 > printf("xe%d: attach\n", scp->unit); > #endif > >@@ -823,7 +825,7 @@ > struct xe_softc *scp = xscp; > int s; > >-#ifdef XE_DEBUG >+#if XE_DEBUG > 0 > printf("xe%d: init\n", scp->unit); > #endif > >@@ -1351,7 +1353,7 @@ > xe_media_change(struct ifnet *ifp) { > struct xe_softc *scp = ifp->if_softc; > >-#ifdef XE_DEBUG >+#if XE_DEBUG > 0 > printf("xe%d: media_change\n", ifp->if_unit); > #endif > >@@ -1377,7 +1379,7 @@ > static void > xe_media_status(struct ifnet *ifp, struct ifmediareq *mrp) { > >-#ifdef XE_DEBUG >+#if XE_DEBUG > 0 > printf("xe%d: media_status\n", ifp->if_unit); > #endif > >@@ -1394,7 +1396,7 @@ > struct xe_softc *scp = xscp; > u_int16_t bmcr, bmsr, anar, lpar; > >-#ifdef XE_DEBUG >+#if XE_DEBUG > 0 > printf("xe%d: setmedia\n", scp->unit); > #endif > >@@ -1671,7 +1673,7 @@ > xe_hard_reset(struct xe_softc *scp) { > int s; > >-#ifdef XE_DEBUG >+#if XE_DEBUG > 0 > printf("xe%d: hard_reset\n", scp->unit); > #endif > >@@ -1708,7 +1710,7 @@ > xe_soft_reset(struct xe_softc *scp) { > int s; > >-#ifdef XE_DEBUG >+#if XE_DEBUG > 0 > printf("xe%d: soft_reset\n", scp->unit); > #endif > >@@ -1748,7 +1750,7 @@ > scp->srev = (XE_INB(XE_BOV) & 0x70) >> 4; > else > scp->srev = (XE_INB(XE_BOV) & 0x30) >> 4; >-#ifdef XE_DEBUG >+#if XE_DEBUG > 0 > printf("xe%d: silicon revision = %d\n", scp->unit, scp->srev); > #endif > >@@ -1779,7 +1781,7 @@ > xe_stop(struct xe_softc *scp) { > int s; > >-#ifdef XE_DEBUG >+#if XE_DEBUG > 0 > printf("xe%d: stop\n", scp->unit); > #endif > >@@ -1815,7 +1817,7 @@ > */ > static void > xe_enable_intr(struct xe_softc *scp) { >-#ifdef XE_DEBUG >+#if XE_DEBUG > 0 > printf("xe%d: enable_intr\n", scp->unit); > #endif > >@@ -1839,7 +1841,7 @@ > */ > static void > xe_disable_intr(struct xe_softc *scp) { >-#ifdef XE_DEBUG >+#if XE_DEBUG > 0 > printf("xe%d: disable_intr\n", scp->unit); > #endif > >@@ -2392,7 +2394,7 @@ > } > > >-#ifdef XE_DEBUG >+#if XE_DEBUG > 0 > /* > * A bit of debugging code. > */ >@@ -2468,7 +2470,7 @@ > static int > xe_suspend(void *xunit) { > >-#ifdef XE_DEBUG >+#if XE_DEBUG > 0 > struct xe_softc *scp = sca[(int)xunit]; > > printf("xe%d: APM suspend\n", scp->unit); >@@ -2483,7 +2485,7 @@ > static int > xe_resume(void *xunit) { > >-#ifdef XE_DEBUG >+#if XE_DEBUG > 0 > struct xe_softc *scp = sca[(int)xunit]; > > printf("xe%d: APM resume\n", scp->unit);
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 12803
:
5325
|
5326
| 5327