From owner-freebsd-scsi@FreeBSD.ORG Wed Jan 25 08:51:32 2006 Return-Path: X-Original-To: freebsd-scsi@FreeBSD.ORG Delivered-To: freebsd-scsi@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6FE4B16A41F for ; Wed, 25 Jan 2006 08:51:32 +0000 (GMT) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (lurza.secnetix.de [83.120.8.8]) by mx1.FreeBSD.org (Postfix) with ESMTP id 72CCE43D45 for ; Wed, 25 Jan 2006 08:51:31 +0000 (GMT) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (jividq@localhost [127.0.0.1]) by lurza.secnetix.de (8.13.4/8.13.4) with ESMTP id k0P8pNR2065464 for ; Wed, 25 Jan 2006 09:51:29 +0100 (CET) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.13.4/8.13.1/Submit) id k0P8pNeQ065463; Wed, 25 Jan 2006 09:51:23 +0100 (CET) (envelope-from olli) Date: Wed, 25 Jan 2006 09:51:23 +0100 (CET) Message-Id: <200601250851.k0P8pNeQ065463@lurza.secnetix.de> From: Oliver Fromme To: freebsd-scsi@FreeBSD.ORG X-Newsgroups: list.freebsd-scsi User-Agent: tin/1.8.0-20051224 ("Ronay") (UNIX) (FreeBSD/4.11-STABLE (i386)) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.1.2 (lurza.secnetix.de [127.0.0.1]); Wed, 25 Jan 2006 09:51:29 +0100 (CET) Cc: Subject: SCSI scanner, sym/ncr driver, pt(4) X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-scsi@FreeBSD.ORG List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Jan 2006 08:51:32 -0000 Hi, I'm running FreeBSD 6-stable. Recently I have connected an old SCSI scanner (EPSON GT-9000 a.k.a. ES-1200C) to an even older NCR810 host adapter. It works fine with SANE from the ports collection, after tweaking the config a little bit. However, I have a few questions. First I noticed that the NCR810 host adapter seems to be supported both by ncr(4) and sym(4). I was unable to find any documentation about the advantages of each. The man pages don't mention when to prefer one over the other. I tried sym(4) first because it seems to be newer, and it works fine. But I wonder if the ncr(4) driver offered any advantages. I mean, there must be a reason it is still in the source tree and not declared obsolete. By the way, these are the sym(4) probe messages: sym0: <810> port 0xec00-0xecff mem 0xe6403000-0xe64030ff irq 11 at device 20.0 on pci0 sym0: No NVRAM, ID 7, Fast-10, SE, parity checking sym0: [GIANT-LOCKED] I assume that ncr(4) is also giant-locked, right? The second question is probably a SANE issue, not a FreeBSD one, but I'll mention it to the experts here anyway. :-) The scanner is probed and attached to the pt(4) driver: pt0 at sym0 bus 0 target 4 lun 0 pt0: Fixed Processor SCSI-CCS device pt0: 3.300MB/s transfers However, the SANE back-end driver (man pages sane-epson(5) and sane-sscsi(5)) doesn't want to use /dev/pt0. When I try to access it, I get "invalid argument". The device node does exist, of course. But when I tell SANE to use the pass device, it works. The problem with that is that the number of the pass device is not always the same. It can be /dev/pass0 or /dev/pass1, depending on whether the scanner was on during boot, or switched on later and detected by re- scanning the SCSI bus. That's somewhat annoying, because I have to change the device setting all the time. My guess is that accessing the scanner through the pt0 device requires special API support in the SANE driver, while using the pass device does not. Is that right? Thanks in advance for any hints and insights! Best regards Oliver PS: No need for Cc, I read the freebsd-scsi list. -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing Dienstleistungen mit Schwerpunkt FreeBSD: http://www.secnetix.de/bsd Any opinions expressed in this message may be personal to the author and may not necessarily reflect the opinions of secnetix in any way. "C++ is the only current language making COBOL look good." -- Bertrand Meyer