Deleted Added
full compact
if_wb.c (93818) if_wb.c (98995)
1/*
2 * Copyright (c) 1997, 1998
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
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 * $FreeBSD: head/sys/pci/if_wb.c 93818 2002-04-04 21:03:38Z jhb $
32 * $FreeBSD: head/sys/pci/if_wb.c 98995 2002-06-28 23:48:23Z alfred $
33 */
34
35/*
36 * Winbond fast ethernet PCI NIC driver
37 *
38 * Supports various cheap network adapters based on the Winbond W89C840F
39 * fast ethernet controller chip. This includes adapters manufactured by
40 * Winbond itself and some made by Linksys.

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

123#define WB_USEIOSPACE
124
125#include <pci/if_wbreg.h>
126
127MODULE_DEPEND(wb, miibus, 1, 1, 1);
128
129#ifndef lint
130static const char rcsid[] =
33 */
34
35/*
36 * Winbond fast ethernet PCI NIC driver
37 *
38 * Supports various cheap network adapters based on the Winbond W89C840F
39 * fast ethernet controller chip. This includes adapters manufactured by
40 * Winbond itself and some made by Linksys.

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

123#define WB_USEIOSPACE
124
125#include <pci/if_wbreg.h>
126
127MODULE_DEPEND(wb, miibus, 1, 1, 1);
128
129#ifndef lint
130static const char rcsid[] =
131 "$FreeBSD: head/sys/pci/if_wb.c 93818 2002-04-04 21:03:38Z jhb $";
131 "$FreeBSD: head/sys/pci/if_wb.c 98995 2002-06-28 23:48:23Z alfred $";
132#endif
133
134/*
135 * Various supported device vendors/types and their names.
136 */
137static struct wb_type wb_devs[] = {
138 { WB_VENDORID, WB_DEVICEID_840F,
139 "Winbond W89C840F 10/100BaseTX" },
140 { CP_VENDORID, CP_DEVICEID_RL100,
141 "Compex RL100-ATX 10/100baseTX" },
142 { 0, 0, NULL }
143};
144
145static int wb_probe (device_t);
146static int wb_attach (device_t);
147static int wb_detach (device_t);
148
132#endif
133
134/*
135 * Various supported device vendors/types and their names.
136 */
137static struct wb_type wb_devs[] = {
138 { WB_VENDORID, WB_DEVICEID_840F,
139 "Winbond W89C840F 10/100BaseTX" },
140 { CP_VENDORID, CP_DEVICEID_RL100,
141 "Compex RL100-ATX 10/100baseTX" },
142 { 0, 0, NULL }
143};
144
145static int wb_probe (device_t);
146static int wb_attach (device_t);
147static int wb_detach (device_t);
148
149static void wb_bfree (caddr_t, void *args);
149static void wb_bfree (void *addr, void *args);
150static int wb_newbuf (struct wb_softc *,
151 struct wb_chain_onefrag *,
152 struct mbuf *);
153static int wb_encap (struct wb_softc *, struct wb_chain *,
154 struct mbuf *);
155
156static void wb_rxeof (struct wb_softc *);
157static void wb_rxeoc (struct wb_softc *);

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

1069 }
1070
1071 cd->wb_rx_head = &cd->wb_rx_chain[0];
1072
1073 return(0);
1074}
1075
1076static void wb_bfree(buf, args)
150static int wb_newbuf (struct wb_softc *,
151 struct wb_chain_onefrag *,
152 struct mbuf *);
153static int wb_encap (struct wb_softc *, struct wb_chain *,
154 struct mbuf *);
155
156static void wb_rxeof (struct wb_softc *);
157static void wb_rxeoc (struct wb_softc *);

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

1069 }
1070
1071 cd->wb_rx_head = &cd->wb_rx_chain[0];
1072
1073 return(0);
1074}
1075
1076static void wb_bfree(buf, args)
1077 caddr_t buf;
1077 void *buf;
1078 void *args;
1079{
1080 return;
1081}
1082
1083/*
1084 * Initialize an RX descriptor and attach an MBUF cluster.
1085 */

--- 795 unchanged lines hidden ---
1078 void *args;
1079{
1080 return;
1081}
1082
1083/*
1084 * Initialize an RX descriptor and attach an MBUF cluster.
1085 */

--- 795 unchanged lines hidden ---