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
This commit is contained in:
Joerg Wunsch 1997-02-23 10:57:30 +00:00
parent 79403fe300
commit ec65be11ef
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=23040
2 changed files with 30 additions and 2 deletions

View File

@ -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);

View File

@ -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);