Deleted Added
full compact
if_rl.c (41656) if_rl.c (41771)
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 * $Id: if_rl.c,v 1.18 1998/12/10 17:52:36 wpaul Exp $
32 * $Id: if_rl.c,v 1.6 1998/12/10 19:02:07 wpaul Exp $
33 */
34
35/*
36 * RealTek 8129/8139 PCI NIC driver
37 *
38 * Supports several extremely cheap PCI 10/100 adapters based on
39 * the RealTek chipset. Datasheets can be obtained from
40 * www.realtek.com.tw.

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

122 * uniprocessor systems though.
123 */
124#define RL_USEIOSPACE
125
126#include <pci/if_rlreg.h>
127
128#ifndef lint
129static const char rcsid[] =
33 */
34
35/*
36 * RealTek 8129/8139 PCI NIC driver
37 *
38 * Supports several extremely cheap PCI 10/100 adapters based on
39 * the RealTek chipset. Datasheets can be obtained from
40 * www.realtek.com.tw.

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

122 * uniprocessor systems though.
123 */
124#define RL_USEIOSPACE
125
126#include <pci/if_rlreg.h>
127
128#ifndef lint
129static const char rcsid[] =
130 "$Id: if_rl.c,v 1.18 1998/12/10 17:52:36 wpaul Exp $";
130 "$Id: if_rl.c,v 1.6 1998/12/10 19:02:07 wpaul Exp $";
131#endif
132
133/*
134 * Various supported device vendors/types and their names.
135 */
136static struct rl_type rl_devs[] = {
137 { RT_VENDORID, RT_DEVICEID_8129,
138 "RealTek 8129 10/100BaseTX" },

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

155 { NS_PHY_VENDORID, NS_PHY_83840A, "<National Semiconductor DP83840A>"},
156 { LEVEL1_PHY_VENDORID, LEVEL1_PHY_LXT970, "<Level 1 LXT970>" },
157 { INTEL_PHY_VENDORID, INTEL_PHY_82555, "<Intel 82555>" },
158 { SEEQ_PHY_VENDORID, SEEQ_PHY_80220, "<SEEQ 80220>" },
159 { 0, 0, "<MII-compliant physical interface>" }
160};
161
162static unsigned long rl_count = 0;
131#endif
132
133/*
134 * Various supported device vendors/types and their names.
135 */
136static struct rl_type rl_devs[] = {
137 { RT_VENDORID, RT_DEVICEID_8129,
138 "RealTek 8129 10/100BaseTX" },

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

155 { NS_PHY_VENDORID, NS_PHY_83840A, "<National Semiconductor DP83840A>"},
156 { LEVEL1_PHY_VENDORID, LEVEL1_PHY_LXT970, "<Level 1 LXT970>" },
157 { INTEL_PHY_VENDORID, INTEL_PHY_82555, "<Intel 82555>" },
158 { SEEQ_PHY_VENDORID, SEEQ_PHY_80220, "<SEEQ 80220>" },
159 { 0, 0, "<MII-compliant physical interface>" }
160};
161
162static unsigned long rl_count = 0;
163static char *rl_probe __P((pcici_t, pcidi_t));
163static const char *rl_probe __P((pcici_t, pcidi_t));
164static void rl_attach __P((pcici_t, int));
165
166static int rl_encap __P((struct rl_softc *, struct rl_chain *,
167 struct mbuf * ));
168
169static void rl_rxeof __P((struct rl_softc *));
170static void rl_txeof __P((struct rl_softc *));
171static void rl_txeoc __P((struct rl_softc *));

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

971
972 return;
973}
974
975/*
976 * Probe for a RealTek 8129/8139 chip. Check the PCI vendor and device
977 * IDs against our list and return a device name if we find a match.
978 */
164static void rl_attach __P((pcici_t, int));
165
166static int rl_encap __P((struct rl_softc *, struct rl_chain *,
167 struct mbuf * ));
168
169static void rl_rxeof __P((struct rl_softc *));
170static void rl_txeof __P((struct rl_softc *));
171static void rl_txeoc __P((struct rl_softc *));

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

971
972 return;
973}
974
975/*
976 * Probe for a RealTek 8129/8139 chip. Check the PCI vendor and device
977 * IDs against our list and return a device name if we find a match.
978 */
979static char *
979static const char *
980rl_probe(config_id, device_id)
981 pcici_t config_id;
982 pcidi_t device_id;
983{
984 struct rl_type *t;
985
986 t = rl_devs;
987

--- 996 unchanged lines hidden ---
980rl_probe(config_id, device_id)
981 pcici_t config_id;
982 pcidi_t device_id;
983{
984 struct rl_type *t;
985
986 t = rl_devs;
987

--- 996 unchanged lines hidden ---