Subject: Re: Cardbus support for Realtek 8139C/8169?
To: None <jonathan@dsg.stanford.edu>
From: Masanori Kanaoka <kanaoka@ann.hi-ho.ne.jp>
List: tech-kern
Date: 12/25/2004 21:21:51
----Security_Multipart(Sat_Dec_25_21_21_51_2004_275)--
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Hi,

       From: "Jonathan Stone" <jonathan@dsg.stanford.edu>
    Subject: Re: Cardbus support for Realtek 8139C/8169?
      Date : Fri, 29 Oct 2004 10:08:21 -0700
 Message-ID: <E1CNaEf-0002zU-00@smeg.dsg.stanford.edu>

$ re(4) supports ReaTek 8139C-Plus (not 8139C), 8169, 8169S, 8110S
$ (8110S is software-compatible with 8169S but pin-compatible with the
$ 8100, an earlier 10/100 LOM product). The "S" indicates single-chip
$ with builtin realtek 1000baseT PHY.
$ 
$ rtl81x9.c is already taken for the 8129/8139/8193C backend driver.
$ Perhaps rtl8169.c?


Thank you for your efforts!!

I have a new cardbus card which is "BUFFALO LPC-CB-CLGT".
It works fine for me with re(4) split driver as below.

re0 at cardbus0 dev 0 function 0: Realtek 10/100/1000baseT
cardbus_mapreg_map called: cardbus0 1
cardbus_mapreg_map: physaddr 4300
re_attach: MAC chip hwrev 0x10000000 softc 4
re0: Ethernet address 00:0d:0b:XX:XX:XX
rgephy0 at re0 phy 7: RTL8169S/8110S 1000BASE-T media interface, rev. 2
rgephy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
re0: interrupting at 6

idea# ifconfig -m re0
re0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        capabilities=7<IP4CSUM,TCP4CSUM,UDP4CSUM>
        enabled=0
        address: 00:0d:0b:XX:XX:XX
        media: Ethernet autoselect (1000baseT full-duplex)
        status: active
        supported Ethernet media:
                media 10baseT
                media 10baseT mediaopt full-duplex
                media 100baseTX
                media 100baseTX mediaopt full-duplex
                media 1000baseT
                media 1000baseT mediaopt full-duplex
                media autoselect
        inet 192.168.1.11 netmask 0xffffff00 broadcast 192.168.1.255
        inet6 fe80::20d:bff:feXX:XXXX%re0 prefixlen 64 scopeid 0x3
        inet6 3ffe:505:204a:1:20d:bff:feXX:XXXX prefixlen 64

It need to add sc_rev to struct rtk_softc in sys/dev/ic/rtl81x9var.h.

But I don't have another box which have GIGA NIC.
So I can't check speed with 1000baseT.

Best Regads!
---
 Masanori Kanaoka        kanaoka AT ann.hi-ho.ne.jp


----Security_Multipart(Sat_Dec_25_21_21_51_2004_275)--
Content-Type: application/pgp-signature
Content-Transfer-Encoding: 7bit

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (NetBSD)

iQEVAwUAQc1bZ6ZTiBfoL27MAQJuRQf/V0IEJ7hFE4PxOTfcNU89vkmbDhE5hhOs
oEjvI40oGYQuM2G7CxyDTsjYOcTGspZOWXLE4/tJOujlwhwRffSFTyUlBwiaXLoo
x8wqFjG81rTcRpSMcM3WKcTDgl+pZwHGp+Z5D9hVgUqpilMAgFDBFCm6QLxjJJCg
Mcw87QVfXZErZW1I+UEgijv2Fow5t+uKsbHIYdPmaszXMUdKkf/SgQcMSlprNBGJ
/gsb1dOHolSNN0g/m/5bQdWnDcZr5o+Ar2RUxc1AJLy3u2PMUG3hJ83t+GHNq/Yl
WJCW7t67Wjp+xi8xgWXu07oQzu9V8p1UwpsAoqk2fD8E3f2iFIdKSQ==
=HWzE
-----END PGP SIGNATURE-----

----Security_Multipart(Sat_Dec_25_21_21_51_2004_275)----