Re: Chipset SiS735 / NIC SiS 900 - PR kern/30836

2002-01-12 Thread KUROSAWA Takahiro

On Thu, 10 Jan 2002 09:19:50 -0800
SUZUKI Koichi [EMAIL PROTECTED] wrote:

 But it seems that the problem of the media type detection
 on 10BaseT Network that Jon-Erik Lido reported in the follow-up
 still remains. :-(

I doubt the ukphy driver can handle the RTL8201 PHYceiver (on K7S5A).
There is a datasheet of RTL8201:
ftp://ftp.realtek.com.tw/lancard/data_sheet/8201/spec-8201(103).pdf
But I've never found out why autonegotiation doesn't complete on 
10baseT/UTP links...

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-stable in the body of the message



Re: Chipset SiS735 / NIC SiS 900 - PR kern/30836

2002-01-11 Thread Kent Stewart



Dan Langille wrote:

 Folks:
 
 Bill has solved the problem.  I gave him access to my box last night and 
 he coded a fix.
 
 Bill: will that change get into 4.5-RELEASE?


If it has to be MFC'ed can we get a diff of the changes to stable? I 
can replace some ISA 10baseT NICs with PCI based stuff and have one 
less card in two computers.

Then, all we need is for the sound to work :).

Kent


 
 Thanks again Bill.
 
 On 11 Jan 2002 at 3:50, Kent Stewart wrote:
 
 
As you can see, it works on my system, which is a Amptron 830LM and is
based on the SiS-735. The MAC address is what the motherboard
documentation tells me it should be.

sis0: SiS 900 10/100BaseTX port 0xb800-0xb8ff mem 
0xcffcd000-0xcffcdfff irq 5 at device 3.0 on pci0
sis0: Ethernet address: 00:d0:09:d7:58:60
miibus0: MII bus on sis0


-- 
Kent Stewart
Richland, WA

mailto:[EMAIL PROTECTED]
http://users.owt.com/kstewart/index.html
FreeBSD News http://daily.daemonnews.org/


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-stable in the body of the message



Re: Chipset SiS735 / NIC SiS 900 - PR kern/30836

2002-01-10 Thread Kent Stewart



Dan Langille wrote:

 Hi folks,
 
 It appears I am not the first to buy a K7S5A motherboard (an SiS 735 
 chipset) with integrated NIC.  I can't get my NIC to work either.
 
 Bill: I'm ready to help with this.  If you so wish, I can give you a 
 login on the box.


I received these two patches from J. Lemon. They sort of do something. 
I can see the first two blocks of the MAC address but it doesn't move 
to the next two pairs and that is as far as they go towards working. I 
converted what JLemon sent to patches to stable. I have attached them.

I have two systems using the K7S5A motherboard and one that uses an 
Amptron 830LM, which is also based on the SiS 735 chipset.

Kent


 
 cheers.
 


-- 
Kent Stewart
Richland, WA

mailto:[EMAIL PROTECTED]
http://users.owt.com/kstewart/index.html
FreeBSD News http://daily.daemonnews.org/


--- if_sis.c.orig   Sat Dec 29 03:45:11 2001
+++ if_sis.cSat Dec 29 04:40:18 2001
@@ -439,6 +439,31 @@
pci_write_config(bridge, 0x48, reg  ~0x40, 1);
return;
 }
+
+static void sis635_mac_addr(sc, dest)
+   struct sis_softc*sc;
+   caddr_t dest;
+{
+   u_int32_t   filtsave;
+
+   filtsave = CSR_READ_4(sc, SIS_RXFILT_CTL);
+
+   SIS_SETBIT(sc, SIS_CSR, SIS_CSR_RELOAD);
+   CSR_WRITE_4(sc, SIS_CSR, 0);
+
+   /* Disable the the receive filter. */
+   SIS_CLRBIT(sc, SIS_RXFILT_CTL, SIS_RXFILTCTL_ENABLE);
+
+   /* Get MAC address */
+   CSR_WRITE_4(sc, SIS_RXFILT_CTL, NS_FILTADDR_PAR0);
+   ((u_int16_t *)dest)[0] = CSR_READ_2(sc, SIS_RXFILT_DATA);
+   CSR_WRITE_4(sc, SIS_RXFILT_CTL, NS_FILTADDR_PAR1);
+   ((u_int16_t *)dest)[1] = CSR_READ_2(sc, SIS_RXFILT_DATA);
+   CSR_WRITE_4(sc, SIS_RXFILT_CTL, NS_FILTADDR_PAR2);
+   ((u_int16_t *)dest)[2] = CSR_READ_2(sc, SIS_RXFILT_DATA);
+
+   CSR_WRITE_4(sc, SIS_RXFILT_CTL, filtsave);
+}
 #endif
 
 static int sis_miibus_readreg(dev, phy, reg)
@@ -891,6 +916,8 @@
command == SIS_REV_630E ||
command == SIS_REV_630EA1)
sis_read_cmos(sc, dev, (caddr_t)eaddr, 0x9, 6);
+   else if (command == SIS_REV_635A)
+   sis635_mac_addr(sc, (caddr_t)eaddr);
else
 #endif
sis_read_eeprom(sc, (caddr_t)eaddr,


--- if_sisreg.h.origSat Dec 29 03:45:36 2001
+++ if_sisreg.h Sat Dec 29 03:58:00 2001
@@ -105,6 +105,7 @@
 #define SIS_CSR_RX_RESET   0x0020
 #define SIS_CSR_SOFTINTR   0x0080
 #define SIS_CSR_RESET  0x0100
+#define SIS_CSR_RELOAD 0x0400
 
 #define SIS_CFG_BIGENDIAN  0x0001
 #define SIS_CFG_PERR_DETECT0x0008
@@ -367,6 +368,7 @@
 #define SIS_REV_630E   0x0081
 #define SIS_REV_630S   0x0082
 #define SIS_REV_630EA1 0x0083
+#define SIS_REV_635A   0x0090
 
 /*
  * NatSemi vendor ID
@@ -410,6 +412,8 @@
 #define CSR_WRITE_4(sc, reg, val)  \
bus_space_write_4(sc-sis_btag, sc-sis_bhandle, reg, val)
 
+#define CSR_READ_2(sc, reg)\
+   bus_space_read_2(sc-sis_btag, sc-sis_bhandle, reg)
 #define CSR_READ_4(sc, reg)\
bus_space_read_4(sc-sis_btag, sc-sis_bhandle, reg)
 



Re: Chipset SiS735 / NIC SiS 900 - PR kern/30836

2002-01-09 Thread Josh Paetzel

On Wed, Jan 09, 2002 at 10:47:28PM -0500, Dan Langille wrote:
 Hi folks,
 
 It appears I am not the first to buy a K7S5A motherboard (an SiS 735 
 chipset) with integrated NIC.  I can't get my NIC to work either.
 
 Bill: I'm ready to help with this.  If you so wish, I can give you a 
 login on the box.
 
 cheers.
 -- 
 Dan Langille
 The FreeBSD Diary - http://freebsddiary.org/ - practical examples

I can do the same as well.  I've got the same motherboard, and can't 
get the NIC to work.  Device probe and attach 6 is what I get.  It 
picks everything up, but gives the MAC address as 00:00:00:00:00

Josh


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-stable in the body of the message