Deleted Added
full compact
if_wi.c (127698) if_wi.c (130416)
1/* $NetBSD: wi.c,v 1.109 2003/01/09 08:52:19 dyoung Exp $ */
2
3/*
4 * Copyright (c) 1997, 1998, 1999
5 * Bill Paul <wpaul@ctr.columbia.edu>. All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

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

57 * from the HCF Light code and corresponding documentation.
58 *
59 * This driver supports the ISA, PCMCIA and PCI versions of the Lucent
60 * WaveLan cards (based on the Hermes chipset), as well as the newer
61 * Prism 2 chipsets with firmware from Intersil and Symbol.
62 */
63
64#include <sys/cdefs.h>
1/* $NetBSD: wi.c,v 1.109 2003/01/09 08:52:19 dyoung Exp $ */
2
3/*
4 * Copyright (c) 1997, 1998, 1999
5 * Bill Paul <wpaul@ctr.columbia.edu>. All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

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

57 * from the HCF Light code and corresponding documentation.
58 *
59 * This driver supports the ISA, PCMCIA and PCI versions of the Lucent
60 * WaveLan cards (based on the Hermes chipset), as well as the newer
61 * Prism 2 chipsets with firmware from Intersil and Symbol.
62 */
63
64#include <sys/cdefs.h>
65__FBSDID("$FreeBSD: head/sys/dev/wi/if_wi.c 127698 2004-04-01 00:38:45Z sam $");
65__FBSDID("$FreeBSD: head/sys/dev/wi/if_wi.c 130416 2004-06-13 17:29:10Z mlaier $");
66
67#define WI_HERMES_AUTOINC_WAR /* Work around data write autoinc bug. */
68#define WI_HERMES_STATS_WAR /* Work around stats counter bug. */
69
70#define NBPFILTER 1
71
72#include <sys/param.h>
73#include <sys/systm.h>

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

109#include <netinet/if_ether.h>
110
111#include <net/bpf.h>
112
113#include <dev/wi/if_wavelan_ieee.h>
114#include <dev/wi/if_wireg.h>
115#include <dev/wi/if_wivar.h>
116
66
67#define WI_HERMES_AUTOINC_WAR /* Work around data write autoinc bug. */
68#define WI_HERMES_STATS_WAR /* Work around stats counter bug. */
69
70#define NBPFILTER 1
71
72#include <sys/param.h>
73#include <sys/systm.h>

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

109#include <netinet/if_ether.h>
110
111#include <net/bpf.h>
112
113#include <dev/wi/if_wavelan_ieee.h>
114#include <dev/wi/if_wireg.h>
115#include <dev/wi/if_wivar.h>
116
117#if 0 /* ALTQ */
117#define IF_POLL(ifq, m) ((m) = (ifq)->ifq_head)
118#define IFQ_POLL(ifq, m) IF_POLL((ifq), (m))
119#define IFQ_DEQUEUE(ifq, m) IF_DEQUEUE((ifq), (m))
118#define IF_POLL(ifq, m) ((m) = (ifq)->ifq_head)
119#define IFQ_POLL(ifq, m) IF_POLL((ifq), (m))
120#define IFQ_DEQUEUE(ifq, m) IF_DEQUEUE((ifq), (m))
121#endif
120
121static void wi_start(struct ifnet *);
122static int wi_reset(struct wi_softc *);
123static void wi_watchdog(struct ifnet *);
124static int wi_ioctl(struct ifnet *, u_long, caddr_t);
125static int wi_media_change(struct ifnet *);
126static void wi_media_status(struct ifnet *, struct ifmediareq *);
127

--- 3046 unchanged lines hidden ---
122
123static void wi_start(struct ifnet *);
124static int wi_reset(struct wi_softc *);
125static void wi_watchdog(struct ifnet *);
126static int wi_ioctl(struct ifnet *, u_long, caddr_t);
127static int wi_media_change(struct ifnet *);
128static void wi_media_status(struct ifnet *, struct ifmediareq *);
129

--- 3046 unchanged lines hidden ---