SCSI Questions

Roger Gonzalez rg at uunet!unhd
Tue Jan 9 05:07:09 AEST 1990


I'm writing a SCSI driver for a optical WORM drive (I know, reinventing
the wheel..).  My development/test environment is UNIX, and I then download
the code to target boards running pSOS.

I am using an Ironics IV-3273 System Controller card, which has a NCR-5380
SCSI chip on it.

My questions:

In the SCSI spec, they say that the target controls the C/D, MSG, and
I/O bits.  Fine.  In this case, why is there a "target control register"
on the chip, which in the code examples I have, is used by the initiator
to "Assert C/D, I/O, or MSG".  Isn't this a contradiction? If it is, how
am I supposed to get the bus into (for example) Command phase so that I
can send a command to the target?

In the spec, they say things like "wait one bus settle delay".  Does
this kind of picky solder-jockey timing become an issue for me as a
programmer?

Does this code just lend itself to ugly inelegant programming, or am I
just losing my touch?  Do you get forced to program like a raw-meat-eating
Real Programmer whenever you talk to chips directly?  What's up?

Thanks,
Roger



-- 
UUCP:   ..!uunet!unhd!rg      | USPS: Marine Systems Engineering Laboratory
BITNET: r_gonzalez at unhh    |       University of New Hampshire
PHONE:  (603) 862-4600        |       242 SERB
FAX:    (603) 862-4399        |       Durham, NH  03824-3525



More information about the Comp.unix.questions mailing list