Deleted Added
full compact
if_ep_isa.c (54196) if_ep_isa.c (54197)
1/*
2 * Copyright (c) 1994 Herb Peyerl <hpeyerl@novatel.ca>
3 * 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

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

22 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
23 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
24 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
28 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 *
1/*
2 * Copyright (c) 1994 Herb Peyerl <hpeyerl@novatel.ca>
3 * 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

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

22 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
23 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
24 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
28 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 *
30 * $FreeBSD: head/sys/dev/ep/if_ep_isa.c 54196 1999-12-06 08:31:47Z mdodd $
30 * $FreeBSD: head/sys/dev/ep/if_ep_isa.c 54197 1999-12-06 08:40:59Z mdodd $
31 */
32
33#include <sys/param.h>
34#include <sys/systm.h>
35#include <sys/kernel.h>
36#include <sys/socket.h>
37
38#include <sys/module.h>

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

68const char * ep_isa_match_id (u_int32_t, struct isa_ident *);
69
70#define ISA_ID_3C509_TP 0x506d5090
71#define ISA_ID_3C509_BNC 0x506d5091
72#define ISA_ID_3C509_COMBO 0x506d5094
73#define ISA_ID_3C509_TPO 0x506d5095
74
75static struct isa_ident ep_isa_devs[] = {
31 */
32
33#include <sys/param.h>
34#include <sys/systm.h>
35#include <sys/kernel.h>
36#include <sys/socket.h>
37
38#include <sys/module.h>

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

68const char * ep_isa_match_id (u_int32_t, struct isa_ident *);
69
70#define ISA_ID_3C509_TP 0x506d5090
71#define ISA_ID_3C509_BNC 0x506d5091
72#define ISA_ID_3C509_COMBO 0x506d5094
73#define ISA_ID_3C509_TPO 0x506d5095
74
75static struct isa_ident ep_isa_devs[] = {
76 { ISA_ID_3C509_TP, "3Com EtherLink III (3c509-TP)" },
77 { ISA_ID_3C509_BNC, "3Com EtherLink III (3c509-BNC)" },
78 { ISA_ID_3C509_COMBO, "3Com EtherLink III (3c509-Combo)" },
79 { ISA_ID_3C509_TPO, "3Com EtherLink III (3c509-TPO)" },
76 { ISA_ID_3C509_TP, "3Com 3C509-TP EtherLink III" },
77 { ISA_ID_3C509_BNC, "3Com 3C509-BNC EtherLink III" },
78 { ISA_ID_3C509_COMBO, "3Com 3C509-Combo EtherLink III" },
79 { ISA_ID_3C509_TPO, "3Com 3C509-TPO EtherLink III" },
80 { 0, NULL },
81};
82
83static struct isa_pnp_id ep_ids[] = {
80 { 0, NULL },
81};
82
83static struct isa_pnp_id ep_ids[] = {
84 { 0x90506d50, NULL }, /* TCM5090 */
85 { 0x91506d50, NULL }, /* TCM5091 */
86 { 0x94506d50, NULL }, /* TCM5094 */
87 { 0x95506d50, NULL }, /* TCM5095 */
88 { 0xf780d041, NULL }, /* PNP80f7 */
89 { 0, NULL },
84 { 0x90506d50, "3Com 3C509B-TP EtherLink III (PnP)" }, /* TCM5090 */
85 { 0x91506d50, "3Com 3C509B-BNC EtherLink III (PnP)" },/* TCM5091 */
86 { 0x94506d50, "3Com 3C509B-Combo EtherLink III (PnP)" },/* TCM5094 */
87 { 0x95506d50, "3Com 3C509B-TPO EtherLink III (PnP)" },/* TCM5095 */
88 { 0xf780d041, NULL }, /* PNP80f7 */
89 { 0, NULL },
90};
91
92/*
93 * We get eeprom data from the id_port given an offset into the eeprom.
94 * Basically; after the ID_sequence is sent to all of the cards; they enter
95 * the ID_CMD state where they will accept command requests. 0x80-0xbf loads
96 * the eeprom data. We then read the port 16 times and with every read; the
97 * cards check for contention (ie: if one card writes a 0 bit and another

--- 241 unchanged lines hidden ---
90};
91
92/*
93 * We get eeprom data from the id_port given an offset into the eeprom.
94 * Basically; after the ID_sequence is sent to all of the cards; they enter
95 * the ID_CMD state where they will accept command requests. 0x80-0xbf loads
96 * the eeprom data. We then read the port 16 times and with every read; the
97 * cards check for contention (ie: if one card writes a 0 bit and another

--- 241 unchanged lines hidden ---