[5416] in linux-scsi channel archive

home help back first fref pref prev next nref lref last post

Re: Help on interfacing through the generic scsi driver?

daemon@ATHENA.MIT.EDU (Brian Geisel)
Mon Dec 14 20:39:43 1998

From: Brian Geisel <briang@microlite.com>
To: "Dan - Sr. Admin" <dm@globalserve.net>
Cc: linux-scsi@vger.rutgers.edu
Date: 	Mon, 14 Dec 1998 16:11:41 -0500

> There is a SCSI-Programming HOWTO at:
>      http://sunsite.unc.edu/linux/HOWTO/SCSI-Programming-HOWTO.html
> 
> I'm not sure if it is up to date, but it will get you started.
> 
> <>< Lance.
> 
> 
> Dan - Sr. Admin wrote:
> > Please excuse the blatent "newbieness" of this question, but device
drivers
> > are quite a new area for me.
> > 
> > In a nutshell, I want some experience interfacing with hardware
peripherals.
> > In an act of 3am weariness, I decided writing a CD to CD copier would
be
> > great practice.  I've already contacted the vendor of my cdr to get the
> > SCSI command instruction set.  My question to you all is how do I
interface
> > this with the pre-existing generic linux scsi drivers already
available?


That should help...
	Maybe to assist your search...

Pay special attention to the sg[a-?] device nodes.  You write to these via
an ioctl and you can issue direct SCSI commands (i.e. CDB's).  The sg
devices are major numbered 21.  There was a discussion a while ago about
their initialization, but as it stands they are minor numbered according to
their SCSI ordering (base=0).  In other words, Everything on the first
controller comes first, etc.  In the order of preference: controller, bus,
ID, LUN.

Hope this helps get you off on the right foot a little.

Brian Geisel

-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@vger.rutgers.edu

home help back first fref pref prev next nref lref last post