From ec65be11ef2791f3091898e27d2a43f1bb4b84a9 Mon Sep 17 00:00:00 2001 From: Joerg Wunsch Date: Sun, 23 Feb 1997 10:57:30 +0000 Subject: Add support for the SMC9332BDT that's using the DE21140A chip. This is merely a stop-gap measure until we can import an upgraded driver from Matt Thomas. Closes PR # 2696, and most likely also 2767. OKed by: core --- sys/dev/de/if_de.c | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'sys/dev') diff --git a/sys/dev/de/if_de.c b/sys/dev/de/if_de.c index b81f00ec2f96..f48b716b2cfd 100644 --- a/sys/dev/de/if_de.c +++ b/sys/dev/de/if_de.c @@ -21,7 +21,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id$ + * $Id: if_de.c,v 1.59 1997/02/22 09:44:03 peter Exp $ * */ @@ -346,6 +346,7 @@ typedef enum { TULIP_21140_DEC_EB, /* Digital Semicondutor 21140 Evaluation Board */ TULIP_21140_DEC_DE500, /* Digital DE500-?? 10/100 */ TULIP_21140_SMC_9332, /* SMC 9332 */ + TULIP_21140A_SMC_9332BDT, /* SMC 9332BDT with 21140A */ TULIP_21140_COGENT_EM100, /* Cogent EM100 100 only */ TULIP_21140_ZNYX_ZX34X, /* ZNYX ZX342 10/100 */ TULIP_21041_GENERIC, /* Generic 21041 card */ @@ -1551,6 +1552,15 @@ static const tulip_boardsw_t tulip_21140_smc9332_boardsw = { tulip_21140_smc9332_media_select, tulip_21140_nomii_media_preset, }; + +static const tulip_boardsw_t tulip_21140A_smc9332bdt_boardsw = { + TULIP_21140A_SMC_9332BDT, + "SMC 9332BDT ", + tulip_21140_smc9332_media_probe, + tulip_21140_mii_media_preset, + tulip_21140_mii_probe, +}; + static int tulip_21140_cogent_em100_media_probe( @@ -3016,6 +3026,10 @@ tulip_identify_smc_nic( sc->tulip_boardsw = &tulip_21140_smc9332_boardsw; return; } + if (sc->tulip_chipid == TULIP_21140A) { + sc->tulip_boardsw = &tulip_21140A_smc9332bdt_boardsw; + return; + } id1 = sc->tulip_rombuf[0x60] | (sc->tulip_rombuf[0x61] << 8); id2 = sc->tulip_rombuf[0x62] | (sc->tulip_rombuf[0x63] << 8); ei = sc->tulip_rombuf[0x66] | (sc->tulip_rombuf[0x67] << 8); -- cgit v1.3