From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,4f45c9624fcb43b3 X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1995-01-12 19:28:08 PST Path: nntp.gmd.de!Germany.EU.net!howland.reston.ans.net!news.moneng.mei.com!hookup!olivea!uunet!nic.iii.net!iii1.iii.net!not-for-mail From: sam@iii1.iii.net (Sam Weiner) Newsgroups: comp.unix.osf.osf1 Subject: Re: Generic SCSI and Scanners Date: 12 Jan 1995 22:28:08 -0500 Organization: What me? Message-ID: <3f4s0r$6qh@iii1.iii.net> References: NNTP-Posting-Host: iii1.iii.net Keywords: SCSI Scanner Generic In article mark@ncgrafix.demon.co.uk (Mark Wassell) writes: : :We're trying to port a little program (hpscanpbm) that drives an HP scanner :under Linux onto an OSF1 Alpha (V1.3 and later). Under Linux this does its :work through a generic SCSI device. : :Is there such a device under OSF1? : :If not then I suppose I would be looking for either: : : 1. A set of 'generic SCSI' access routines that operate at the user level : that we can slot into hpscanpbm. : : 2. A device driver (and information on how to install it!) for a generic SCSI : driver. There is an example of a similar in the Device Driver CDROM online : documentation but I haven't a clue on how to go about installing it : :I would prefer to get (1). I'm pretty hopeful that this is the route to go as :I have: : : 1. Managed to hook up the scanner to the bus and got 'scu' : to print its device information etc : : 2. Written a little program that opens /dev/cam and does an ioctl() : call to do a 'CAM SCAN' (which I presume is equivalent to scu's : 'scan edt'. : :How to get it to do more complex things via ioctl() I, again, haven't a clue. : Actually, you are on the right road. Using /dev/cam, you can send arbitrary SCSI command blocks (CDBs) to devices. scu uses this mechanism. There should be a manual on using CAM to do this (there was for ULTRIX but I don't have access to the OSF/1 list.) Is this what those examples are trying to show? Sam