Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Feb 2002 01:10:44 -0500 (EST)
From:      "W. Desjardins" <bill@carracing.com>
To:        Doug Ambrisko <ambrisko@ambrisko.com>
Cc:        <freebsd-stable@FreeBSD.ORG>
Subject:   Re: sis0: incorrect mac address
Message-ID:  <20020221010913.X87559-100000@mail.carracing.com>
In-Reply-To: <200202190358.g1J3wBM71729@ambrisko.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 18 Feb 2002, Doug Ambrisko wrote:

> Well you are dealing with an obsolete board.  They may have built
> some with a 630ET chipset which is used on the ASUS TUSI motherboards.
> Here is a patch that fixes 630ET support in -stable (already fixed
> in -current).  Note the TUSI and CUSI board look exactly the same
> except for voltage regulator.  We have a bunch of the newer TUSI
> boards here.

Doug,

I am just getting back to this (added 2nd nics to get by for now), but I
will try it tonight and get back to the list.

thanks,

Bill


>
> If this patch doesn't work can you add a printf to dump the
> "sc->sis_rev" value?
>
> Thanks,
>
> Doug A.
>
> Index: if_sisreg.h
> ===================================================================
> RCS file: /cvs/src/sys/pci/if_sisreg.h,v
> retrieving revision 1.1.4.9
> diff -u -r1.1.4.9 if_sisreg.h
> --- if_sisreg.h	9 Feb 2002 23:02:40 -0000	1.1.4.9
> +++ if_sisreg.h	19 Feb 2002 03:49:55 -0000
> @@ -369,7 +369,7 @@
>  #define SIS_REV_630E		0x0081
>  #define SIS_REV_630S		0x0082
>  #define SIS_REV_630EA1		0x0083
> -#define SIS_REV_630ET		0x0083
> +#define SIS_REV_630ET		0x0084
>  #define SIS_REV_635		0x0090
>
>  /*
> Index: if_sis.c
> ===================================================================
> RCS file: /cvs/src/sys/pci/if_sis.c,v
> retrieving revision 1.13.4.19
> diff -u -r1.13.4.19 if_sis.c
> --- if_sis.c	9 Feb 2002 23:02:40 -0000	1.13.4.19
> +++ if_sis.c	19 Feb 2002 03:49:55 -0000
> @@ -919,11 +919,11 @@
>  		 */
>  		if (sc->sis_rev == SIS_REV_630S ||
>  		    sc->sis_rev == SIS_REV_630E ||
> -		    sc->sis_rev == SIS_REV_630EA1 ||
> -		    sc->sis_rev == SIS_REV_630ET)
> +		    sc->sis_rev == SIS_REV_630EA1)
>  			sis_read_cmos(sc, dev, (caddr_t)&eaddr, 0x9, 6);
>
> -		else if (sc->sis_rev == SIS_REV_635)
> +		else if (sc->sis_rev == SIS_REV_635 ||
> +			 sc->sis_rev == SIS_REV_630ET)
>  			sis_read_mac(sc, dev, (caddr_t)&eaddr);
>  		else
>  #endif
> @@ -937,13 +937,6 @@
>  	 */
>  	printf("sis%d: Ethernet address: %6D\n", unit, eaddr, ":");
>
> -	/*
> -	 * From the Linux driver:
> -	 * 630ET : set the mii access mode as software-mode
> -	 */
> -	if (sc->sis_rev == SIS_REV_630ET)
> -		SIS_SETBIT(sc, SIS_CSR, SIS_CSR_ACCESS_MODE);
> -
>  	sc->sis_unit = unit;
>  	callout_handle_init(&sc->sis_stat_ch);
>  	bcopy(eaddr, (char *)&sc->arpcom.ac_enaddr, ETHER_ADDR_LEN);
>


---------------------------------------------------------
Bill Desjardins - bill@carracing.com - (USA) 305.205.8644
http://www.CarRacing.com - Powered by FreeBSD/mod_perl
http://www.FreeBSD.org - The Best OS money cant buy!
http://www.EtherneXt.com - High-Performance Co-Location


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020221010913.X87559-100000>