From owner-freebsd-hackers Fri May 31 10:58:22 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id KAA26768 for hackers-outgoing; Fri, 31 May 1996 10:58:22 -0700 (PDT) Received: from hda (ip57-max1-fitch.zipnet.net [199.232.245.57]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id KAA26761 for ; Fri, 31 May 1996 10:58:19 -0700 (PDT) Received: (from dufault@localhost) by hda (8.6.11/8.6.9) id NAA06805; Fri, 31 May 1996 13:59:56 -0400 From: Peter Dufault Message-Id: <199605311759.NAA06805@hda> Subject: Re: Mustek/Paragon 6000CX scanner: Any help with SCSI ioctls? To: grog@lemis.de (Greg Lehey) Date: Fri, 31 May 1996 13:59:54 -0400 (EDT) Cc: hackers@FreeBSD.org In-Reply-To: <199605311242.OAA26369@allegro.lemis.de> from "Greg Lehey" at May 31, 96 02:42:43 pm Reply-to: hdalog@zipnet.net X-Mailer: ELM [version 2.4 PL24] Content-Type: text Sender: owner-hackers@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk > ..., on the other hand the man pages scsi([34]) > leave a lot to the imagination. I can probably fight my way through > (*and* I'm prepared to fix the man pages), but if somebody has > anything else they can point me to, I'd be very grateful. If you can find a scsi spec then scsi(3) will make more sense to you, since it assumes you can figure out what the fields in the scsi_request structure do based on familiarity with SCSI. Here is a url for an HTML one: http://abekas.com:8080/SCSI2/ It looks almost easy to port that Linux application. You could cut it in at the "scsi_cmd" call, setting up our scsireq structure and doing scsireq_enter. One problem will be figuring out where commands end and data begins - the Linux interface writes by sending a command followed by data in one write call and reads by writing the command and then reading back data. Our interface has command, command length, data, data length, and direction members in the structure. I'll send a sketch privately. -- Peter Dufault Real-Time Machine Control and Simulation HD Associates, Inc. Voice: 508 433 6936 dufault@hda.com Fax: 508 433 5267