On Mon, Jan 12, 2004 at 04:44:51PM +0530, mohanlal jangir wrote: > > I hate to say this, but it sounds like you're in _way_ over your head.... > > But, here are a few pointers: > :-( I am sorry. Being a newbie, my questions might be silly. > > I have another question, how driver detects multiple memory slots over > device (for CF, SM etc)?
Those are generally implemented as multiple LUNs. See the SCSI-II
specification for more details.
> > The glue with the SCSI layer is not for file_operations support.
> > file_operations is implemented by the filesystem code. The filesystem
> > wants to talk to a block device -- that's where SCSI comes in. By
> > registering as an HBA, we get to be a block device -- that happens to mesh
> > very well with the USB Mass Storage protocol (again, see usb.org).
> > Matt
> For time being, if I register my driver as block device, can it work without
> SCSI glue?
If you can translate the requests from the layer above you into something
that your device can understand, then it can work.
Keep in mind, however, that you need to be able to do this for disk, tape,
CD-ROM, etc.
Matt
--
Matthew Dharm Home: [EMAIL PROTECTED]
Maintainer, Linux USB Mass Storage Driver
C: Like the Furby?
DP: He gives me the creeps. Think the SPCA will take him?
-- Cobb and Dust Puppy
User Friendly, 1/2/1999
pgp00000.pgp
Description: PGP signature
