aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid E. O'Brien <obrien@FreeBSD.org>1999-05-14 01:52:10 +0000
committerDavid E. O'Brien <obrien@FreeBSD.org>1999-05-14 01:52:10 +0000
commitf69b34762313895da39423fecaadb144b50d9f0f (patch)
tree224020809dfa670bd6cb476c213a325e8a7ca004
parent99872c353cae59a20abe23594697b93b730034cc (diff)
downloadsrc-f69b34762313895da39423fecaadb144b50d9f0f.tar.gz
src-f69b34762313895da39423fecaadb144b50d9f0f.zip
Virgin import of Xircom PCCARD driver v1.15vendor/xe/1.15
v1.15 fixed driver registration bug under 3.1-STABLE. Developed by: Scott Mitchell <scott@uk.freebsd.org> Obtained from: http://www.freebsd-uk.eu.org/~scott/xe_drv/
Notes
Notes: svn path=/vendor-sys/xe/dist/; revision=47139 svn path=/vendor-sys/xe/1.15/; revision=47141; tag=vendor/xe/1.15
-rw-r--r--sys/dev/pccard/if_xe.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/sys/dev/pccard/if_xe.c b/sys/dev/pccard/if_xe.c
index 03c57093494d..0911cfbd96a2 100644
--- a/sys/dev/pccard/if_xe.c
+++ b/sys/dev/pccard/if_xe.c
@@ -23,7 +23,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: if_xe.c,v 1.14 1999/02/22 14:16:14 root Exp $
+ * $Id: if_xe.c,v 1.15 1999/03/05 12:11:40 root Exp $
*/
/*
@@ -268,7 +268,10 @@ static int xe_resume (void *xunit);
/*
* PCMCIA driver hooks
*/
-static struct pccard_device xe_info = {
+#ifdef PCCARD_MODULE
+PCCARD_MODULE(xe, xe_card_init, xe_card_unload, xe_card_intr, 0, net_imask);
+#else
+static struct pccard_device xe_info = { /* For pre 3.1-STABLE code */
"xe",
xe_card_init,
xe_card_unload,
@@ -276,8 +279,9 @@ static struct pccard_device xe_info = {
0,
&net_imask
};
-
DATA_SET(pccarddrv_set, xe_info);
+#endif /* PCCARD_MODULE */
+
/*
* ISA driver hooks. I'd like to do without these but the kernel config stuff
@@ -762,7 +766,7 @@ xe_start(struct ifnet *ifp) {
#if NBPFILTER > 0
/* Tap off here if there is a bpf listener */
if (ifp->if_bpf) {
-#ifdef XE_DEBUG
+#if XE_DEBUG > 1
printf("xe%d: sending output packet to BPF\n", scp->unit);
#endif
bpf_mtap(ifp, mbp);
@@ -1084,7 +1088,7 @@ xe_card_intr(struct pccard_devinfo *devi) {
* off the raw packet to bpf.
*/
if (ifp->if_bpf) {
-#ifdef XE_DEBUG
+#if XE_DEBUG > 1
printf("xe%d: passing input packet to BPF\n", scp->unit);
#endif
bpf_mtap(ifp, mbp);