diff options
author | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1999-08-08 21:44:44 +0000 |
---|---|---|
committer | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1999-08-08 21:44:44 +0000 |
commit | 41eb27daca886ffd7aacd0ec9dd472be489fc5db (patch) | |
tree | b2eacb23aa1559289a722a1bf95fea092b1b8860 /sys | |
parent | aee52faf5663b6564a4c6a7a6dfe242fb5a645fd (diff) |
Explicitly set ifq_maxlen, ifinit does not get its hand on interfaces
attached later, which pcmcia is able to handle now. Also print the right
port range.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/pcmcia/if_xe.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/dev/pcmcia/if_xe.c b/sys/dev/pcmcia/if_xe.c index 39eea0602b6..5c1b02bf9db 100644 --- a/sys/dev/pcmcia/if_xe.c +++ b/sys/dev/pcmcia/if_xe.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_xe.c,v 1.5 1999/08/08 01:17:23 niklas Exp $ */ +/* $OpenBSD: if_xe.c,v 1.6 1999/08/08 21:44:43 niklas Exp $ */ /* * Copyright (c) 1999 Niklas Hallqvist, C Stone, Job de Haas @@ -306,6 +306,8 @@ xe_pcmcia_attach(parent, self, aux) sc->sc_bsh = psc->sc_pcioh.ioh; sc->sc_offset = 0; + printf(" port 0x%lx/%d", psc->sc_pcioh.addr, 16); + #if 0 if (pcmcia_mem_alloc(pf, 16, &psc->sc_pcmh)) { printf(": pcmcia memory allocation failed\n"); @@ -323,8 +325,6 @@ xe_pcmcia_attach(parent, self, aux) sc->sc_bsh = psc->sc_pcmh.memh; #endif - printf(" port 0x%lx/%d", psc->sc_pcmh.addr, 16); - /* Figure out what card we are. */ sc->sc_flags = xe_pcmcia_interpret_manfid(parent); @@ -384,6 +384,7 @@ xe_pcmcia_attach(parent, self, aux) ifp->if_ioctl = xe_ioctl; ifp->if_start = xe_start; ifp->if_watchdog = xe_watchdog; + ifp->if_snd.ifq_maxlen = IFQ_MAXLEN; /* Establish the interrupt. */ sc->sc_ih = pcmcia_intr_establish(pa->pf, IPL_NET, xe_intr, sc); |