Subject: Specifying targets on other esp controllers
To: None <port-sparc@sun-lamp.cs.berkeley.edu>
From: Peter Galbavy <peter@wonderland.org>
List: port-sparc
Date: 03/07/1994 20:12:30
I have obtained a second SCSI controller for dumpty (SS2), and lo
and behold esp1 shows up. I have not yet attached a disk to it,
but the tape drive is target 5 (not yet supported).

What I get is:

esp0 at sbus0 slot 0 offset 0x800000 pri 3: ESP100A, clock = 20 MHz, ID = 7
tg1 at esp0 target 1
sd1 at tg1 unit 0: FUJITSU M2623S-512 0303, 833196 512 byte blocks
sd1: <Fujitsu-M2623SA cyl 1433 alt 2 hd 9 sec 64>
tg0 at esp0 target 3
sd0 at tg0 unit 0: SEAGATE ST1480   SUN0424 7516, 843284 512 byte blocks
sd0: <SUN0424 cyl 1151 alt 2 hd 9 sec 80>
le0 at sbus0 slot 0 offset 0xc00000 pri 5: hardware address 08:00:20:11:2b:ea
dma1 at sbus0 slot 2 offset 0x100000: rev 2
esp1 at sbus0 slot 2 offset 0x200000 pri 3: ESP100A, clock = 25 MHz, ID = 7
target 5 on esp1 not configured

My question is, how do I configure devices (disk) on extra controllers.
I don't know enough about config.new to try and the manula is scant.
I currently have the same as TDR2:

tg0     at scsi? target 3
sd0     at tg0 drive 0
tg1     at scsi? target 1
sd1     at tg1 drive 0

Now, I think I do:

tg4	at scsi1 target 2
sd4	at tg4 drive 0

Seem to make sense... ? But I get "scsi1" undeclared.

Anyway, can someone (Chris T ?) explain the philosphy of "tg?" ?
It just seems to chain the scsi to the drive. There must be some
"added value" ?

Oh yeah, I don't mean to hassle here, but will tape/cd support be
in there soon ? And while on the subject, as an aside, why does a
large amount of scsi code live in /sys/scsi and then each port has
its own ? What uses /sys/scsi/s[td].c etc ?

Thanks,
-- 
Peter Galbavy				e-mail: P.Galbavy@wonderland.org
Wonderland				  work: P.Galbavy@micromuse.co.uk

	  "And you will know exactly who you are, forever,
		by knowing what it is that you love."

------------------------------------------------------------------------------