Add boot ROM support for 3c905 TX ethernet card.

This commit is contained in:
drochner 1997-07-15 11:23:04 +00:00
parent fb68fae55e
commit d6a6f815ee
3 changed files with 9 additions and 5 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: 3c590.c,v 1.4 1997/06/21 14:41:13 drochner Exp $ */
/* $NetBSD: 3c590.c,v 1.5 1997/07/15 11:23:07 drochner Exp $ */
/* stripped down from freebsd:sys/i386/netboot/3c509.c */
@ -59,6 +59,7 @@ static struct mtabentry {
{3, 0x10, "BNC"},
{0, 0x08, "UTP"},
{1, 0x20, "AUI"},
{6, 0x40, "MII"},
};
/**************************************************************************
@ -86,7 +87,8 @@ char *myadr;
}
if(pcifinddev(0x10b7, 0x5900, &hdl) &&
pcifinddev(0x10b7, 0x9001, &hdl)) {
pcifinddev(0x10b7, 0x9001, &hdl) &&
pcifinddev(0x10b7, 0x9050, &hdl)) {
printf("cannot find 3c590 / 3c900\n");
return(0);
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: etherdrv.h,v 1.2 1997/03/15 22:17:35 perry Exp $ */
/* $NetBSD: etherdrv.h,v 1.3 1997/07/15 11:23:04 drochner Exp $ */
/*
* Copyright (c) 1996
@ -41,3 +41,4 @@ extern int ether_medium;
#define ETHERMEDIUM_BNC 0
#define ETHERMEDIUM_UTP 1
#define ETHERMEDIUM_AUI 2
#define ETHERMEDIUM_MII 3

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.7 1997/06/21 14:43:51 drochner Exp $
# $NetBSD: Makefile,v 1.8 1997/07/15 11:23:11 drochner Exp $
S= ${.CURDIR}/../../../../
@ -40,9 +40,10 @@ CPPFLAGS+= -DBOOTROM -DRELOC=0x$(RELOC)
.PATH: ${.CURDIR}/../lib/netif
#USE_NETIF= 3c509
#USE_NETIF= 3c590 #handles 3c900 combo too
#USE_NETIF= 3c590 #handles 3c900 combo and 3c905 TX too
#CPPFLAGS+= -DPCIROM -DPCI_VID=0x10b7 -DPCI_DID=0x5900 -DPCI_CLASS=0x020000
#CPPFLAGS+= -DPCIROM -DPCI_VID=0x10b7 -DPCI_DID=0x9001 -DPCI_CLASS=0x020000
#CPPFLAGS+= -DPCIROM -DPCI_VID=0x10b7 -DPCI_DID=0x9050 -DPCI_CLASS=0x020000
USE_NETIF= pcnet_pci
#USE_NETIF= pcnet_isapnp
#USE_NETIF= wd80x3 #supports SMC Ultra together with flag below