Deleted Added
full compact
if_wi.c (46492) if_wi.c (46495)
1/*
2 * Copyright (c) 1997, 1998, 1999
3 * Bill Paul <wpaul@ctr.columbia.edu>. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 15 unchanged lines hidden (view full) ---

24 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
25 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
26 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
27 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
28 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
29 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
30 * THE POSSIBILITY OF SUCH DAMAGE.
31 *
1/*
2 * Copyright (c) 1997, 1998, 1999
3 * Bill Paul <wpaul@ctr.columbia.edu>. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 15 unchanged lines hidden (view full) ---

24 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
25 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
26 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
27 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
28 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
29 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
30 * THE POSSIBILITY OF SUCH DAMAGE.
31 *
32 * $Id: if_wi.c,v 1.48 1999/05/05 00:32:13 wpaul Exp $
32 * $Id: if_wi.c,v 1.48 1999/05/05 00:32:13 wpaul Exp wpaul $
33 */
34
35/*
36 * Lucent WaveLAN/IEEE 802.11 PCMCIA driver for FreeBSD.
37 *
38 * Written by Bill Paul <wpaul@ctr.columbia.edu>
39 * Electrical Engineering Department
40 * Columbia University, New York City

--- 70 unchanged lines hidden (view full) ---

111#if NCARD > 0
112#include <sys/select.h>
113#include <pccard/cardinfo.h>
114#include <pccard/slot.h>
115#endif
116
117#if !defined(lint)
118static const char rcsid[] =
33 */
34
35/*
36 * Lucent WaveLAN/IEEE 802.11 PCMCIA driver for FreeBSD.
37 *
38 * Written by Bill Paul <wpaul@ctr.columbia.edu>
39 * Electrical Engineering Department
40 * Columbia University, New York City

--- 70 unchanged lines hidden (view full) ---

111#if NCARD > 0
112#include <sys/select.h>
113#include <pccard/cardinfo.h>
114#include <pccard/slot.h>
115#endif
116
117#if !defined(lint)
118static const char rcsid[] =
119 "$Id: if_wi.c,v 1.48 1999/05/05 00:32:13 wpaul Exp $";
119 "$Id: if_wi.c,v 1.48 1999/05/05 00:32:13 wpaul Exp wpaul $";
120#endif
121
122static struct wi_softc wi_softc[NWI];
123
124#ifdef foo
125static u_int8_t wi_mcast_addr[6] = { 0x00, 0x60, 0x1D, 0x00, 0x01, 0x00 };
126#endif
127

--- 985 unchanged lines hidden (view full) ---

1113
1114 /* Set multicast filter. */
1115 wi_setmulti(sc);
1116
1117 /* Enable desired port */
1118 wi_cmd(sc, WI_CMD_ENABLE|sc->wi_portnum, 0);
1119
1120 if (wi_alloc_nicmem(sc, 1518 + sizeof(struct wi_frame) + 8, &id))
120#endif
121
122static struct wi_softc wi_softc[NWI];
123
124#ifdef foo
125static u_int8_t wi_mcast_addr[6] = { 0x00, 0x60, 0x1D, 0x00, 0x01, 0x00 };
126#endif
127

--- 985 unchanged lines hidden (view full) ---

1113
1114 /* Set multicast filter. */
1115 wi_setmulti(sc);
1116
1117 /* Enable desired port */
1118 wi_cmd(sc, WI_CMD_ENABLE|sc->wi_portnum, 0);
1119
1120 if (wi_alloc_nicmem(sc, 1518 + sizeof(struct wi_frame) + 8, &id))
1121 printf("wi%d: mem allocation failed...\n", sc->wi_unit);
1121 printf("wi%d: tx buffer allocation failed\n", sc->wi_unit);
1122 sc->wi_tx_data_id = id;
1123
1124 if (wi_alloc_nicmem(sc, 1518 + sizeof(struct wi_frame) + 8, &id))
1122 sc->wi_tx_data_id = id;
1123
1124 if (wi_alloc_nicmem(sc, 1518 + sizeof(struct wi_frame) + 8, &id))
1125 printf("wi%d: mem allocation failed...\n", sc->wi_unit);
1125 printf("wi%d: mgmt. buffer allocation failed\n", sc->wi_unit);
1126 sc->wi_tx_mgmt_id = id;
1127
1128 /* enable interrupts */
1129 CSR_WRITE_2(sc, WI_INT_EN, WI_INTRS);
1130
1131 splx(s);
1132
1133 ifp->if_flags |= IFF_RUNNING;

--- 182 unchanged lines hidden ---
1126 sc->wi_tx_mgmt_id = id;
1127
1128 /* enable interrupts */
1129 CSR_WRITE_2(sc, WI_INT_EN, WI_INTRS);
1130
1131 splx(s);
1132
1133 ifp->if_flags |= IFF_RUNNING;

--- 182 unchanged lines hidden ---