From owner-freebsd-current@FreeBSD.ORG Sat Aug 7 19:56:05 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 99CB816A4CE for ; Sat, 7 Aug 2004 19:56:05 +0000 (GMT) Received: from mail.bitfreak.org (mail.bitfreak.org [65.75.198.146]) by mx1.FreeBSD.org (Postfix) with ESMTP id 55AF343D4C for ; Sat, 7 Aug 2004 19:56:05 +0000 (GMT) (envelope-from dmp@bitfreak.org) Received: from speck.techno.pagans (c-24-21-241-225.client.comcast.net [24.21.241.225]) by mail.bitfreak.org (Postfix) with ESMTP id 7B8522A477; Sat, 7 Aug 2004 12:56:04 -0700 (PDT) Received: from spud (w0.techno.pagans [172.21.42.20]) by speck.techno.pagans (Postfix) with ESMTP id D70CE17022; Sat, 7 Aug 2004 12:56:03 -0700 (PDT) From: "Darren Pilgrim" To: "'M. Warner Losh'" , Date: Sat, 7 Aug 2004 12:55:53 -0700 Message-ID: <000001c47cb8$8ef1bb50$142a15ac@spud> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.6626 In-Reply-To: <20040806.231231.33567668.imp@bsdimp.com> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 Importance: Normal cc: freebsd-current@freebsd.org Subject: RE: USB drivers X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 07 Aug 2004 19:56:05 -0000 > From: M. Warner Losh >=20 > In message: <41124C8B.2060902@tellme3times.com> > Chris writes: > :=20 > : What I am trying to determine is why my multifunction printer/scanner=20 > : receives only one of the two drivers. Is it because the printer does=20 > : not respond properly? Is it because the printer is not defined? I > : have many questions here. >=20 > Yes. Usb is a little complicated in this area, and there are a number > of details that are hard to get right. It wouldn't surprise me if the > current set of drivers are less than completely optimal. On a bit of a side-track, I'm wondering if it could be due to how the multifunction device presents itself? A bit back in this thread someone mentioned that a pointer must be present for a driver to attach to a device. If there is only one pointer for a device, only one driver may attach. Since a single USB bus can have a LOT of devices and each device's capabilities are determined through the presence of usage pages, I see two ways for a multifunction device to present itself: - A single device ID with more than one usage page. All the functionality is there and is compatible with FreeBSD drivers, but since there is only one device probed on the bus, only one driver may attach. Perhaps a "simple" mux driver would be useful? - A multiple single-usage device IDs. Same functionality as before, but now FreeBSD can probe unique printer and scanner devices and thus let both ulpt and uscanner attach simutaneously. Am I way off base?