Subject: Re: Sun Sbus Token Ring adapter
To: David Laight <david@l8s.co.uk>
From: John Nemeth <jnemeth@victoria.tc.ca>
List: port-sparc64
Date: 12/20/2002 04:02:11
On May 11,  3:56am, David Laight wrote:
} On Wed, Dec 18, 2002 at 06:48:34AM -0800, John Nemeth wrote:
} >      I was wondering if there was any chance of getting support for the
} > Sun Sbus Token Ring adapter?  I've been having a lot of problems
} 
} Is that card like the one that ICL [1] made?
} ie the texas TMS380 (?) chip attached to the DMA+ where you
} would usually put the AMD lance?

     I believe so.

} (The solaris 'prtconv -v' output might be informative - if you can
} decode it.)

     Here is what I have on it:

First the stuff from dmesg:

Dec 19 03:13:54 ultra sbus: [ID 349649 kern.info] tr0 at sbus0: SBus0 slot 0x0 offset 0xc00000 and slot 0x0 offset 0x0 and slot 0x0 offset 0x400000 SBus level 4 sparc9 ipl 7
Dec 19 03:13:54 ultra genunix: [ID 936769 kern.info] tr0 is /sbus@1f,0/tr@0,c00000

Now the prtconf -v output:

        tr, instance #0
            System properties:
                name <registers> length <36>
                    value <0x0000000100c0000000000071000000010000000000010000000000010040000000000004>.
                name <mode> length <4>
                    value <0x00000000>.
                name <ari> length <4>
                    value <0x00000000>.
                name <sr> length <4>
                    value <0x00000001>.
                name <mtu> length <4>
                    value <0x00000003>.
                name <class> length <5>
                    value 'sbus'
            Register Specifications:
                Bus Type=0x0, Address=0xc00000, Size=0x71
                Bus Type=0x0, Address=0x0, Size=0x10000
                Bus Type=0x0, Address=0x400000, Size=0x4

The System Properties look like most are taken from the config file,
which I'll attach to the end of message.

Now, some tidbits from the manual:

---------------------
1.2 SunLink TRI/S 3.0

	The SBus-based token ring interface provides access to 4-Mbps
	or 16-Mbps token ring local area networks.  The interface
	design is based on the Texas Instruments TMS380 token ring chip
	set.  It contains EPROM and DRAM used for various purposes as
	described under "Features and Options", in this chapter.

    1.2.1 Hardware Overview

	The token ring interface connects to the SBus via a custom DMA
	ASIC chip.  The DMA provides a fast and efficient 32-bit
	transfer of data from the token ring logic to the host
	processor, across the bus.  The DMA packs and unpacks 16-bit
	halfwords into 32-bit fullwords as well as providing a direct
	I/O path for accessing and programming the onboard registers.
	The token ring supports both slave and master cycles across the
	bus.

	The token ring interface contains a 512-Kbytes local memory
	that is accessible by both DMA and direct CPU access.  A
	portion of the local memory is used for execution of the TMS380
	firmware.  The remainder is used for buffering data packets.

	The design is based on the Texas Instruments's TMS380 and
	TMS38053 Token Ring chip sets, which are full compatible with
	the IEEE 802.5 Token Ring specifications.

	...

    1.3 Features and Options

	Token Ring -- The IEEE 802.5-1988 standard (Token Ring MAC/PHY)
	is supported by use of the Texas Instruments TMS380 chipset.
	Interface to the SBus is from a DMA ASIC which provides 32-bit
	word SBus transfers.  This minimizes system bus loading.

	...

	512K Local Memory -- Of the 512K DRAM memory on the token ring
	card 48K is reserved for the Texas Instruments's IC's
	microcode.  464K of the DRAM is available for buffer memory.
	The DRAM is parity-checked.

	...
------

Finally, a visual examination of the card:

- it is a standard SBus single slot card
- it has a DB-9 on the back for connecting to the ring via IBM type 1/2
  cabling
- it has 512K of RAM along with a parity chip
- it has a DMA controller chip labelled:
	LSI
	L64853AQC
	DMA PLUS CTRL
	WK93491
	XXG 9710 {two delta symbols}
	A84C8 PE FLA
	HONG KONG
-it has a TI Token Ring chip labelled:
	{TI logo} LAN
	TMS380C26PQL
	EU-71A1ERW
-it has a transceiver labelled:
	LH525
	S03697F
	10/97
	SILCOM
- it has a 64MHz crystal
- it has a ROM
- it has a jumper to select the ring speed
- it has various miscellaneous chips and other parts

} If so then the card would behave much the same as the ISA
} versions, eg the Olicom cards.

     The ISA card I have is made by IBM and it is inside my gateway
machine at the moment.  I may dig it out later and look at what is on
it.  However, any information needed about it, should be in the
driver.

     Here is the config file (/kernel/drv/tr.conf):

#
# Copyright 1993 by Sun Microsystems, Inc. All Rights Reserved
#
#ident  "@(#)tr.conf 1.9        93/10/27 SMI"
#
# The mtu value is an index related to the maximum size of the information
# field in a MAC packet:
#
#       index   0       1       2       3       4       5       6
#       size    516     1470    2052    4472    8144    11407   17800
#
# The sr parameter turns source routing on or off:
# if sr=1:      Use source routing (default)
# if sr=0:      Do not use source routing
#
# The ari parameter controls ARI/FCI (Address Recognized Indicator/Frame
# Copied Indicator) soft error reporting.
#
# if ari=0:     Enable ARI/FCI soft error reporting (Default)
# if ari=1:     Disable ARI/FCI soft error reporting
#
# The mode parameter sets the various modes in which the token ring
# adapter can be opened.
# if mode=0:    Enable CLASSIC mode     (Default)
# if mode=1:    Enable AUTO mode
# if mode=2:    Enable DTR mode

name="tr" class="sbus" mtu=3 sr=1 ari=0 mode=0
registers=0x1,0xc00000,0x71, 0x1,0x0,0x10000, 0x1,0x400000,0x4;

}-- End of excerpt from David Laight