Return to BSD News archive
Newsgroups: comp.os.386bsd.bugs Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!msuinfo!agate!howland.reston.ans.net!EU.net!uknet!festival!edcogsci!richard From: richard@cogsci.ed.ac.uk (Richard Tobin) Subject: User SCSI Message-ID: <Cqon5K.JFC@cogsci.ed.ac.uk> Organization: HCRC, University of Edinburgh Date: Tue, 31 May 1994 19:51:19 GMT Lines: 21 I'm trying to write a driver for a HP ScanJet, using the "unknown" SCSI device (ie I'm trying to do it all in user mode). I'm trying to do this under FreeBSD 1.1, but NetBSD looks similar. Various things don't seem to work quite right, but the most serious is that I can't tell how much data came from the scanner. The datalen_used field of the SCSI request does not appear to be filled in correctly. The lines in scsi_ioctl.c that sets datalen_used has the comment "probably rubbish" and this seems to be true. The adaptor code appears to always set xs->resid to 0. Is it possible to make this work? Alternatively, does anyone have a better user-mode scsi driver? -- Richard -- Richard Tobin, HCRC, Edinburgh University R.Tobin@ed.ac.uk "Your monkey has got it right, sir." - HHGTTG