Subject: Lite-On 82C169 Ethernet && BCM5201
To: None <tech-net@netbsd.org>
From: Love <lha@stacken.kth.se>
List: tech-net
Date: 09/12/2000 02:01:02
Someone throw a "Lite-On 82C169 Ethernet" tulip ethernet card on me.
I inserted it to my AlphaStation 400/200.

   tlp0 at pci0 dev 12 function 0: Lite-On 82C169 Ethernet, pass 2.0
   tlp0: interrupting at isa irq 10
   tlp0: Ethernet address 00:a0:cc:66:18:bc
   bcphy0 at tlp0 phy 1: BCM5201 10/100 media interface, rev. 2
   bcphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto

Since there was no phy for the Broadcom BCM5201 I tried to port the
Linux driver. I guess I got something wrong, or just it's just a tulip
problem with the 82C169.

Below is what I get when I turn on debugging. I looks like the chip
returns ``td_status: 0x7fff0000'', and that I read like:
TDSTAT_Rx_FF|TDSTAT_Rx_FL (filtering failed, framelength include crc)

Now have anyone a clue whats wrong ?

Love

   tlp0: tlp_start: sc_flags 0x00001874, if_flags 0xffff8847
   tlp0: tlp_start: txfree 1024, txnext 5
   tlp0: tlp_filter_setup: sc_flags 0x00001874
   tlp0: tlp_filter_setup: returning
   tlp0: tlp_start: sc_flags 0x00001876, if_flags 0xffff8847
   tlp0: tlp_start: txfree 1023, txnext 1
        txsoft 0xfffffe000002c3d0 transmit chain:
        descriptor 1:
          td_status:   0x00000000
          td_ctl:      0x6000002a
          td_bufaddr1: 0x407f89d2
          td_bufaddr2: 0x40834020
   tlp0: packets enqueued, IC on 1, OWN on 1
   tlp0: tlp_start: sc_flags 0x00001876, if_flags 0xffff8847
   tlp0: tlp_start: txfree 1022, txnext 2
   tlp0: tlp_intr
   tlp0: tlp_txintr: sc_flags 0x00001876
       txsoft 0xfffffe000002c3a8 transmit chain:
        descriptor 0:
          td_status:   0x7fff0000
          td_ctl:      0x880000c0
          td_bufaddr1: 0x40838400
          td_bufaddr2: 0x40834010
       txsoft 0xfffffe000002c3d0 transmit chain:
        descriptor 1:
          td_status:   0x7fff0000
          td_ctl:      0xe000002a
          td_bufaddr1: 0x407f89d2
          td_bufaddr2: 0x40834020
   tlp0: tlp_start: sc_flags 0x00001874, if_flags 0xffff8847
   tlp0: tlp_start: txfree 1024, txnext 2
   tlp0: tlp_start: sc_flags 0x00001874, if_flags 0xffff8847
   tlp0: tlp_start: txfree 1024, txnext 2