From owner-freebsd-hardware@FreeBSD.ORG Sun Jun 6 09:55:19 2004 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6AD5516A4CE for ; Sun, 6 Jun 2004 09:55:19 -0700 (PDT) Received: from gaff.hhhr.ision.net (gaff.hhhr.ision.net [195.180.9.213]) by mx1.FreeBSD.org (Postfix) with ESMTP id 095C043D49 for ; Sun, 6 Jun 2004 09:55:18 -0700 (PDT) (envelope-from ohoyer@ohoyer.de) Received: from gaff.hhhr.ision.net (ohoyer@localhost [127.0.0.1]) by gaff.hhhr.ision.net (8.12.11/8.12.11) with ESMTP id i56Gt8IO067380 for ; Sun, 6 Jun 2004 18:55:08 +0200 (CEST) (envelope-from ohoyer@ohoyer.de) Received: from localhost (ohoyer@localhost)i56Gt7EW067377 for ; Sun, 6 Jun 2004 18:55:08 +0200 (CEST) (envelope-from ohoyer@ohoyer.de) X-Authentication-Warning: gaff.hhhr.ision.net: ohoyer owned process doing -bs Date: Sun, 6 Jun 2004 18:55:06 +0200 (CEST) From: Olaf Hoyer Sender: ohoyer@gaff.hhhr.ision.net To: freebsd-hardware Message-ID: <20040606185125.N67358@gaff.hhhr.ision.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Anyone got a Compaq Proliant 1600 (Tower version) X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Jun 2004 16:55:19 -0000 Hi! Well, I'm about to rethink some of my personal servers, and might get some old, but working Compaq Proliant 1600 tower models for a decent price. Those tower models will fit my needs, but after looking in the archives an on Gregorys Homepage I do not see much reports about the 1600 Towers in general. The box will only have 1 CPU. Can anyone comment about FreeBSD 4.x (preferred) or a 5.2.1 running on that box? TIA Olaf -- Olaf Hoyer ohoyer@gaff.hhhr.ision.net Fuerchterliche Erlebniss geben zu raten, ob der, welcher sie erlebt, nicht etwas Fuerchterliches ist. (Nietzsche, Jenseits von Gut und Boese) From owner-freebsd-hardware@FreeBSD.ORG Sun Jun 6 10:07:13 2004 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 69D5A16A4CE for ; Sun, 6 Jun 2004 10:07:13 -0700 (PDT) Received: from krusty.intranet.com.mx (krusty.intranet.com.mx [200.33.246.3]) by mx1.FreeBSD.org (Postfix) with ESMTP id D0B1C43D3F for ; Sun, 6 Jun 2004 10:07:12 -0700 (PDT) (envelope-from jbiquez@icsmx.com) Received: from pc.icsmx.com ([200.33.246.131])i56H8j4r020390 for ; Sun, 6 Jun 2004 12:09:29 -0500 (CDT) (envelope-from jbiquez@icsmx.com) Message-Id: <5.1.0.14.2.20040606120424.0308ac70@mail.icsmx.com> X-Sender: jbiquez@mail.icsmx.com X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Sun, 06 Jun 2004 12:05:45 -0500 To: freebsd-hardware@freebsd.org From: Jorge Biquez In-Reply-To: <20040606185125.N67358@gaff.hhhr.ision.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Subject: Re: Anyone got a Compaq Proliant 1600 (Tower version) X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Jun 2004 17:07:13 -0000 I had one runninf version 4.6 for 2 years without any problem withouta reboot (running apache on a medium loaded environment). I hope this helps At 06:55 p.m. 06/06/04 +0200, you wrote: >Hi! > >Well, I'm about to rethink some of my personal servers, and might get >some old, but working Compaq Proliant 1600 tower models for a decent >price. >Those tower models will fit my needs, but after looking in the archives >an on Gregorys Homepage I do not see much reports about the 1600 Towers >in general. > >The box will only have 1 CPU. > > >Can anyone comment about FreeBSD 4.x (preferred) or a 5.2.1 running on >that box? > >TIA >Olaf > >-- >Olaf Hoyer ohoyer@gaff.hhhr.ision.net >Fuerchterliche Erlebniss geben zu raten, >ob der, welcher sie erlebt, nicht etwas Fuerchterliches ist. >(Nietzsche, Jenseits von Gut und Boese) >_______________________________________________ >freebsd-hardware@freebsd.org mailing list >http://lists.freebsd.org/mailman/listinfo/freebsd-hardware >To unsubscribe, send any mail to "freebsd-hardware-unsubscribe@freebsd.org" From owner-freebsd-hardware@FreeBSD.ORG Mon Jun 7 11:19:07 2004 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C37AA16A4CE for ; Mon, 7 Jun 2004 11:19:07 +0000 (GMT) Received: from mk-smarthost-9.mail.uk.tiscali.com (mk-smarthost-9.mail.uk.tiscali.com [212.74.114.48]) by mx1.FreeBSD.org (Postfix) with ESMTP id ECB9743D58 for ; Mon, 7 Jun 2004 11:19:06 +0000 (GMT) (envelope-from adam@otterycomputers.com) Received: from dsl-80-46-156-229.access.uk.tiscali.com ([80.46.156.229]:63442 helo=postman.oocltd.dom) by mk-smarthost-9.mail.uk.tiscali.com with esmtp (Exim 4.30) id 1BXI9L-0001qP-DB for freebsd-hardware@freebsd.org; Mon, 07 Jun 2004 12:18:43 +0100 Received: from localhost (localhost [127.0.0.1]) by postman.oocltd.dom (Postfix) with ESMTP id AD384A4B for ; Mon, 7 Jun 2004 12:19:04 +0100 (BST) Received: from postman.oocltd.dom ([127.0.0.1]) by localhost (postman.oocltd.dom [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 00156-01 for ; Mon, 7 Jun 2004 12:19:01 +0100 (BST) Received: from [192.168.0.250] (unknown [192.168.0.250]) by postman.oocltd.dom (Postfix) with ESMTP id 73F40136 for ; Mon, 7 Jun 2004 12:19:01 +0100 (BST) From: Adam Retter To: freebsd-hardware@freebsd.org Content-Type: text/plain Organization: Ottery Office and Computer Ltd. Message-Id: <1086607141.314.4.camel@wokshopbsd.oocltd.dom> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 Date: Mon, 07 Jun 2004 12:19:01 +0100 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at otterycomputers.com Subject: How to Format 1MB Floppy X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Jun 2004 11:19:07 -0000 Okay chaps, im finding it surprisingly difficult to format a 1MB floppy on freebsd. I want to format it for msdos. I am trying - # newfs -t dos /dev/fd0 but it says - newfs: ioctl (GDINFO}: Invalid argument newfs: /dev/fd0: can't read disk label; disk type must be specified. I can see from man newfs that to specify the disk type you use -T but im not sure what the argument for it is? The disks have this printed on them - Imation 2DD 1.0MB Thanks Adam. -- Adam Retter Ottery Office and Computer Ltd. Tel: +44(0)1404 814946 Fax: +44(0)1404 811786 From owner-freebsd-hardware@FreeBSD.ORG Mon Jun 7 11:38:36 2004 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 539B916A4D0 for ; Mon, 7 Jun 2004 11:38:36 +0000 (GMT) Received: from castle.dkl.ath.cx (e1232.ot.ppp.u-netsurf.ne.jp [202.233.18.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6C46D43D54 for ; Mon, 7 Jun 2004 11:38:35 +0000 (GMT) (envelope-from sk@dkl.ath.cx) Received: from localhost (localhost [127.0.0.1]) by castle.dkl.ath.cx (8.12.9/8.12.9) with ESMTP id i57BcWwR032681; Mon, 7 Jun 2004 20:38:32 +0900 (JST) (envelope-from sk@dkl.ath.cx) Date: Mon, 07 Jun 2004 20:38:32 +0900 (JST) Message-Id: <20040607.203832.08961086.sk@dkl.ath.cx> To: adam@otterycomputers.com From: Sumio KOBAYASHI In-Reply-To: <1086607141.314.4.camel@wokshopbsd.oocltd.dom> References: <1086607141.314.4.camel@wokshopbsd.oocltd.dom> X-Mailer: Mew version 3.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit cc: freebsd-hardware@freebsd.org Subject: Re: How to Format 1MB Floppy X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Jun 2004 11:38:36 -0000 Hi, Adam On Mon, 07 Jun 2004 12:19:01 +0100, Adam Retter wrote on Subject: How to Format 1MB Floppy: > I want to format it for msdos. > > I am trying - > > # newfs -t dos /dev/fd0 Please try 'man newfs_msdos'. 'newfs -t' should be followed by #tracks/cylinder Sumio, ---------- Sumio KOBAYASHI favorites : BSD, Perl, GNU, TeX, BJ unfavorites: W*s, M*t, W*d, BG From owner-freebsd-hardware@FreeBSD.ORG Mon Jun 7 11:53:34 2004 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C7D4316A4CE for ; Mon, 7 Jun 2004 11:53:34 +0000 (GMT) Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1DB1743D39 for ; Mon, 7 Jun 2004 11:53:29 +0000 (GMT) (envelope-from phk@phk.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.12.11/8.12.11) with ESMTP id i57BrJqE038666; Mon, 7 Jun 2004 13:53:23 +0200 (CEST) (envelope-from phk@phk.freebsd.dk) To: Adam Retter From: "Poul-Henning Kamp" In-Reply-To: Your message of "Mon, 07 Jun 2004 12:19:01 BST." <1086607141.314.4.camel@wokshopbsd.oocltd.dom> Date: Mon, 07 Jun 2004 13:53:19 +0200 Message-ID: <38665.1086609199@critter.freebsd.dk> cc: freebsd-hardware@freebsd.org Subject: Re: How to Format 1MB Floppy X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Jun 2004 11:53:34 -0000 In message <1086607141.314.4.camel@wokshopbsd.oocltd.dom>, Adam Retter writes: > >Okay chaps, > >im finding it surprisingly difficult to format a 1MB floppy on freebsd. >I want to format it for msdos. See fdcontrol(8) I belive you want "fdcontrol -f 720 fd0". -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. From owner-freebsd-hardware@FreeBSD.ORG Mon Jun 7 12:03:39 2004 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C7EBB16A4CE for ; Mon, 7 Jun 2004 12:03:39 +0000 (GMT) Received: from mk-smarthost-1.mail.uk.tiscali.com (mk-smarthost-1.mail.uk.tiscali.com [212.74.114.37]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6FA2543D46 for ; Mon, 7 Jun 2004 12:03:39 +0000 (GMT) (envelope-from adam@otterycomputers.com) Received: from dsl-80-46-156-229.access.uk.tiscali.com ([80.46.156.229]:60051 helo=postman.oocltd.dom) by mk-smarthost-1.mail.uk.tiscali.com with esmtp (Exim 4.30) id 1BXIqg-000Elu-BS for freebsd-hardware@freebsd.org; Mon, 07 Jun 2004 13:03:30 +0100 Received: from localhost (localhost [127.0.0.1]) by postman.oocltd.dom (Postfix) with ESMTP id 640B8A50 for ; Mon, 7 Jun 2004 13:03:29 +0100 (BST) Received: from postman.oocltd.dom ([127.0.0.1]) by localhost (postman.oocltd.dom [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 00157-02-2 for ; Mon, 7 Jun 2004 13:03:27 +0100 (BST) Received: from [192.168.0.250] (unknown [192.168.0.250]) by postman.oocltd.dom (Postfix) with ESMTP id 95934136 for ; Mon, 7 Jun 2004 13:03:27 +0100 (BST) From: Adam Retter To: freebsd-hardware@freebsd.org Content-Type: text/plain Organization: Ottery Office and Computer Ltd. Message-Id: <1086609808.314.9.camel@wokshopbsd.oocltd.dom> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 Date: Mon, 07 Jun 2004 13:03:28 +0100 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at otterycomputers.com Subject: How to Format 1MB Floppy X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Jun 2004 12:03:39 -0000 Okay guys not having any luck with mtools / newfs_msdos or fdcontrol I guess i need to specify the heads and tracks per side etc etc but how can i find out what these are meant to be for 2DD disks ? Also someone mentioned that these 1mb disks only format as 720kb - is that true? Thanks Adam. -- Adam Retter Ottery Office and Computer Ltd. Tel: +44(0)1404 814946 Fax: +44(0)1404 811786 From owner-freebsd-hardware@FreeBSD.ORG Mon Jun 7 12:18:27 2004 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B372916A4CE for ; Mon, 7 Jun 2004 12:18:27 +0000 (GMT) Received: from santiago.pacific.net.sg (santiago.pacific.net.sg [203.120.90.135]) by mx1.FreeBSD.org (Postfix) with SMTP id 9035243D1D for ; Mon, 7 Jun 2004 12:18:26 +0000 (GMT) (envelope-from oceanare@pacific.net.sg) Received: (qmail 18179 invoked from network); 7 Jun 2004 12:18:25 -0000 Received: from unknown (HELO maxwell6.pacific.net.sg) (203.120.90.212) by santiago with SMTP; 7 Jun 2004 12:18:24 -0000 Received: from pacific.net.sg ([210.24.202.26]) by maxwell6.pacific.net.sg with ESMTP id <20040607121824.LJDY8220.maxwell6.pacific.net.sg@pacific.net.sg>; Mon, 7 Jun 2004 20:18:24 +0800 Message-ID: <40C45D0E.8020102@pacific.net.sg> Date: Mon, 07 Jun 2004 20:18:22 +0800 From: Erich Dollansky Organization: oceanare pte ltd User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7b) Gecko/20040409 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Adam Retter References: <1086609808.314.9.camel@wokshopbsd.oocltd.dom> In-Reply-To: <1086609808.314.9.camel@wokshopbsd.oocltd.dom> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-hardware@freebsd.org Subject: Re: How to Format 1MB Floppy X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Jun 2004 12:18:27 -0000 Hi, Adam Retter wrote: > Okay guys not having any luck with mtools / newfs_msdos or fdcontrol > > I guess i need to specify the heads and tracks per side etc etc but how > can i find out what these are meant to be for 2DD disks ? > > Also someone mentioned that these 1mb disks only format as 720kb - is > that true? > Yes. I can"t tell you with the parameters but I remember that those disks use a different density to write to the disk. This means that the head, sector and track values are the same as for 1.44 disks but the density is different. Erich From owner-freebsd-hardware@FreeBSD.ORG Mon Jun 7 13:02:23 2004 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E6E7C16A4CE for ; Mon, 7 Jun 2004 13:02:23 +0000 (GMT) Received: from mail.eecs.harvard.edu (bowser.eecs.harvard.edu [140.247.60.24]) by mx1.FreeBSD.org (Postfix) with ESMTP id C3A5D43D1F for ; Mon, 7 Jun 2004 13:02:23 +0000 (GMT) (envelope-from ellard@eecs.harvard.edu) Received: by mail.eecs.harvard.edu (Postfix, from userid 465) id 9EC0254C6D1; Mon, 7 Jun 2004 09:01:55 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by mail.eecs.harvard.edu (Postfix) with ESMTP id 9C33E54C66E; Mon, 7 Jun 2004 09:01:55 -0400 (EDT) Date: Mon, 7 Jun 2004 09:01:55 -0400 (EDT) From: Daniel Ellard To: Adam Retter In-Reply-To: <1086609808.314.9.camel@wokshopbsd.oocltd.dom> Message-ID: <20040607085908.Y42261@bowser.eecs.harvard.edu> References: <1086609808.314.9.camel@wokshopbsd.oocltd.dom> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-hardware@freebsd.org Subject: Re: How to Format 1MB Floppy X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Jun 2004 13:02:24 -0000 On Mon, 7 Jun 2004, Adam Retter wrote: > Also someone mentioned that these 1mb disks only format as 720kb - is > that true? That was probably me... What I meant is that there's a built-in option to newfs_msdos for 720K disks, but I don't think there's one for 1MB disks. If you want to use the entire disk, and the 1MB is the real size (not some phony marketing size) then you'll need to specify the geometry to the disk explicitly. You'll need to get this from the disk vendor, I guess. Given that it sounds like nothing is working: have you tried a different disk, or a different drive? Maybe it's a hardware problem. -Dan From owner-freebsd-hardware@FreeBSD.ORG Mon Jun 7 14:13:22 2004 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2ABEB16A4CE for ; Mon, 7 Jun 2004 14:13:22 +0000 (GMT) Received: from santiago.pacific.net.sg (santiago.pacific.net.sg [203.120.90.135]) by mx1.FreeBSD.org (Postfix) with SMTP id 060DE43D55 for ; Mon, 7 Jun 2004 14:13:21 +0000 (GMT) (envelope-from oceanare@pacific.net.sg) Received: (qmail 3077 invoked from network); 7 Jun 2004 14:13:19 -0000 Received: from unknown (HELO maxwell6.pacific.net.sg) (203.120.90.212) by santiago with SMTP; 7 Jun 2004 14:13:19 -0000 Received: from pacific.net.sg ([210.24.202.26]) by maxwell6.pacific.net.sg with ESMTP id <20040607141319.LRZR8220.maxwell6.pacific.net.sg@pacific.net.sg>; Mon, 7 Jun 2004 22:13:19 +0800 Message-ID: <40C477FB.4040606@pacific.net.sg> Date: Mon, 07 Jun 2004 22:13:15 +0800 From: Erich Dollansky Organization: oceanare pte ltd User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7b) Gecko/20040409 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Daniel Ellard References: <1086609808.314.9.camel@wokshopbsd.oocltd.dom> <20040607085908.Y42261@bowser.eecs.harvard.edu> In-Reply-To: <20040607085908.Y42261@bowser.eecs.harvard.edu> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: Adam Retter cc: freebsd-hardware@freebsd.org Subject: Re: How to Format 1MB Floppy X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Jun 2004 14:13:22 -0000 Hi, Daniel Ellard wrote: > On Mon, 7 Jun 2004, Adam Retter wrote: > > >>Also someone mentioned that these 1mb disks only format as 720kb - is >>that true? > > > That was probably me... What I meant is that there's a built-in > option to newfs_msdos for 720K disks, but I don't think there's one > for 1MB disks. If you want to use the entire disk, and the 1MB is the 1MB disks and 720 KB disks are the same. 1MB is the capacity including checksums and so on while 720 KB is the capacity which can be used. Erich From owner-freebsd-hardware@FreeBSD.ORG Mon Jun 7 14:21:00 2004 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3051316A4CE for ; Mon, 7 Jun 2004 14:21:00 +0000 (GMT) Received: from gaff.hhhr.ision.net (gaff.hhhr.ision.net [195.180.9.213]) by mx1.FreeBSD.org (Postfix) with ESMTP id B6C4A43D2F for ; Mon, 7 Jun 2004 14:20:58 +0000 (GMT) (envelope-from ohoyer@ohoyer.de) Received: from gaff.hhhr.ision.net (ohoyer@localhost [127.0.0.1]) by gaff.hhhr.ision.net (8.12.11/8.12.11) with ESMTP id i57EKtqD090533; Mon, 7 Jun 2004 16:20:55 +0200 (CEST) (envelope-from ohoyer@ohoyer.de) Received: from localhost (ohoyer@localhost)i57EKsix090530; Mon, 7 Jun 2004 16:20:55 +0200 (CEST) (envelope-from ohoyer@ohoyer.de) X-Authentication-Warning: gaff.hhhr.ision.net: ohoyer owned process doing -bs Date: Mon, 7 Jun 2004 16:20:54 +0200 (CEST) From: Olaf Hoyer Sender: ohoyer@gaff.hhhr.ision.net To: Daniel Ellard In-Reply-To: <20040607085908.Y42261@bowser.eecs.harvard.edu> Message-ID: <20040607161901.Q90512@gaff.hhhr.ision.net> References: <1086609808.314.9.camel@wokshopbsd.oocltd.dom> <20040607085908.Y42261@bowser.eecs.harvard.edu> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: Adam Retter cc: freebsd-hardware@freebsd.org Subject: Re: How to Format 1MB Floppy X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Jun 2004 14:21:00 -0000 On Mon, 7 Jun 2004, Daniel Ellard wrote: > On Mon, 7 Jun 2004, Adam Retter wrote: > > > Also someone mentioned that these 1mb disks only format as 720kb - is > > that true? > > That was probably me... What I meant is that there's a built-in > option to newfs_msdos for 720K disks, but I don't think there's one > for 1MB disks. If you want to use the entire disk, and the 1MB is the > real size (not some phony marketing size) then you'll need to specify > the geometry to the disk explicitly. You'll need to get this from > the disk vendor, I guess. > The raw capacity of those 3,5", DD disks is 1MB unformatted, and formatted for _PC_ its 720 kb. There were some different architectures, like Commodore Amiga and I think Apple, that used a different format strategy and were able to use more of that space. (Anyone remember VGA-Copy under DOS? also some tool to get some real weird formats done) HTH Olaf -- Olaf Hoyer ohoyer@gaff.hhhr.ision.net Fuerchterliche Erlebniss geben zu raten, ob der, welcher sie erlebt, nicht etwas Fuerchterliches ist. (Nietzsche, Jenseits von Gut und Boese) From owner-freebsd-hardware@FreeBSD.ORG Mon Jun 7 15:06:44 2004 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3C01C16A4CE for ; Mon, 7 Jun 2004 15:06:44 +0000 (GMT) Received: from mps9.plala.or.jp (c152002.vh.plala.or.jp [210.150.152.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id ED25043D41 for ; Mon, 7 Jun 2004 15:06:42 +0000 (GMT) (envelope-from e-kamo@trio.plala.or.jp) Received: from msvc1.plala.or.jp ([172.23.8.209]) by mps9.plala.or.jp with SMTP id <20040607150641.CPHN14773.mps9.plala.or.jp@msvc1.plala.or.jp> for ; Tue, 8 Jun 2004 00:06:41 +0900 Received: ( 27886 invoked from network); 8 Jun 2004 00:06:37 +0900 X-SVCK: Received: from unknown (HELO mpb1.plala.or.jp) (172.23.8.16) by msvc1 with SMTP; 8 Jun 2004 00:06:35 +0900 Received: from trio.plala.or.jp ([219.25.148.126]) by mpb1.plala.or.jp with ESMTP id <20040607150631.UCXS19716.mpb1.plala.or.jp@trio.plala.or.jp>; Tue, 8 Jun 2004 00:06:31 +0900 Message-ID: <40C485C5.1090000@trio.plala.or.jp> Date: Tue, 08 Jun 2004 00:12:05 +0900 From: Eitarou Kamo User-Agent: Mozilla/5.0 (Windows; U; Win98; ja-JP; rv:1.4) Gecko/20030624 Netscape/7.1 (ax) X-Accept-Language: ja MIME-Version: 1.0 To: freebsd-stable@freebsd.org, freebsd-hardware@freebsd.org X-Enigmail-Version: 0.76.8.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-2022-JP Content-Transfer-Encoding: 7bit Subject: called at splusb() (umas0: CBI........) X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Jun 2004 15:06:44 -0000 Hi all, I wonder if I should ask this question in this list. But I post here. I came across the "called at splusb()" words above the function uhci_idone(). If I call the func without splusb() call, what will happen? and what or how is the splusb()? Again, if you know the correct pointer I should post , tell me please. Eitarou -- *********************** Eitarou Kamo Tel. +81 75 7035997 Fax +81 75 7035997 VoIP 050 10585997(domestic only) e‐mail e-kamo@trio.plala.or.jp For business: Feel free to mail me(above), please. Donation http://www.PayPal.Com GPG FingerPrint: 032D FDF9 D27B 23F7 9A81 BF4C 626C FBAA BC3A 9895 ************************************************************************ From owner-freebsd-hardware@FreeBSD.ORG Mon Jun 7 16:54:16 2004 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EE2CD16A4CE; Mon, 7 Jun 2004 16:54:16 +0000 (GMT) Received: from dd2626.kasserver.com (dd2626.kasserver.com [81.209.184.189]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8DB5143D53; Mon, 7 Jun 2004 16:54:16 +0000 (GMT) (envelope-from outi@bytephobia.de) Received: from duality.bytephobia.de (pD958E31C.dip.t-dialin.net [217.88.227.28]) by dd2626.kasserver.com (Postfix) with SMTP id 4827F1D354; Mon, 7 Jun 2004 18:53:57 +0200 (CEST) Date: Mon, 7 Jun 2004 18:55:54 +0200 From: Patrick Hurrelmann To: freebsd-current@freebsd.org, freebsd-hardware@freebsd.org Message-Id: <20040607185554.1e0ab5ee@duality.bytephobia.de> Organization: private X-Mailer: Sylpheed version 0.9.11claws (GTK+ 1.2.10; i386-portbld-freebsd5.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Experiences with 3Ware 9500-Series and 5.2 CURRENT? X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: outi@bytephobia.de List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Jun 2004 16:54:17 -0000 Hi there, i just sold my Promsie FastTrak S150 SX4 due to missing Raid 5 support of ataraid. I really wanted to get it running with FreeBSD 5.2 CURRENT, but the wait was too long :( I thank Soeren Schmidt for his work and patience. Now I know want to buy a 3Ware 9500S-4LP. My desired configuration will be a Dual-Athlon on a Asus A7M266-D with 4x 120gb, 7200 rpm, 8mb cache (western digital). - Does anybody use such a controller and in what configuration? - How stable is the current twa? - Do the CLI and 3DM Tools work? Thanks! Patrick From owner-freebsd-hardware@FreeBSD.ORG Mon Jun 7 17:58:27 2004 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A58F816A4D0; Mon, 7 Jun 2004 17:58:27 +0000 (GMT) Received: from carver.gumbysoft.com (carver.gumbysoft.com [66.220.23.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 94A2743D4C; Mon, 7 Jun 2004 17:58:27 +0000 (GMT) (envelope-from dwhite@gumbysoft.com) Received: by carver.gumbysoft.com (Postfix, from userid 1000) id 7E00072DF2; Mon, 7 Jun 2004 10:58:27 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by carver.gumbysoft.com (Postfix) with ESMTP id 795E072DB5; Mon, 7 Jun 2004 10:58:27 -0700 (PDT) Date: Mon, 7 Jun 2004 10:58:27 -0700 (PDT) From: Doug White To: Patrick Hurrelmann In-Reply-To: <20040607185554.1e0ab5ee@duality.bytephobia.de> Message-ID: <20040607105744.D19466@carver.gumbysoft.com> References: <20040607185554.1e0ab5ee@duality.bytephobia.de> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-current@freebsd.org cc: freebsd-hardware@freebsd.org Subject: Re: Experiences with 3Ware 9500-Series and 5.2 CURRENT? X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Jun 2004 17:58:27 -0000 On Mon, 7 Jun 2004, Patrick Hurrelmann wrote: > Hi there, > > i just sold my Promsie FastTrak S150 SX4 due to missing Raid 5 support of ataraid. I really wanted to get it running with FreeBSD 5.2 CURRENT, but the wait was too long :( > I thank Soeren Schmidt for his work and patience. > > Now I know want to buy a 3Ware 9500S-4LP. > > My desired configuration will be a Dual-Athlon on a Asus A7M266-D with 4x 120gb, 7200 rpm, 8mb cache (western digital). > > - Does anybody use such a controller and in what configuration? Its a pretty new controller; I haven't heard of anyone using it yet. > - How stable is the current twa? It was just committed, so you'd be in the "early adopter" phase :) -- Doug White | FreeBSD: The Power to Serve dwhite@gumbysoft.com | www.FreeBSD.org From owner-freebsd-hardware@FreeBSD.ORG Mon Jun 7 18:54:42 2004 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D9F2516A4CE for ; Mon, 7 Jun 2004 18:54:42 +0000 (GMT) Received: from techno.sub.ru (webmail.sub.ru [213.247.139.22]) by mx1.FreeBSD.org (Postfix) with SMTP id F26FE43D49 for ; Mon, 7 Jun 2004 18:54:41 +0000 (GMT) (envelope-from tarkhil@webmail.sub.ru) Received: (qmail 16313 invoked by uid 65534); 7 Jun 2004 18:54:31 -0000 Received: from webmail.sub.ru (HELO tarkhil.over.ru) (213.247.139.22) by techno.sub.ru with SMTP; 7 Jun 2004 18:54:31 -0000 Date: Mon, 7 Jun 2004 22:54:07 +0400 From: Alex Povolotsky To: freebsd-hardware@freebsd.org Message-Id: <20040607225407.3e77eb49@tarkhil.over.ru> Organization: sub.ru X-Mailer: Sylpheed version 0.9.9claws (GTK+ 1.2.10; i386-portbld-freebsd4.8) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: IDE RAID, internal card X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Jun 2004 18:54:43 -0000 Hello! Can anyone share with me POSITIVE expirience in using IDE RAID card on 5.2.1? I need both reliability and performance, so adapters with plenty of RAM are welcome. I'm thinking of running 5 disks at least. -- Alex. From owner-freebsd-hardware@FreeBSD.ORG Mon Jun 7 20:00:40 2004 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4ABCF16A4CE; Mon, 7 Jun 2004 20:00:40 +0000 (GMT) Received: from gamera.svk.isite.net (mail.isite.net [205.217.158.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id F125743D2D; Mon, 7 Jun 2004 20:00:39 +0000 (GMT) (envelope-from jrhett@isite.net) Received: from anubis.svk.isite.net (anubis.svk.isite.net [205.217.158.5]) by gamera.svk.isite.net (8.12.10/8.12.9) with ESMTP id i57K0Tqa002570 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Mon, 7 Jun 2004 13:00:29 -0700 (PDT) Received: from anubis.svk.isite.net (localhost [127.0.0.1]) i57K0SZ8023414; Mon, 7 Jun 2004 13:00:28 -0700 (PDT) Received: (from jrhett@localhost)i57K0Srv023413; Mon, 7 Jun 2004 13:00:28 -0700 (PDT) Date: Mon, 7 Jun 2004 13:00:28 -0700 From: Joe Rhett To: Pav Lucistnik Message-ID: <20040607200028.GA22403@isite.net> References: <20040603035617.GA1349@green.homeunix.org> <1086260563.96671.23.camel@pav.hide.vol.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1086260563.96671.23.camel@pav.hide.vol.cz> User-Agent: Mutt/1.4.2i Organization: Isite Services, Inc. cc: Brian Feldman cc: current@freebsd.org cc: hardware@freebsd.org Subject: Re: ata(4) locks up system -- for too many reasons X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Jun 2004 20:00:40 -0000 Actually, the atapi support in general seems to require reboots far too often. Acer CD-ROM units work fine in DMA but are broken in PIO mode. But once you get the BIG_READ errors, you have to reboot to clean it up. Then I also found that if a CD has an error on it (or dust) it can cause the same problem. This is a fairly serious problem that really needs to be addressed. I don't reboot machines, ever. For years at a time anyway. Having to reboot freebsd almost hourly during the diagnosis of this made me cringe. -- Joe Rhett Chief Geek JRhett@Isite.Net Isite Services, Inc. From owner-freebsd-hardware@FreeBSD.ORG Tue Jun 8 00:38:46 2004 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 981E316A4CE for ; Tue, 8 Jun 2004 00:38:46 +0000 (GMT) Received: from smtp-out2.blueyonder.co.uk (smtp-out2.blueyonder.co.uk [195.188.213.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id E409043D5E for ; Tue, 8 Jun 2004 00:38:45 +0000 (GMT) (envelope-from xtalsinger@blueyonder.co.uk) Received: from localhost ([82.39.74.76]) by smtp-out2.blueyonder.co.uk with Microsoft SMTPSVC(5.0.2195.5600); Tue, 8 Jun 2004 01:38:45 +0100 Received: from localhost ([127.0.0.1]) by [127.0.0.1] with ESMTP (SpamPal v1.53) sender ; 08 Jun 2004 01:38:42 +0100 From: Dave To: freebsd-hardware@freebsd.org Date: Tue, 08 Jun 2004 01:38:42 +0100 Message-ID: References: <1086609808.314.9.camel@wokshopbsd.oocltd.dom> <20040607085908.Y42261@bowser.eecs.harvard.edu> <20040607161901.Q90512@gaff.hhhr.ision.net> In-Reply-To: <20040607161901.Q90512@gaff.hhhr.ision.net> X-Mailer: Forte Agent 1.93/32.576 English (American) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 08 Jun 2004 00:38:45.0995 (UTC) FILETIME=[F506EBB0:01C44CF0] Subject: Re: How to Format 1MB Floppy X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: xtalsinger@blueyonder.co.uk List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Jun 2004 00:38:46 -0000 On Mon, 7 Jun 2004 16:20:54 +0200 (CEST), you wrote: >(Anyone remember VGA-Copy under DOS? also some tool to get some real >weird formats done) http://home.att.net/~short.stop/freesoft/disk1.htm#floppyutil :-) Dave -- Any speling misteaks are the reult of a bad insallation of mod_spelink. From owner-freebsd-hardware@FreeBSD.ORG Tue Jun 8 08:42:04 2004 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C6E6316A4CE for ; Tue, 8 Jun 2004 08:42:04 +0000 (GMT) Received: from mail024.syd.optusnet.com.au (mail024.syd.optusnet.com.au [211.29.132.242]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2F92443D1D for ; Tue, 8 Jun 2004 08:42:03 +0000 (GMT) (envelope-from PeterJeremy@optushome.com.au) Received: from cirb503493.alcatel.com.au (c211-30-75-229.belrs2.nsw.optusnet.com.au [211.30.75.229]) i588fbL20777; Tue, 8 Jun 2004 18:41:46 +1000 Received: from cirb503493.alcatel.com.au (localhost.alcatel.com.au [127.0.0.1])i588faVd025127; Tue, 8 Jun 2004 18:41:36 +1000 (EST) (envelope-from pjeremy@cirb503493.alcatel.com.au) Received: (from pjeremy@localhost)i588fYen025126; Tue, 8 Jun 2004 18:41:34 +1000 (EST) (envelope-from pjeremy) Date: Tue, 8 Jun 2004 18:41:34 +1000 From: Peter Jeremy To: Sandy Rutherford Message-ID: <20040608084133.GD622@cirb503493.alcatel.com.au> References: <16577.22341.271281.286853@szamoca.krvarr.bc.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <16577.22341.271281.286853@szamoca.krvarr.bc.ca> User-Agent: Mutt/1.4.2i cc: freebsd-hardware@freebsd.org Subject: Re: Tape drive support in mlx driver? X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Jun 2004 08:42:04 -0000 On Fri, 2004-Jun-04 22:16:53 -0700, Sandy Rutherford wrote: >Are tape drives supported with the Mylex DAC RAID controllers? I have >been unable to get it to work or find anything about tape drives in >the mlx documentation? Tapes aren't supported by DAC960's on Compaq/HP Tru64 Unix so I suspect it is non-trivial (though I vaguely recall that they were supported by NT/Alpha so it may be possible). -- Peter Jeremy From owner-freebsd-hardware@FreeBSD.ORG Wed Jun 9 12:07:45 2004 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1DDC816A4CE for ; Wed, 9 Jun 2004 12:07:45 +0000 (GMT) Received: from szamoca.krvarr.bc.ca (s142-179-111-232.bc.hsia.telus.net [142.179.111.232]) by mx1.FreeBSD.org (Postfix) with ESMTP id B184A43D53 for ; Wed, 9 Jun 2004 12:07:34 +0000 (GMT) (envelope-from sandy@krvarr.bc.ca) Received: from szamoca.krvarr.bc.ca (localhost [127.0.0.1]) by szamoca.krvarr.bc.ca (8.12.11/8.12.6) with ESMTP id i59C6iKa004453; Wed, 9 Jun 2004 05:06:54 -0700 (PDT) Received: (from sandy@localhost) by szamoca.krvarr.bc.ca (8.12.11/8.12.11/Submit) id i59C6id5004450; Wed, 9 Jun 2004 05:06:44 -0700 (PDT) (envelope-from sandy) From: Sandy Rutherford MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <16582.64846.807035.40352@szamoca.krvarr.bc.ca> Date: Wed, 9 Jun 2004 05:06:38 -0700 To: Peter Jeremy In-Reply-To: <20040608084133.GD622@cirb503493.alcatel.com.au> References: <16577.22341.271281.286853@szamoca.krvarr.bc.ca> <20040608084133.GD622@cirb503493.alcatel.com.au> X-Mailer: VM 7.07 under Emacs 21.3.1 cc: freebsd-hardware@freebsd.org Subject: Re: Tape drive support in mlx driver? X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Jun 2004 12:07:45 -0000 Peter, On Tue, 8 Jun 2004 you wrote: > On Fri, 2004-Jun-04 22:16:53 -0700, Sandy Rutherford wrote: >> Are tape drives supported with the Mylex DAC RAID controllers? I have >> been unable to get it to work or find anything about tape drives in >> the mlx documentation? > Tapes aren't supported by DAC960's on Compaq/HP Tru64 Unix so I > suspect it is non-trivial (though I vaguely recall that they were > supported by NT/Alpha so it may be possible). The eXtremeRAID 1100 isn't a DAC960; it's a DAC1164P. Here is my understanding of the situation: The DAC960 only supports firmware up to ver. 4.x. However, the DAC1164P supports firmware up to ver. 5.x. Although, Mylex firmware <= 4.x does not support tape drives, ver. >= 5.x supports both tape drives and cdroms. The mly(4) driver works for Mylex RAID controllers with firmware >= 6.x. mly(4) does interface to the SCSI sub-system and would therefore presumably handle tape drives. The mlx(4) driver is for firmware <= 5.x and it does not interface to the SCSI subsystem. So, it seems that the DAC1164P falls through the crack in the middle. I have no idea how different the 5.x firmware is from the 6.x firmware and whether it would be feasible to get mly(4) working with 5.x firmware. After an extensive search, I have not been able to find 6.x firmware for the DAC1164P. It seems that 5.x is the most recent available for this controller. Thanks, Sandy From owner-freebsd-hardware@FreeBSD.ORG Wed Jun 9 18:38:59 2004 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8F2CF16A4E6 for ; Wed, 9 Jun 2004 18:38:59 +0000 (GMT) Received: from smsgw.vianetworks.ch (smsgw.vianetworks.ch [146.228.10.65]) by mx1.FreeBSD.org (Postfix) with ESMTP id EE5A743D49 for ; Wed, 9 Jun 2004 18:38:58 +0000 (GMT) (envelope-from mw@smsgw.vianetworks.ch) Received: from smsgw.vianetworks.ch (localhost.kpnqwest.ch [127.0.0.1]) by smsgw.vianetworks.ch (8.12.10/8.12.6) with ESMTP id i59Icuhm063062 for ; Wed, 9 Jun 2004 20:38:56 +0200 (CEST) (envelope-from mw@smsgw.vianetworks.ch) Received: (from mw@localhost) by smsgw.vianetworks.ch (8.12.10/8.12.6/Submit) id i59Icugc063061 for freebsd-hardware@freebsd.org; Wed, 9 Jun 2004 20:38:56 +0200 (CEST) Message-Id: <200406091838.i59Icugc063061@smsgw.vianetworks.ch> To: freebsd-hardware@freebsd.org Date: Wed, 9 Jun 2004 20:38:56 +0200 (CEST) Sender: mw@smsgw.vianetworks.ch From: Markus Wild X-NCC-RegID: ch.vianetworks X-Mailer: ELM [version 2.4ME+ PL99b (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII Subject: Fix for Logitech DiNovo cordless mouse X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Jun 2004 18:38:59 -0000 Since yesterday I'm a happy owner of a Logitech dinovo cordless USB keyboard/mouse. The keyboard works fine, however the mouse didn't move a bit. I saw that other people had similar "luck", so I enabled a bit of debugging. This is with FreeBSD-current, btw. The result of the quest was: the hid.c:hid_report_size() function returns a bogus iid value: Jun 9 19:37:06 mothra kernel: ums0: Logitech USB Receiver, rev 1.10/24.04, addr 3, iclass 3/1 Jun 9 19:37:06 mothra kernel: ums_attach: bLength=7 bDescriptorType=5 bEndpoint Address=2-in bmAttributes=3 wMaxPacketSize=8 bInterval=10 Jun 9 19:37:06 mothra kernel: ums0: 7 buttons and Z dir. Jun 9 19:37:06 mothra kernel: ums_attach: sc=0xc23a1800 Jun 9 19:37:06 mothra kernel: ums_attach: X 8/12 Jun 9 19:37:06 mothra kernel: ums_attach: Y 20/12 Jun 9 19:37:06 mothra kernel: ums_attach: Z 32/8 Jun 9 19:37:06 mothra kernel: ums_attach: B1 0/1 Jun 9 19:37:06 mothra kernel: ums_attach: B2 1/1 Jun 9 19:37:06 mothra kernel: ums_attach: B3 2/1 Jun 9 19:37:06 mothra kernel: ums_attach: B4 3/1 Jun 9 19:37:06 mothra kernel: ums_attach: B5 4/1 Jun 9 19:37:06 mothra kernel: ums_attach: B6 5/1 Jun 9 19:37:06 mothra kernel: ums_attach: B7 6/1 Jun 9 19:37:06 mothra kernel: ums_attach: size=36, id=17 Since actual interrupt reports are issed with id 2: Jun 9 18:42:10 mothra kernel: ums_intr: sc=0xc23a1800 status=0 Jun 9 18:42:10 mothra kernel: ums_intr: data = 02 00 fa So I added a bit of debugging to the id setting for-loop. It looks like the ID cycles thru the following values at attach() time: Jun 9 19:40:57 mothra kernel: hid_report_size: 00 -> 02 Jun 9 19:40:57 mothra kernel: hid_report_size: 02 -> 03 Jun 9 19:40:57 mothra kernel: hid_report_size: 03 -> 04 Jun 9 19:40:57 mothra kernel: hid_report_size: 04 -> 10 Jun 9 19:40:57 mothra kernel: hid_report_size: 10 -> 11 (numbers are hex here) With this, my current fix is simple: only set id if it's not set already: diff -u -r1.23 hid.c --- hid.c 24 Aug 2003 17:55:54 -0000 1.23 +++ hid.c 9 Jun 2004 18:34:23 -0000 @@ -374,9 +374,10 @@ int size, id; id = 0; + bzero (&h, sizeof (h)); for (d = hid_start_parse(buf, len, 1< Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F085C16A4CE for ; Wed, 9 Jun 2004 18:56:15 +0000 (GMT) Received: from panoramix.hexago.com (panoramix.hexago.com [209.71.226.3]) by mx1.FreeBSD.org (Postfix) with ESMTP id 646C343D45 for ; Wed, 9 Jun 2004 18:56:15 +0000 (GMT) (envelope-from frederick.lefebvre@hexago.com) Received: from hades.hexago.com (hades.hexago.com [206.123.31.141]) (authenticated bits=0) by panoramix.hexago.com (8.12.8/8.12.8) with ESMTP id i59IuAvI025604 for ; Wed, 9 Jun 2004 14:56:11 -0400 (EDT) Date: Wed, 09 Jun 2004 14:56:12 -0400 From: Frederick Lefebvre To: freebsd-hardware@freebsd.org Message-ID: <89040000.1086807372@hades.hexago.com> X-Mailer: Mulberry/3.1.2 (Linux/x86) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: DVD burner - LG GSA-4082B X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Jun 2004 18:56:16 -0000 Did anybody had success with the above mentioned DVD burner on FreeBSD 5.2.1?. I tried to burn DVD-R and DVD+R using cdrecord-prodvd but I keep having scsi related errors. It worked fine with cd-r. Here is the error I got when I tried to burn on a dvd-r: #/usr/local/bin/cdrecord-dvd dev=0,1,0 -v FILE.iso Cdrecord-ProDVD-Clone 2.01a24 (i386-unknown-freebsd5.2) Copyright (C) 1995-2004 Jrg Schilling Unlocked features: ProDVD Clone Limited features: This copy of cdrecord is licensed for: private/research/educational_non-commercial_use TOC Type: 1 = CD-ROM scsidev: '0,1,0' scsibus: 0 target: 1 lun: 0 Using libscg version 'schily-0.8'. SCSI buffer size: 64512 atapi: 0 Device type : Removable CD-ROM Version : 0 Response Format: 2 Capabilities : Vendor_info : 'HL-DT-ST' Identifikation : 'DVDRAM GSA-4082B' Revision : 'A201' Device seems to be: Generic mmc2 DVD-R/DVD-RW. Current: DVD-R sequential recording Profile: DVD-RAM Profile: DVD-R sequential recording (current) Profile: DVD-RW sequential overwrite Profile: DVD-RW restricted overwrite Profile: DVD+RW Profile: DVD+R Profile: DVD-ROM Profile: CD-R Profile: CD-RW Profile: CD-ROM Profile: Removable Disk Using generic SCSI-3/mmc-2 DVD-R/DVD-RW driver (mmc_dvd). Driver flags : DVD MMC-3 SWABAUDIO BURNFREE Supported modes: TAO PACKET SAO SAO/R96P SAO/R96R RAW/R16 RAW/R96P RAW/R96R Drive buf size : 1245184 = 1216 KB FIFO size : 4194304 = 4096 KB Track 01: data 3276 MB Total size: 3276 MB = 1677748 sectors Current Secsize: 2048 Total power on hours: 0 /usr/local/bin/cdrecord-dvd: Input/output error. log sense: scsi sendcmd: retryable error CDB: 4D 00 70 00 00 00 01 00 04 00 status: 0x2 (CHECK CONDITION) Sense Bytes: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 Sense Key: 0xFFFFFFFF [], Segment 0 Sense Code: 0x00 Qual 0x00 (no additional sense information) Fru 0x0 Sense flags: Blk 0 (not valid) cmd finished after 0.000s timeout 100s Blocks total: 2298496 Blocks current: 2298496 Blocks remaining: 620748 Starting to write CD/DVD at speed 4 in real TAO mode for single session. Last chance to quit, starting real write 0 seconds. Operation starts. Waiting for reader process to fill input buffer ... input buffer ready. BURN-Free is ON. Turning BURN-Free off Starting new track at sector: 0 Track 01: 0 of 3276 MB written./usr/local/bin/cdrecord-dvd: Input/output error. write_g1: scsi sendcmd: retryable error CDB: 2A 00 00 00 00 00 00 00 1F 00 status: 0x2 (CHECK CONDITION) Sense Bytes: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 Sense Key: 0xFFFFFFFF [], Segment 0 Sense Code: 0x00 Qual 0x00 (no additional sense information) Fru 0x0 Sense flags: Blk 0 (not valid) cmd finished after 5.701s timeout 100s write track data: error after 0 bytes /usr/local/bin/cdrecord-dvd: A write error occured. /usr/local/bin/cdrecord-dvd: Please properly read the error message above. Writing time: 10.764s Average write speed 231.0x. Fixating... Fixating time: 15.495s /usr/local/bin/cdrecord-dvd: fifo had 64 puts and 1 gets. /usr/local/bin/cdrecord-dvd: fifo was 0 times empty and 0 times full, min fill was 100%. In the case above, nothing was writen to the disk. The same command on a dvd+r burned all the data but failed on the 'fixate'. Any input will be appreciated! Frederick Lefebvre ------------------------------------------------ http://www.freenet6.net : Free IPv6 Connectivity ------------------------------------------------ From owner-freebsd-hardware@FreeBSD.ORG Wed Jun 9 19:01:52 2004 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1895216A4CE for ; Wed, 9 Jun 2004 19:01:52 +0000 (GMT) Received: from unsane.co.uk (unsane.co.uk [82.152.23.78]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4C6BC43D39 for ; Wed, 9 Jun 2004 19:01:51 +0000 (GMT) (envelope-from jhary@unsane.co.uk) Received: from unsane.co.uk (localhost [127.0.0.1]) by unsane.co.uk (8.12.11/8.12.10) with ESMTP id i59J2A1B085167 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Wed, 9 Jun 2004 20:02:10 +0100 (BST) (envelope-from jhary@unsane.co.uk) Received: from localhost (jhary@localhost) by unsane.co.uk (8.12.11/8.12.10/Submit) with ESMTP id i59J2AHx085164 for ; Wed, 9 Jun 2004 20:02:10 +0100 (BST) (envelope-from jhary@unsane.co.uk) Date: Wed, 9 Jun 2004 20:02:10 +0100 (BST) From: Vince Hoffman To: freebsd-hardware@freebsd.org Message-ID: <20040609195905.I84941@unsane.co.uk> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: PCTV card X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Jun 2004 19:01:52 -0000 Hi all, I'm considering buying a tv card and was wonding if anyone had any good/bad experiences to share. Thanks, Vince From owner-freebsd-hardware@FreeBSD.ORG Wed Jun 9 19:04:57 2004 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 12C2216A4CE for ; Wed, 9 Jun 2004 19:04:57 +0000 (GMT) Received: from mta1.lbl.gov (mta1.lbl.gov [128.3.41.24]) by mx1.FreeBSD.org (Postfix) with ESMTP id E205D43D31 for ; Wed, 9 Jun 2004 19:04:56 +0000 (GMT) (envelope-from g_jin@lbl.gov) Received: from mta1.lbl.gov (localhost [127.0.0.1]) by mta1.lbl.gov (8.12.10/8.12.10) with ESMTP id i59J4sBv027870 for ; Wed, 9 Jun 2004 12:04:55 -0700 (PDT) Received: from lbl.gov (gracie.lbl.gov [131.243.2.175]) by mta1.lbl.gov (8.12.10/8.12.10) with ESMTP id i59J4slh027866; Wed, 9 Jun 2004 12:04:54 -0700 (PDT) Sender: jin@lbl.gov Message-ID: <40C75F55.ABD6CBB8@lbl.gov> Date: Wed, 09 Jun 2004 12:04:53 -0700 From: "Jin Guojun [DSD]" X-Mailer: Mozilla 4.76 [en] (X11; U; FreeBSD 4.10-RELEASE i386) X-Accept-Language: zh, zh-CN, en MIME-Version: 1.0 To: Markus Wild References: <200406091838.i59Icugc063061@smsgw.vianetworks.ch> Content-Type: multipart/mixed; boundary="------------9D32173A942671EC4455174F" cc: freebsd-hardware@freebsd.org Subject: Re: Fix for Logitech DiNovo cordless mouse X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Jun 2004 19:04:57 -0000 This is a multi-part message in MIME format. --------------9D32173A942671EC4455174F Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Markus Wild wrote: > Since yesterday I'm a happy owner of a Logitech dinovo > cordless USB keyboard/mouse. The keyboard works fine, however > the mouse didn't move a bit. I saw that other people had similar > "luck", so I enabled a bit of debugging. This is with FreeBSD-current, > btw. > > ... (skipped) > > With this, my current fix is simple: only set id if it's not > set already: > diff -u -r1.23 hid.c > --- hid.c 24 Aug 2003 17:55:54 -0000 1.23 > +++ hid.c 9 Jun 2004 18:34:23 -0000 > @@ -374,9 +374,10 @@ > int size, id; > > id = 0; > + bzero (&h, sizeof (h)); > for (d = hid_start_parse(buf, len, 1< - if (h.report_ID != 0) > - id = h.report_ID; > + if (h.report_ID != 0 && !id) > + id = h.report_ID; > hid_end_parse(d); > size = h.loc.pos; > if (id != 0) { > > I don't know whether this is any more correct or buggy than the > previous version, and I don't know whether it will break currently > working configurations, but it did get mine working. If your mouse > is currently of not much use, you might give it a try. By looking the code, the fix should be something like in attachment. Since I have not such device, I cannot test it. Let me know if attached patch works. -Jin --------------9D32173A942671EC4455174F Content-Type: text/plain; charset=us-ascii; name="hid.p" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="hid.p" *** dev/usb/hid.c Sun Feb 29 16:07:21 2004 --- hid.c Wed Jun 9 12:00:38 2004 *************** *** 364,369 **** --- 364,370 ---- break; } } + return 0; } int *************** *** 374,380 **** int size, id; id = 0; ! for (d = hid_start_parse(buf, len, 1< Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8AE4316A4CE; Wed, 9 Jun 2004 20:39:16 +0000 (GMT) Received: from hadar.amcc.com (hadar.amcc.com [192.195.69.168]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4988243D41; Wed, 9 Jun 2004 20:39:16 +0000 (GMT) (envelope-from vkashyap@amcc.com) Received: from mailhost.amcc.com ([192.195.69.30]) by hadar.amcc.com (Netscape Messaging Server 4.15) with SMTP id HZ26OT00.VN3; Wed, 9 Jun 2004 13:38:53 -0700 Received: (from vkashyap-pc [10.66.6.61]) by mailhost.amcc.com (SAVSMTP 3.1.0.29) with SMTP id M2004060913385801638 ; Wed, 09 Jun 2004 13:39:00 -0700 From: "Vinod Kashyap" To: outi@bytephobia.de, freebsd-current@freebsd.org, freebsd-hardware@freebsd.org Date: Wed, 9 Jun 2004 13:38:51 -0700 X-Sent-Folder-Path: Sent Items X-Mailer: Oracle Connector for Outlook 9.0.4 51114 (9.0.6627) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Message-ID: Subject: RE: Experiences with 3Ware 9500-Series and 5.2 CURRENT? X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Jun 2004 20:39:16 -0000 > -----Original Message----- > From: owner-freebsd-current@freebsd.org > [mailto:owner-freebsd-current@freebsd.org]On Behalf Of Patrick > Hurrelmann > Sent: Monday, June 07, 2004 9:56 AM > To: freebsd-current@freebsd.org; freebsd-hardware@freebsd.org > Subject: Experiences with 3Ware 9500-Series and 5.2 CURRENT? > = > = > Hi there, > = > i just sold my Promsie FastTrak S150 SX4 due to missing Raid = > 5 support of ataraid. I really wanted to get it running with = > FreeBSD 5.2 CURRENT, but the wait was too long :( > I thank Soeren Schmidt for his work and patience. > = > Now I know want to buy a 3Ware 9500S-4LP. > = > My desired configuration will be a Dual-Athlon on a Asus = > A7M266-D with 4x 120gb, 7200 rpm, 8mb cache (western digital). > = > - Does anybody use such a controller and in what configuration? > - How stable is the current twa? twa has gone through a full qualification process internal to 3ware. > - Do the CLI and 3DM Tools work? They haven't been released yet, and are expected to be released shortly. > = > Thanks! > = > Patrick = > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to = > "freebsd-current-unsubscribe@freebsd.org" > From owner-freebsd-hardware@FreeBSD.ORG Wed Jun 9 20:52:58 2004 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 055BD16A4CE for ; Wed, 9 Jun 2004 20:52:58 +0000 (GMT) Received: from smsgw.vianetworks.ch (smsgw.vianetworks.ch [146.228.10.65]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6F37443D45 for ; Wed, 9 Jun 2004 20:52:57 +0000 (GMT) (envelope-from mw@smsgw.vianetworks.ch) Received: from smsgw.vianetworks.ch (localhost.kpnqwest.ch [127.0.0.1]) by smsgw.vianetworks.ch (8.12.10/8.12.6) with ESMTP id i59Kqhhm068487; Wed, 9 Jun 2004 22:52:43 +0200 (CEST) (envelope-from mw@smsgw.vianetworks.ch) Received: (from mw@localhost) by smsgw.vianetworks.ch (8.12.10/8.12.6/Submit) id i59Kqhre068486; Wed, 9 Jun 2004 22:52:43 +0200 (CEST) Message-Id: <200406092052.i59Kqhre068486@smsgw.vianetworks.ch> In-Reply-To: <40C75F55.ABD6CBB8@lbl.gov> To: "Jin Guojun [DSD]" Date: Wed, 9 Jun 2004 22:52:43 +0200 (CEST) Sender: mw@smsgw.vianetworks.ch From: Markus Wild X-NCC-RegID: ch.vianetworks X-Mailer: ELM [version 2.4ME+ PL99b (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII cc: Markus Wild cc: freebsd-hardware@freebsd.org Subject: Re: Fix for Logitech DiNovo cordless mouse X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Jun 2004 20:52:58 -0000 > By looking the code, the fix should be something like in attachment. > Since I have not such device, I cannot test it. > Let me know if attached patch works. No, it did not. Reason is you're exiting out of the loop too early this way, and a side effect of the loop is determining the size of the request... Your version: Jun 9 22:36:27 mothra kernel: ums_attach: bLength=7 bDescriptorType=5 bEndpointAddress=2-in bmAttributes=3 wMaxPacketSize=8 bInterval=10 Jun 9 22:36:27 mothra kernel: ums0: 7 buttons and Z dir. ... Jun 9 22:36:27 mothra kernel: ums_attach: size=1, id=2 Mine: Jun 9 22:46:53 mothra kernel: ums_attach: bLength=7 bDescriptorType=5 bEndpointAddress=2-in bmAttributes=3 wMaxPacketSize=8 bInterval=10 Jun 9 22:46:53 mothra kernel: ums0: 7 buttons and Z dir. ... Jun 9 22:46:53 mothra kernel: ums_attach: size=36, id=2 Cheers, Markus From owner-freebsd-hardware@FreeBSD.ORG Wed Jun 9 22:58:18 2004 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3C6E316A4CE for ; Wed, 9 Jun 2004 22:58:18 +0000 (GMT) Received: from crumpet.united-ware.com (ddsl-66-42-172-210.fuse.net [66.42.172.210]) by mx1.FreeBSD.org (Postfix) with ESMTP id 993CA43D39 for ; Wed, 9 Jun 2004 22:58:17 +0000 (GMT) (envelope-from mistry.7@osu.edu) Received: from [192.168.0.6] (adsl-64-108-97-232.dsl.wotnoh.ameritech.net [64.108.97.232]) (authenticated bits=0)i59MpfQr000994 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO); Wed, 9 Jun 2004 18:51:43 -0400 (EDT) (envelope-from mistry.7@osu.edu) From: Anish Mistry To: freebsd-hardware@freebsd.org Date: Wed, 9 Jun 2004 18:58:00 -0400 User-Agent: KMail/1.6.2 References: <200406091838.i59Icugc063061@smsgw.vianetworks.ch> In-Reply-To: <200406091838.i59Icugc063061@smsgw.vianetworks.ch> MIME-Version: 1.0 Content-Disposition: inline Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Message-Id: <200406091858.34042.mistry.7@osu.edu> X-Spam-Status: No, hits=-4.9 required=5.0 tests=EMAIL_ATTRIBUTION,IN_REP_TO,PGP_SIGNATURE, QUOTED_EMAIL_TEXT,RCVD_IN_ORBS,REFERENCES, REPLY_WITH_QUOTES,USER_AGENT_KMAIL version=2.55 X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp) cc: Markus Wild Subject: Re: Fix for Logitech DiNovo cordless mouse X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Jun 2004 22:58:18 -0000 =2D----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Wednesday 09 June 2004 02:38 pm, Markus Wild wrote: > Since yesterday I'm a happy owner of a Logitech dinovo > cordless USB keyboard/mouse. The keyboard works fine, however > the mouse didn't move a bit. I saw that other people had similar > "luck", so I enabled a bit of debugging. This is with FreeBSD-current, > btw. > > The result of the quest was: the hid.c:hid_report_size() function returns= a > bogus iid value: > > Jun 9 19:37:06 mothra kernel: ums0: Logitech USB Receiver, rev 1.10/24.0= 4, > addr 3, iclass 3/1 > Jun 9 19:37:06 mothra kernel: ums_attach: bLength=3D7 bDescriptorType=3D5 > bEndpoint Address=3D2-in bmAttributes=3D3 wMaxPacketSize=3D8 bInterval=3D= 10 > Jun 9 19:37:06 mothra kernel: ums0: 7 buttons and Z dir. > Jun 9 19:37:06 mothra kernel: ums_attach: sc=3D0xc23a1800 > Jun 9 19:37:06 mothra kernel: ums_attach: X 8/12 > Jun 9 19:37:06 mothra kernel: ums_attach: Y 20/12 > Jun 9 19:37:06 mothra kernel: ums_attach: Z 32/8 > Jun 9 19:37:06 mothra kernel: ums_attach: B1 0/1 > Jun 9 19:37:06 mothra kernel: ums_attach: B2 1/1 > Jun 9 19:37:06 mothra kernel: ums_attach: B3 2/1 > Jun 9 19:37:06 mothra kernel: ums_attach: B4 3/1 > Jun 9 19:37:06 mothra kernel: ums_attach: B5 4/1 > Jun 9 19:37:06 mothra kernel: ums_attach: B6 5/1 > Jun 9 19:37:06 mothra kernel: ums_attach: B7 6/1 > Jun 9 19:37:06 mothra kernel: ums_attach: size=3D36, id=3D17 > > Since actual interrupt reports are issed with id 2: > Jun 9 18:42:10 mothra kernel: ums_intr: sc=3D0xc23a1800 status=3D0 > Jun 9 18:42:10 mothra kernel: ums_intr: data =3D 02 00 fa > > So I added a bit of debugging to the id setting for-loop. It > looks like the ID cycles thru the following values at attach() time: > Jun 9 19:40:57 mothra kernel: hid_report_size: 00 -> 02 > Jun 9 19:40:57 mothra kernel: hid_report_size: 02 -> 03 > Jun 9 19:40:57 mothra kernel: hid_report_size: 03 -> 04 > Jun 9 19:40:57 mothra kernel: hid_report_size: 04 -> 10 > Jun 9 19:40:57 mothra kernel: hid_report_size: 10 -> 11 > (numbers are hex here) > > With this, my current fix is simple: only set id if it's not > set already: > diff -u -r1.23 hid.c > --- hid.c 24 Aug 2003 17:55:54 -0000 1.23 > +++ hid.c 9 Jun 2004 18:34:23 -0000 > @@ -374,9 +374,10 @@ > int size, id; > > id =3D 0; > + bzero (&h, sizeof (h)); > for (d =3D hid_start_parse(buf, len, 1< - if (h.report_ID !=3D 0) > - id =3D h.report_ID; > + if (h.report_ID !=3D 0 && !id) > + id =3D h.report_ID; > hid_end_parse(d); > size =3D h.loc.pos; > if (id !=3D 0) { > > I don't know whether this is any more correct or buggy than the > previous version, and I don't know whether it will break currently > working configurations, but it did get mine working. If your mouse > is currently of not much use, you might give it a try. > I just checked the NetBSD sources, and this has been fixed in revision 1.18= ,=20 which is over 2 years old and still hasn't been imported :(. I'm going to= =20 see if I can work up a big patch tonight. According to the NetBSD sources you need to have the following initilizatio= n: h.report_ID =3D 0; =2D --=20 Anish Mistry =2D----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFAx5YNxqA5ziudZT0RAljPAKDH0SMzK3al1i2+E42VAwc4OMdGQgCfb20E gqaGoDFGn6PtSJkgW+4cwsM=3D =3Dv+S2 =2D----END PGP SIGNATURE----- From owner-freebsd-hardware@FreeBSD.ORG Thu Jun 10 00:15:53 2004 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E586216A4CE for ; Thu, 10 Jun 2004 00:15:53 +0000 (GMT) Received: from mail.cableone.net (scanmail1.cableone.net [24.116.0.121]) by mx1.FreeBSD.org (Postfix) with ESMTP id 71F2743D39 for ; Thu, 10 Jun 2004 00:15:53 +0000 (GMT) (envelope-from kitbsdlist2@HotPOP.com) Received: from vixen42.24-119-122-191.cpe.cableone.net (unverified [24.119.122.191]) by smail1.cableone.net (SurgeMail 1.9b) with ESMTP id 4246120 for multiple; Wed, 09 Jun 2004 17:07:18 -0700 Date: Wed, 9 Jun 2004 19:15:57 -0500 From: Vulpes Velox To: Vince Hoffman Message-Id: <20040609191557.126ae2de@vixen42.24-119-122-191.cpe.cableone.net> In-Reply-To: <20040609195905.I84941@unsane.co.uk> References: <20040609195905.I84941@unsane.co.uk> X-Mailer: Sylpheed version 0.9.11claws (GTK+ 1.2.10; i386-portbld-freebsd4.10) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Server: High Performance Mail Server - http://surgemail.com cc: freebsd-hardware@freebsd.org Subject: Re: PCTV card X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Jun 2004 00:15:54 -0000 On Wed, 9 Jun 2004 20:02:10 +0100 (BST) Vince Hoffman wrote: > Hi all, > > I'm considering buying a tv card and was wonding if anyone had any > good/bad experiences to share. IIRC the brooktree card I have is a PCTV Pro, I like, it is good. Works well except for the remote, which does not work in FXTV. From owner-freebsd-hardware@FreeBSD.ORG Thu Jun 10 00:16:33 2004 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C6DB616A4CE for ; Thu, 10 Jun 2004 00:16:33 +0000 (GMT) Received: from crumpet.united-ware.com (ddsl-66-42-172-210.fuse.net [66.42.172.210]) by mx1.FreeBSD.org (Postfix) with ESMTP id 20D3343D4C for ; Thu, 10 Jun 2004 00:16:33 +0000 (GMT) (envelope-from mistry.7@osu.edu) Received: from [192.168.0.6] (adsl-64-108-97-232.dsl.wotnoh.ameritech.net [64.108.97.232]) (authenticated bits=0)i5A09tQr001155 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO); Wed, 9 Jun 2004 20:09:57 -0400 (EDT) (envelope-from mistry.7@osu.edu) From: Anish Mistry To: freebsd-hardware@freebsd.org Date: Wed, 9 Jun 2004 20:16:47 -0400 User-Agent: KMail/1.6.2 References: <200406091838.i59Icugc063061@smsgw.vianetworks.ch> In-Reply-To: <200406091838.i59Icugc063061@smsgw.vianetworks.ch> MIME-Version: 1.0 Content-Disposition: inline Content-Type: Multipart/Mixed; boundary="Boundary-00=_vh6xAi/EQRz9Qhb" Message-Id: <200406092016.54347.mistry.7@osu.edu> X-Spam-Status: No, hits=-5.4 required=5.0 tests=EMAIL_ATTRIBUTION,IN_REP_TO,PATCH_UNIFIED_DIFF, PGP_SIGNATURE,QUOTED_EMAIL_TEXT,RCVD_IN_ORBS,REFERENCES, REPLY_WITH_QUOTES,USER_AGENT_KMAIL version=2.55 X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp) cc: Markus Wild Subject: Re: Fix for Logitech DiNovo cordless mouse [PATCH] X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Jun 2004 00:16:34 -0000 --Boundary-00=_vh6xAi/EQRz9Qhb Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline =2D----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Wednesday 09 June 2004 02:38 pm, Markus Wild wrote: > Since yesterday I'm a happy owner of a Logitech dinovo > cordless USB keyboard/mouse. The keyboard works fine, however > the mouse didn't move a bit. I saw that other people had similar > "luck", so I enabled a bit of debugging. This is with FreeBSD-current, > btw. > > The result of the quest was: the hid.c:hid_report_size() function returns= a > bogus iid value: > > Jun 9 19:37:06 mothra kernel: ums0: Logitech USB Receiver, rev 1.10/24.0= 4, > addr 3, iclass 3/1 > Jun 9 19:37:06 mothra kernel: ums_attach: bLength=3D7 bDescriptorType=3D5 > bEndpoint Address=3D2-in bmAttributes=3D3 wMaxPacketSize=3D8 bInterval=3D= 10 > Jun 9 19:37:06 mothra kernel: ums0: 7 buttons and Z dir. > Jun 9 19:37:06 mothra kernel: ums_attach: sc=3D0xc23a1800 > Jun 9 19:37:06 mothra kernel: ums_attach: X 8/12 > Jun 9 19:37:06 mothra kernel: ums_attach: Y 20/12 > Jun 9 19:37:06 mothra kernel: ums_attach: Z 32/8 > Jun 9 19:37:06 mothra kernel: ums_attach: B1 0/1 > Jun 9 19:37:06 mothra kernel: ums_attach: B2 1/1 > Jun 9 19:37:06 mothra kernel: ums_attach: B3 2/1 > Jun 9 19:37:06 mothra kernel: ums_attach: B4 3/1 > Jun 9 19:37:06 mothra kernel: ums_attach: B5 4/1 > Jun 9 19:37:06 mothra kernel: ums_attach: B6 5/1 > Jun 9 19:37:06 mothra kernel: ums_attach: B7 6/1 > Jun 9 19:37:06 mothra kernel: ums_attach: size=3D36, id=3D17 > > Since actual interrupt reports are issed with id 2: > Jun 9 18:42:10 mothra kernel: ums_intr: sc=3D0xc23a1800 status=3D0 > Jun 9 18:42:10 mothra kernel: ums_intr: data =3D 02 00 fa > > So I added a bit of debugging to the id setting for-loop. It > looks like the ID cycles thru the following values at attach() time: > Jun 9 19:40:57 mothra kernel: hid_report_size: 00 -> 02 > Jun 9 19:40:57 mothra kernel: hid_report_size: 02 -> 03 > Jun 9 19:40:57 mothra kernel: hid_report_size: 03 -> 04 > Jun 9 19:40:57 mothra kernel: hid_report_size: 04 -> 10 > Jun 9 19:40:57 mothra kernel: hid_report_size: 10 -> 11 > (numbers are hex here) > > With this, my current fix is simple: only set id if it's not > set already: > diff -u -r1.23 hid.c > --- hid.c 24 Aug 2003 17:55:54 -0000 1.23 > +++ hid.c 9 Jun 2004 18:34:23 -0000 > @@ -374,9 +374,10 @@ > int size, id; > > id =3D 0; > + bzero (&h, sizeof (h)); > for (d =3D hid_start_parse(buf, len, 1< - if (h.report_ID !=3D 0) > - id =3D h.report_ID; > + if (h.report_ID !=3D 0 && !id) > + id =3D h.report_ID; > hid_end_parse(d); > size =3D h.loc.pos; > if (id !=3D 0) { > I've attached at big patch that should fix the problem as well as a bunch o= f=20 updates from the NetBSD sources. This is a patch against -CURRENT, so you= =20 may have to massage it a bit if you are on -STABLE. I won't have an=20 offending device to test for at least a week so let me know of any problems. Thanks, =2D --=20 Anish Mistry =2D----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFAx6hvxqA5ziudZT0RAspMAJ9y4i5rXALWKnn7zrQ3TigCSK0dGACdHcmU x/J7ZJXwjFeiJptFzZmaXS8=3D =3Deg+L =2D----END PGP SIGNATURE----- --Boundary-00=_vh6xAi/EQRz9Qhb Content-Type: text/x-diff; charset="iso-8859-1"; name="hid-updates.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="hid-updates.patch" diff -ruN sys/dev/usb.orig/hid.c sys/dev/usb/hid.c --- sys/dev/usb.orig/hid.c Wed Jun 9 20:10:55 2004 +++ sys/dev/usb/hid.c Wed Jun 9 20:08:30 2004 @@ -1,8 +1,6 @@ -/* $NetBSD: hid.c,v 1.17 2001/11/13 06:24:53 lukem Exp $ */ +/* $NetBSD: hid.c,v 1.21 2002/01/02 11:10:50 augustss Exp $ */ +/* $FreeBSD: src/sys/dev/usb/usbhid.h,v 1.13 2002/01/02 20:16:53 joe Exp $ */ - -#include -__FBSDID("$FreeBSD: src/sys/dev/usb/hid.c,v 1.23 2003/08/24 17:55:54 obrien Exp $"); /* * Copyright (c) 1998 The NetBSD Foundation, Inc. * All rights reserved. @@ -40,22 +38,24 @@ * POSSIBILITY OF SUCH DAMAGE. */ +#include + #include #include #if defined(__NetBSD__) #include #endif #include - + #include #include #include -#ifdef USB_DEBUG -#define DPRINTF(x) if (usbdebug) logprintf x -#define DPRINTFN(n,x) if (usbdebug>(n)) logprintf x -extern int usbdebug; +#ifdef UHIDEV_DEBUG +#define DPRINTF(x) if (uhidevdebug) logprintf x +#define DPRINTFN(n,x) if (uhidevdebug>(n)) logprintf x +extern int uhidevdebug; #else #define DPRINTF(x) #define DPRINTFN(n,x) @@ -63,7 +63,7 @@ Static void hid_clear_local(struct hid_item *); -#define MAXUSAGE 100 +#define MAXUSAGE 256 struct hid_data { u_char *start; u_char *end; @@ -74,13 +74,14 @@ int minset; int multi; int multimax; - int kindset; + enum hid_kind kind; }; Static void hid_clear_local(struct hid_item *c) { + DPRINTFN(5,("hid_clear_local\n")); c->usage = 0; c->usage_minimum = 0; c->usage_maximum = 0; @@ -94,14 +95,15 @@ } struct hid_data * -hid_start_parse(void *d, int len, int kindset) +hid_start_parse(void *d, int len, enum hid_kind kind) { struct hid_data *s; - s = malloc(sizeof *s, M_TEMP, M_WAITOK|M_ZERO); + s = malloc(sizeof *s, M_TEMP, M_WAITOK); + memset(s, 0, sizeof *s); s->start = s->p = d; s->end = (char *)d + len; - s->kindset = kindset; + s->kind = kind; return (s); } @@ -128,15 +130,19 @@ u_char *p; struct hid_item *hi; int i; + enum hid_kind retkind; top: + DPRINTFN(5,("hid_get_item: multi=%d multimax=%d\n", + s->multi, s->multimax)); if (s->multimax != 0) { if (s->multi < s->multimax) { c->usage = s->usages[min(s->multi, s->nu-1)]; s->multi++; *h = *c; c->loc.pos += c->loc.size; - h->next = 0; + h->next = NULL; + DPRINTFN(5,("return multi\n")); return (1); } else { c->loc.count = s->multimax; @@ -174,12 +180,12 @@ dval = 0; break; case 1: - dval = (int8_t)*data++; + dval = /*(int8_t)*/ *data++; break; case 2: dval = *data++; dval |= *data++ << 8; - dval = (int16_t)dval; + dval = /*(int16_t)*/ dval; break; case 4: dval = *data++; @@ -191,23 +197,30 @@ printf("BAD LENGTH %d\n", bSize); continue; } - + + DPRINTFN(5,("hid_get_item: bType=%d bTag=%d dval=%d\n", + bType, bTag, dval)); switch (bType) { case 0: /* Main */ switch (bTag) { case 8: /* Input */ - if (!(s->kindset & (1 << hid_input))) + retkind = hid_input; + ret: + if (s->kind != retkind) { + s->minset = 0; + s->nu = 0; + hid_clear_local(c); continue; - c->kind = hid_input; + } + c->kind = retkind; c->flags = dval; - ret: if (c->flags & HIO_VARIABLE) { s->multimax = c->loc.count; s->multi = 0; c->loc.count = 1; if (s->minset) { - for (i = c->usage_minimum; - i <= c->usage_maximum; + for (i = c->usage_minimum; + i <= c->usage_maximum; i++) { s->usages[s->nu] = i; if (s->nu < MAXUSAGE-1) @@ -217,19 +230,18 @@ } goto top; } else { + c->usage = c->_usage_page; /* XXX */ *h = *c; - h->next = 0; - c->loc.pos += - c->loc.size * c->loc.count; - hid_clear_local(c); + h->next = NULL; + c->loc.pos += + c->loc.size * c->loc.count; s->minset = 0; + s->nu = 0; + hid_clear_local(c); return (1); } case 9: /* Output */ - if (!(s->kindset & (1 << hid_output))) - continue; - c->kind = hid_output; - c->flags = dval; + retkind = hid_output; goto ret; case 10: /* Collection */ c->kind = hid_collection; @@ -240,16 +252,12 @@ s->nu = 0; return (1); case 11: /* Feature */ - if (!(s->kindset & (1 << hid_feature))) - continue; - c->kind = hid_feature; - c->flags = dval; + retkind = hid_feature; goto ret; case 12: /* End collection */ c->kind = hid_endcollection; c->collevel--; *h = *c; - hid_clear_local(c); s->nu = 0; return (1); default: @@ -285,6 +293,7 @@ break; case 8: c->report_ID = dval; + c->loc.pos = 0; break; case 9: c->loc.count = dval; @@ -309,9 +318,9 @@ case 2: /* Local */ switch (bTag) { case 0: - if (bSize == 1) + if (bSize == 1) dval = c->_usage_page | (dval&0xff); - else if (bSize == 2) + else if (bSize == 2) dval = c->_usage_page | (dval&0xffff); c->usage = dval; if (s->nu < MAXUSAGE) @@ -320,16 +329,16 @@ break; case 1: s->minset = 1; - if (bSize == 1) + if (bSize == 1) dval = c->_usage_page | (dval&0xff); - else if (bSize == 2) + else if (bSize == 2) dval = c->_usage_page | (dval&0xffff); c->usage_minimum = dval; break; case 2: - if (bSize == 1) + if (bSize == 1) dval = c->_usage_page | (dval&0xff); - else if (bSize == 2) + else if (bSize == 2) dval = c->_usage_page | (dval&0xffff); c->usage_maximum = dval; break; @@ -367,35 +376,51 @@ } int -hid_report_size(void *buf, int len, enum hid_kind k, u_int8_t *idp) +hid_report_size(void *buf, int len, enum hid_kind k, u_int8_t id) { struct hid_data *d; struct hid_item h; - int size, id; + int lo, hi; - id = 0; - for (d = hid_start_parse(buf, len, 1<>= hpos % 8; @@ -431,25 +456,39 @@ hsize = 32 - hsize; /* Sign extend */ data = ((int32_t)data << hsize) >> hsize; - DPRINTFN(10,("hid_get_data: loc %d/%d = %lu\n", + DPRINTFN(10,("hid_get_data: loc %d/%d = %lu\n", loc->pos, loc->size, (long)data)); return (data); } int -hid_is_collection(void *desc, int size, u_int32_t usage) +hid_is_collection(void *desc, int size, u_int8_t id, u_int32_t usage) { struct hid_data *hd; struct hid_item hi; - int err; + u_int32_t coll_usage = ~0; - hd = hid_start_parse(desc, size, hid_input); + hd = hid_start_parse(desc, size, hid_none); if (hd == NULL) return (0); - err = hid_get_item(hd, &hi) && - hi.kind == hid_collection && - hi.usage == usage; + DPRINTFN(2,("hid_is_collection: id=%d usage=0x%x\n", id, usage)); + while (hid_get_item(hd, &hi)) { + DPRINTFN(2,("hid_is_collection: kind=%d id=%d usage=0x%x" + "(0x%x)\n", + hi.kind, hi.report_ID, hi.usage, coll_usage)); + if (hi.kind == hid_collection && + hi.collection == HCOLL_APPLICATION) + coll_usage = hi.usage; + if (hi.kind == hid_endcollection && + coll_usage == usage && + hi.report_ID == id) { + DPRINTFN(2,("hid_is_collection: found\n")); + hid_end_parse(hd); + return (1); + } + } + DPRINTFN(2,("hid_is_collection: not found\n")); hid_end_parse(hd); - return (err); + return (0); } diff -ruN sys/dev/usb.orig/hid.h sys/dev/usb/hid.h --- sys/dev/usb.orig/hid.h Wed Jun 9 20:10:55 2004 +++ sys/dev/usb/hid.h Wed Jun 9 20:04:57 2004 @@ -1,4 +1,4 @@ -/* $NetBSD: hid.h,v 1.6 2000/06/01 14:28:57 augustss Exp $ */ +/* $NetBSD: hid.h,v 1.7 2001/12/28 17:32:36 augustss Exp $ */ /* $FreeBSD: src/sys/dev/usb/hid.h,v 1.12 2003/07/04 01:50:38 jmg Exp $ */ /* @@ -38,8 +38,13 @@ * POSSIBILITY OF SUCH DAMAGE. */ -enum hid_kind { - hid_input, hid_output, hid_feature, hid_collection, hid_endcollection +enum hid_kind { + hid_input, + hid_output, + hid_feature, + hid_collection, + hid_endcollection, + hid_none }; struct hid_location { @@ -80,12 +85,11 @@ struct hid_item *next; }; -struct hid_data *hid_start_parse(void *d, int len, int kindset); +struct hid_data *hid_start_parse(void *d, int len, enum hid_kind kind); void hid_end_parse(struct hid_data *s); int hid_get_item(struct hid_data *s, struct hid_item *h); -int hid_report_size(void *buf, int len, enum hid_kind k, u_int8_t *id); -int hid_locate(void *desc, int size, u_int32_t usage, - enum hid_kind kind, struct hid_location *loc, - u_int32_t *flags); +int hid_report_size(void *buf, int len, enum hid_kind k, u_int8_t id); +int hid_locate(void *desc, int size, u_int32_t usage, u_int8_t id, + enum hid_kind kind, struct hid_location *loc, u_int32_t *flags); u_long hid_get_data(u_char *buf, struct hid_location *loc); -int hid_is_collection(void *desc, int size, u_int32_t usage); +int hid_is_collection(void *desc, int size, u_int8_t id, u_int32_t usage); diff -ruN sys/dev/usb.orig/uhid.c sys/dev/usb/uhid.c --- sys/dev/usb.orig/uhid.c Wed Jun 9 20:10:55 2004 +++ sys/dev/usb/uhid.c Wed Jun 9 20:35:14 2004 @@ -266,9 +266,9 @@ (void)usbd_set_idle(iface, 0, 0); - sc->sc_isize = hid_report_size(desc, size, hid_input, &sc->sc_iid); - sc->sc_osize = hid_report_size(desc, size, hid_output, &sc->sc_oid); - sc->sc_fsize = hid_report_size(desc, size, hid_feature, &sc->sc_fid); + sc->sc_isize = hid_report_size(desc, size, hid_input, sc->sc_iid); + sc->sc_osize = hid_report_size(desc, size, hid_output, sc->sc_oid); + sc->sc_fsize = hid_report_size(desc, size, hid_feature, sc->sc_fid); sc->sc_repdesc = desc; sc->sc_repdesc_size = size; diff -ruN sys/dev/usb.orig/usbhid.h sys/dev/usb/usbhid.h --- sys/dev/usb.orig/usbhid.h Wed Jun 9 20:10:53 2004 +++ sys/dev/usb/usbhid.h Wed Jun 9 20:07:13 2004 @@ -1,4 +1,4 @@ -/* $NetBSD: usbhid.h,v 1.9 2000/09/03 19:09:14 augustss Exp $ */ +/* $NetBSD: usbhid.h,v 1.9.4.1 2002/01/10 19:59:11 thorpej Exp $ */ /* $FreeBSD: src/sys/dev/usb/usbhid.h,v 1.13 2002/01/02 20:16:53 joe Exp $ */ /* @@ -164,11 +164,24 @@ #define HUD_ERASER 0x0045 #define HUD_TABLET_PICK 0x0046 -#define HID_USAGE2(p,u) (((p) << 16) | u) +/* Usages LEDs */ +#define HUD_LED_NUM_LOCK 0x0001 +#define HUD_LED_CAPS_LOCK 0x0002 +#define HUD_LED_SCROLL_LOCK 0x0003 +#define HUD_LED_COMPOSE 0x0004 +#define HUD_LED_KANA 0x0005 + +#define HID_USAGE2(p, u) (((p) << 16) | u) +#define HID_GET_USAGE(u) ((u) & 0xffff) +#define HID_GET_USAGE_PAGE(u) (((u) >> 16) & 0xffff) #define UHID_INPUT_REPORT 0x01 #define UHID_OUTPUT_REPORT 0x02 #define UHID_FEATURE_REPORT 0x03 + +#define HCOLL_PHYSICAL 0 +#define HCOLL_APPLICATION 1 +#define HCOLL_LOGICAL 2 /* Bits in the input/output/feature items */ #define HIO_CONST 0x001 --Boundary-00=_vh6xAi/EQRz9Qhb-- From owner-freebsd-hardware@FreeBSD.ORG Thu Jun 10 10:10:52 2004 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7454B16A4CE; Thu, 10 Jun 2004 10:10:52 +0000 (GMT) Received: from dd2626.kasserver.com (dd2626.kasserver.com [81.209.184.189]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0FED443D41; Thu, 10 Jun 2004 10:10:52 +0000 (GMT) (envelope-from outi@bytephobia.de) Received: from duality.bytephobia.de (p50843F7C.dip.t-dialin.net [80.132.63.124]) by dd2626.kasserver.com (Postfix) with SMTP id 43BEC670F1; Thu, 10 Jun 2004 12:10:22 +0200 (CEST) Date: Thu, 10 Jun 2004 12:12:16 +0200 From: Patrick Hurrelmann To: "Vinod Kashyap" Message-Id: <20040610121216.70c5cedb@duality.bytephobia.de> In-Reply-To: References: Organization: private X-Mailer: Sylpheed version 0.9.11claws (GTK+ 1.2.10; i386-portbld-freebsd5.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit cc: freebsd-current@freebsd.org cc: freebsd-hardware@freebsd.org Subject: Re: Experiences with 3Ware 9500-Series and 5.2 CURRENT? X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: outi@bytephobia.de List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Jun 2004 10:10:52 -0000 On Wed, 9 Jun 2004 13:38:51 -0700 "Vinod Kashyap" wrote: > > - Does anybody use such a controller and in what configuration? > > - How stable is the current twa? > > twa has gone through a full qualification process internal to 3ware. great to hear! so i will order my controller on monday. > > > - Do the CLI and 3DM Tools work? > > They haven't been released yet, and are expected to be released shortly. so CLI and 3DM for freebsd are not included on cd-rom in the kit-version? Thanks for your information. Patrick From owner-freebsd-hardware@FreeBSD.ORG Thu Jun 10 15:15:44 2004 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BE5E816A4CE for ; Thu, 10 Jun 2004 15:15:44 +0000 (GMT) Received: from mk-smarthost-1.mail.uk.tiscali.com (mk-smarthost-1.mail.uk.tiscali.com [212.74.114.37]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6473443D45 for ; Thu, 10 Jun 2004 15:15:44 +0000 (GMT) (envelope-from adam@otterycomputers.com) Received: from dsl-80-46-158-27.access.uk.tiscali.com ([80.46.158.27]:63608 helo=postman.oocltd.dom) by mk-smarthost-1.mail.uk.tiscali.com with esmtp (Exim 4.30) id 1BYRHA-000NNU-I1 for freebsd-hardware@freebsd.org; Thu, 10 Jun 2004 16:15:32 +0100 Received: from localhost (localhost [127.0.0.1]) by postman.oocltd.dom (Postfix) with ESMTP id 17AABACD for ; Thu, 10 Jun 2004 16:15:09 +0100 (BST) Received: from postman.oocltd.dom ([127.0.0.1]) by localhost (postman.oocltd.dom [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 08186-03 for ; Thu, 10 Jun 2004 16:15:06 +0100 (BST) Received: from postman.oocltd.dom (localhost [127.0.0.1]) by postman.oocltd.dom (Postfix) with ESMTP id AB1F5AC5 for ; Thu, 10 Jun 2004 16:15:06 +0100 (BST) Received: (from www@localhost) by postman.oocltd.dom (8.12.11/8.12.9/Submit) id i5AFF65m010361 for freebsd-hardware@freebsd.org; Thu, 10 Jun 2004 16:15:06 +0100 (BST) (envelope-from adam@otterycomputers.com) X-Authentication-Warning: postman.oocltd.dom: www set sender to adam@otterycomputers.com using -f Received: from 192.168.0.4 ([192.168.0.4]) by 192.168.0.253 (IMP) with HTTP for ; Thu, 10 Jun 2004 16:15:06 +0100 Message-ID: <1086880506.40c87afa4e1cd@192.168.0.253> Date: Thu, 10 Jun 2004 16:15:06 +0100 From: adam@otterycomputers.com To: freebsd-hardware@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 User-Agent: Internet Messaging Program (IMP) 3.2.3 / FreeBSD-4.9 X-Originating-IP: 192.168.0.4 X-Virus-Scanned: by amavisd-new at otterycomputers.com Content-Transfer-Encoding: quoted-printable Subject: RTL 8180L Wireless Network Card or Recommendations X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Jun 2004 15:15:44 -0000 Hi Guys, Im not having much luck. Initially I bought a D-Link G520+ WLAN card without checking the support = and later found that it is not supported under FreeBSD although I have plans = to try and change this ;-). I am now trying a Q-Tec 774WP WLAN card which is actually a RTL 8180L chi= pset. This also seems to be unsupported? Has anyone had this card work for them= ? pciconf -lv shows: Class=3D0x020000 Card=3D0x818010ec Chip=3D0x818010ec rev=3D0x20 hdr=3D0x0 RTL 8180L IEEE 802.11b Wireless Mac and broadband processor Above all else I would like to get a wireless network between two FeeBSD2= .1 machines working ASAP. One will act as an Gateway to a wired Ethernet. Can someone please recommend a 54mbps or even better a 108mbps card that = will definetly work with FreeBSD 5.2.1. Cost is also somewhat of a concern. Thanks Adam. ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. From owner-freebsd-hardware@FreeBSD.ORG Thu Jun 10 15:22:09 2004 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 19EF416A4CE for ; Thu, 10 Jun 2004 15:22:09 +0000 (GMT) Received: from mail6.speakeasy.net (mail6.speakeasy.net [216.254.0.206]) by mx1.FreeBSD.org (Postfix) with ESMTP id BD53143D5A for ; Thu, 10 Jun 2004 15:22:08 +0000 (GMT) (envelope-from jhb@FreeBSD.org) Received: (qmail 22526 invoked from network); 10 Jun 2004 15:21:54 -0000 Received: from dsl027-160-063.atl1.dsl.speakeasy.net (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender ) encrypted SMTP for ; 10 Jun 2004 15:21:53 -0000 Received: from 10.50.41.233 (gw1.twc.weather.com [216.133.140.1]) by server.baldwin.cx (8.12.11/8.12.11) with ESMTP id i5AFLil9026472; Thu, 10 Jun 2004 11:21:44 -0400 (EDT) (envelope-from jhb@FreeBSD.org) From: John Baldwin To: freebsd-hardware@FreeBSD.org Date: Thu, 10 Jun 2004 11:22:35 -0400 User-Agent: KMail/1.6 References: <200406091838.i59Icugc063061@smsgw.vianetworks.ch> <200406092016.54347.mistry.7@osu.edu> In-Reply-To: <200406092016.54347.mistry.7@osu.edu> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200406101122.35454.jhb@FreeBSD.org> X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on server.baldwin.cx cc: Markus Wild Subject: Re: Fix for Logitech DiNovo cordless mouse [PATCH] X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Jun 2004 15:22:09 -0000 On Wednesday 09 June 2004 08:16 pm, Anish Mistry wrote: > On Wednesday 09 June 2004 02:38 pm, Markus Wild wrote: > > Since yesterday I'm a happy owner of a Logitech dinovo > > cordless USB keyboard/mouse. The keyboard works fine, however > > the mouse didn't move a bit. I saw that other people had similar > > "luck", so I enabled a bit of debugging. This is with FreeBSD-current, > > btw. > > > > The result of the quest was: the hid.c:hid_report_size() function returns > > a bogus iid value: > > > > Jun 9 19:37:06 mothra kernel: ums0: Logitech USB Receiver, rev > > 1.10/24.04, addr 3, iclass 3/1 > > Jun 9 19:37:06 mothra kernel: ums_attach: bLength=7 bDescriptorType=5 > > bEndpoint Address=2-in bmAttributes=3 wMaxPacketSize=8 bInterval=10 > > Jun 9 19:37:06 mothra kernel: ums0: 7 buttons and Z dir. > > Jun 9 19:37:06 mothra kernel: ums_attach: sc=0xc23a1800 > > Jun 9 19:37:06 mothra kernel: ums_attach: X 8/12 > > Jun 9 19:37:06 mothra kernel: ums_attach: Y 20/12 > > Jun 9 19:37:06 mothra kernel: ums_attach: Z 32/8 > > Jun 9 19:37:06 mothra kernel: ums_attach: B1 0/1 > > Jun 9 19:37:06 mothra kernel: ums_attach: B2 1/1 > > Jun 9 19:37:06 mothra kernel: ums_attach: B3 2/1 > > Jun 9 19:37:06 mothra kernel: ums_attach: B4 3/1 > > Jun 9 19:37:06 mothra kernel: ums_attach: B5 4/1 > > Jun 9 19:37:06 mothra kernel: ums_attach: B6 5/1 > > Jun 9 19:37:06 mothra kernel: ums_attach: B7 6/1 > > Jun 9 19:37:06 mothra kernel: ums_attach: size=36, id=17 > > > > Since actual interrupt reports are issed with id 2: > > Jun 9 18:42:10 mothra kernel: ums_intr: sc=0xc23a1800 status=0 > > Jun 9 18:42:10 mothra kernel: ums_intr: data = 02 00 fa > > > > So I added a bit of debugging to the id setting for-loop. It > > looks like the ID cycles thru the following values at attach() time: > > Jun 9 19:40:57 mothra kernel: hid_report_size: 00 -> 02 > > Jun 9 19:40:57 mothra kernel: hid_report_size: 02 -> 03 > > Jun 9 19:40:57 mothra kernel: hid_report_size: 03 -> 04 > > Jun 9 19:40:57 mothra kernel: hid_report_size: 04 -> 10 > > Jun 9 19:40:57 mothra kernel: hid_report_size: 10 -> 11 > > (numbers are hex here) > > > > With this, my current fix is simple: only set id if it's not > > set already: > > diff -u -r1.23 hid.c > > --- hid.c 24 Aug 2003 17:55:54 -0000 1.23 > > +++ hid.c 9 Jun 2004 18:34:23 -0000 > > @@ -374,9 +374,10 @@ > > int size, id; > > > > id = 0; > > + bzero (&h, sizeof (h)); > > for (d = hid_start_parse(buf, len, 1< > - if (h.report_ID != 0) > > - id = h.report_ID; > > + if (h.report_ID != 0 && !id) > > + id = h.report_ID; > > hid_end_parse(d); > > size = h.loc.pos; > > if (id != 0) { > > I've attached at big patch that should fix the problem as well as a bunch > of updates from the NetBSD sources. This is a patch against -CURRENT, so > you may have to massage it a bit if you are on -STABLE. I won't have an > offending device to test for at least a week so let me know of any > problems. - M_ZERO is preferred to malloc() + memset(), so please don't make that change. - Lots of the changes add style bugs by adding spaces to the end of lines. Please remove any trailing whitespace from your files. Other than that the patch looks cool. -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" = http://www.FreeBSD.org From owner-freebsd-hardware@FreeBSD.ORG Thu Jun 10 16:15:23 2004 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EC96A16A4CE; Thu, 10 Jun 2004 16:15:22 +0000 (GMT) Received: from crumpet.united-ware.com (ddsl-66-42-172-210.fuse.net [66.42.172.210]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3158C43D4C; Thu, 10 Jun 2004 16:15:22 +0000 (GMT) (envelope-from mistry.7@osu.edu) Received: from [192.168.0.6] (adsl-64-109-102-30.dsl.wotnoh.ameritech.net [64.109.102.30]) (authenticated bits=0)i5AG8PQr034860 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO); Thu, 10 Jun 2004 12:08:27 -0400 (EDT) (envelope-from mistry.7@osu.edu) From: Anish Mistry To: freebsd-hardware@freebsd.org Date: Thu, 10 Jun 2004 12:15:14 -0400 User-Agent: KMail/1.6.2 References: <200406091838.i59Icugc063061@smsgw.vianetworks.ch> <200406092016.54347.mistry.7@osu.edu> <200406101122.35454.jhb@FreeBSD.org> In-Reply-To: <200406101122.35454.jhb@FreeBSD.org> MIME-Version: 1.0 Content-Disposition: inline Content-Type: Multipart/Mixed; boundary="Boundary-00=_SkIyA9lABDyBlSX" Message-Id: <200406101215.24347.mistry.7@osu.edu> X-Spam-Status: No, hits=-5.4 required=5.0 tests=EMAIL_ATTRIBUTION,IN_REP_TO,PATCH_UNIFIED_DIFF, PGP_SIGNATURE,QUOTED_EMAIL_TEXT,RCVD_IN_ORBS,REFERENCES, REPLY_WITH_QUOTES,USER_AGENT_KMAIL version=2.55 X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp) cc: Markus Wild Subject: Re: Fix for Logitech DiNovo cordless mouse [PATCH] X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Jun 2004 16:15:23 -0000 --Boundary-00=_SkIyA9lABDyBlSX Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline =2D----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Thursday 10 June 2004 11:22 am, John Baldwin wrote: > On Wednesday 09 June 2004 08:16 pm, Anish Mistry wrote: > > On Wednesday 09 June 2004 02:38 pm, Markus Wild wrote: > > > Since yesterday I'm a happy owner of a Logitech dinovo > > > cordless USB keyboard/mouse. The keyboard works fine, however > > > the mouse didn't move a bit. I saw that other people had similar > > > "luck", so I enabled a bit of debugging. This is with FreeBSD-current, > > > btw. > > > > > > The result of the quest was: the hid.c:hid_report_size() function > > > returns a bogus iid value: > > > > > > Jun 9 19:37:06 mothra kernel: ums0: Logitech USB Receiver, rev > > > 1.10/24.04, addr 3, iclass 3/1 > > > Jun 9 19:37:06 mothra kernel: ums_attach: bLength=3D7 bDescriptorTyp= e=3D5 > > > bEndpoint Address=3D2-in bmAttributes=3D3 wMaxPacketSize=3D8 bInterva= l=3D10 > > > Jun 9 19:37:06 mothra kernel: ums0: 7 buttons and Z dir. > > > Jun 9 19:37:06 mothra kernel: ums_attach: sc=3D0xc23a1800 > > > Jun 9 19:37:06 mothra kernel: ums_attach: X 8/12 > > > Jun 9 19:37:06 mothra kernel: ums_attach: Y 20/12 > > > Jun 9 19:37:06 mothra kernel: ums_attach: Z 32/8 > > > Jun 9 19:37:06 mothra kernel: ums_attach: B1 0/1 > > > Jun 9 19:37:06 mothra kernel: ums_attach: B2 1/1 > > > Jun 9 19:37:06 mothra kernel: ums_attach: B3 2/1 > > > Jun 9 19:37:06 mothra kernel: ums_attach: B4 3/1 > > > Jun 9 19:37:06 mothra kernel: ums_attach: B5 4/1 > > > Jun 9 19:37:06 mothra kernel: ums_attach: B6 5/1 > > > Jun 9 19:37:06 mothra kernel: ums_attach: B7 6/1 > > > Jun 9 19:37:06 mothra kernel: ums_attach: size=3D36, id=3D17 > > > > > > Since actual interrupt reports are issed with id 2: > > > Jun 9 18:42:10 mothra kernel: ums_intr: sc=3D0xc23a1800 status=3D0 > > > Jun 9 18:42:10 mothra kernel: ums_intr: data =3D 02 00 fa > > > > > > So I added a bit of debugging to the id setting for-loop. It > > > looks like the ID cycles thru the following values at attach() time: > > > Jun 9 19:40:57 mothra kernel: hid_report_size: 00 -> 02 > > > Jun 9 19:40:57 mothra kernel: hid_report_size: 02 -> 03 > > > Jun 9 19:40:57 mothra kernel: hid_report_size: 03 -> 04 > > > Jun 9 19:40:57 mothra kernel: hid_report_size: 04 -> 10 > > > Jun 9 19:40:57 mothra kernel: hid_report_size: 10 -> 11 > > > (numbers are hex here) > > > > > > With this, my current fix is simple: only set id if it's not > > > set already: > > > diff -u -r1.23 hid.c > > > --- hid.c 24 Aug 2003 17:55:54 -0000 1.23 > > > +++ hid.c 9 Jun 2004 18:34:23 -0000 > > > @@ -374,9 +374,10 @@ > > > int size, id; > > > > > > id =3D 0; > > > + bzero (&h, sizeof (h)); > > > for (d =3D hid_start_parse(buf, len, 1< > > ) - if (h.report_ID !=3D 0) > > > - id =3D h.report_ID; > > > + if (h.report_ID !=3D 0 && !id) > > > + id =3D h.report_ID; > > > hid_end_parse(d); > > > size =3D h.loc.pos; > > > if (id !=3D 0) { > > > > I've attached at big patch that should fix the problem as well as a bun= ch > > of updates from the NetBSD sources. This is a patch against -CURRENT, = so > > you may have to massage it a bit if you are on -STABLE. I won't have an > > offending device to test for at least a week so let me know of any > > problems. > > - M_ZERO is preferred to malloc() + memset(), so please don't make that > change. > - Lots of the changes add style bugs by adding spaces to the end of lines. > Please remove any trailing whitespace from your files. > > Other than that the patch looks cool. Ok, I think the style changes are done and I've attached the updated patch.= =20 I've got a question though, in style it says the enums should be in all cap= s,=20 but the previous code wasn't and the NetBSD import code wasn't. Should I=20 change it to what style says, or is it better to stay in sync with NetBSD? =2D --=20 Anish Mistry =2D----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFAyIkbxqA5ziudZT0RApRvAKC5MPZqPjXvzW/QW9eGBwCtgQVR9QCgzjxA Xh4IG03yC1u5KOLh86COjnw=3D =3Dbtfv =2D----END PGP SIGNATURE----- --Boundary-00=_SkIyA9lABDyBlSX Content-Type: text/x-diff; charset="iso-8859-1"; name="hid-updates2.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="hid-updates2.patch" diff -ruN sys/dev/usb.orig/hid.c sys/dev/usb/hid.c --- sys/dev/usb.orig/hid.c Wed Jun 9 20:10:55 2004 +++ sys/dev/usb/hid.c Thu Jun 10 12:22:18 2004 @@ -1,8 +1,6 @@ -/* $NetBSD: hid.c,v 1.17 2001/11/13 06:24:53 lukem Exp $ */ +/* $NetBSD: hid.c,v 1.21 2002/01/02 11:10:50 augustss Exp $ */ +/* $FreeBSD: src/sys/dev/usb/usbhid.h,v 1.13 2002/01/02 20:16:53 joe Exp $ */ - -#include -__FBSDID("$FreeBSD: src/sys/dev/usb/hid.c,v 1.23 2003/08/24 17:55:54 obrien Exp $"); /* * Copyright (c) 1998 The NetBSD Foundation, Inc. * All rights reserved. @@ -40,6 +38,8 @@ * POSSIBILITY OF SUCH DAMAGE. */ +#include + #include #include #if defined(__NetBSD__) @@ -52,10 +52,10 @@ #include -#ifdef USB_DEBUG -#define DPRINTF(x) if (usbdebug) logprintf x -#define DPRINTFN(n,x) if (usbdebug>(n)) logprintf x -extern int usbdebug; +#ifdef UHIDEV_DEBUG +#define DPRINTF(x) if (uhidevdebug) logprintf x +#define DPRINTFN(n,x) if (uhidevdebug>(n)) logprintf x +extern int uhidevdebug; #else #define DPRINTF(x) #define DPRINTFN(n,x) @@ -63,7 +63,7 @@ Static void hid_clear_local(struct hid_item *); -#define MAXUSAGE 100 +#define MAXUSAGE 256 struct hid_data { u_char *start; u_char *end; @@ -74,13 +74,14 @@ int minset; int multi; int multimax; - int kindset; + enum hid_kind kind; }; Static void hid_clear_local(struct hid_item *c) { + DPRINTFN(5,("hid_clear_local\n")); c->usage = 0; c->usage_minimum = 0; c->usage_maximum = 0; @@ -94,14 +95,14 @@ } struct hid_data * -hid_start_parse(void *d, int len, int kindset) +hid_start_parse(void *d, int len, enum hid_kind kind) { struct hid_data *s; s = malloc(sizeof *s, M_TEMP, M_WAITOK|M_ZERO); s->start = s->p = d; s->end = (char *)d + len; - s->kindset = kindset; + s->kind = kind; return (s); } @@ -128,15 +129,19 @@ u_char *p; struct hid_item *hi; int i; + enum hid_kind retkind; top: + DPRINTFN(5,("hid_get_item: multi=%d multimax=%d\n", + s->multi, s->multimax)); if (s->multimax != 0) { if (s->multi < s->multimax) { c->usage = s->usages[min(s->multi, s->nu-1)]; s->multi++; *h = *c; c->loc.pos += c->loc.size; - h->next = 0; + h->next = NULL; + DPRINTFN(5,("return multi\n")); return (1); } else { c->loc.count = s->multimax; @@ -174,12 +179,12 @@ dval = 0; break; case 1: - dval = (int8_t)*data++; + dval = /*(int8_t)*/ *data++; break; case 2: dval = *data++; dval |= *data++ << 8; - dval = (int16_t)dval; + dval = /*(int16_t)*/ dval; break; case 4: dval = *data++; @@ -191,16 +196,23 @@ printf("BAD LENGTH %d\n", bSize); continue; } - + + DPRINTFN(5,("hid_get_item: bType=%d bTag=%d dval=%d\n", + bType, bTag, dval)); switch (bType) { case 0: /* Main */ switch (bTag) { case 8: /* Input */ - if (!(s->kindset & (1 << hid_input))) + retkind = hid_input; + ret: + if (s->kind != retkind) { + s->minset = 0; + s->nu = 0; + hid_clear_local(c); continue; - c->kind = hid_input; + } + c->kind = retkind; c->flags = dval; - ret: if (c->flags & HIO_VARIABLE) { s->multimax = c->loc.count; s->multi = 0; @@ -217,19 +229,18 @@ } goto top; } else { + c->usage = c->_usage_page; /* XXX */ *h = *c; - h->next = 0; + h->next = NULL; c->loc.pos += - c->loc.size * c->loc.count; - hid_clear_local(c); + c->loc.size * c->loc.count; s->minset = 0; + s->nu = 0; + hid_clear_local(c); return (1); } case 9: /* Output */ - if (!(s->kindset & (1 << hid_output))) - continue; - c->kind = hid_output; - c->flags = dval; + retkind = hid_output; goto ret; case 10: /* Collection */ c->kind = hid_collection; @@ -240,16 +251,12 @@ s->nu = 0; return (1); case 11: /* Feature */ - if (!(s->kindset & (1 << hid_feature))) - continue; - c->kind = hid_feature; - c->flags = dval; + retkind = hid_feature; goto ret; case 12: /* End collection */ c->kind = hid_endcollection; c->collevel--; *h = *c; - hid_clear_local(c); s->nu = 0; return (1); default: @@ -285,6 +292,7 @@ break; case 8: c->report_ID = dval; + c->loc.pos = 0; break; case 9: c->loc.count = dval; @@ -367,35 +375,51 @@ } int -hid_report_size(void *buf, int len, enum hid_kind k, u_int8_t *idp) +hid_report_size(void *buf, int len, enum hid_kind k, u_int8_t id) { struct hid_data *d; struct hid_item h; - int size, id; + int lo, hi; - id = 0; - for (d = hid_start_parse(buf, len, 1<sc_isize = hid_report_size(desc, size, hid_input, &sc->sc_iid); - sc->sc_osize = hid_report_size(desc, size, hid_output, &sc->sc_oid); - sc->sc_fsize = hid_report_size(desc, size, hid_feature, &sc->sc_fid); + sc->sc_isize = hid_report_size(desc, size, hid_input, sc->sc_iid); + sc->sc_osize = hid_report_size(desc, size, hid_output, sc->sc_oid); + sc->sc_fsize = hid_report_size(desc, size, hid_feature, sc->sc_fid); sc->sc_repdesc = desc; sc->sc_repdesc_size = size; diff -ruN sys/dev/usb.orig/usbhid.h sys/dev/usb/usbhid.h --- sys/dev/usb.orig/usbhid.h Wed Jun 9 20:10:53 2004 +++ sys/dev/usb/usbhid.h Wed Jun 9 20:07:13 2004 @@ -1,4 +1,4 @@ -/* $NetBSD: usbhid.h,v 1.9 2000/09/03 19:09:14 augustss Exp $ */ +/* $NetBSD: usbhid.h,v 1.9.4.1 2002/01/10 19:59:11 thorpej Exp $ */ /* $FreeBSD: src/sys/dev/usb/usbhid.h,v 1.13 2002/01/02 20:16:53 joe Exp $ */ /* @@ -164,11 +164,24 @@ #define HUD_ERASER 0x0045 #define HUD_TABLET_PICK 0x0046 -#define HID_USAGE2(p,u) (((p) << 16) | u) +/* Usages LEDs */ +#define HUD_LED_NUM_LOCK 0x0001 +#define HUD_LED_CAPS_LOCK 0x0002 +#define HUD_LED_SCROLL_LOCK 0x0003 +#define HUD_LED_COMPOSE 0x0004 +#define HUD_LED_KANA 0x0005 + +#define HID_USAGE2(p, u) (((p) << 16) | u) +#define HID_GET_USAGE(u) ((u) & 0xffff) +#define HID_GET_USAGE_PAGE(u) (((u) >> 16) & 0xffff) #define UHID_INPUT_REPORT 0x01 #define UHID_OUTPUT_REPORT 0x02 #define UHID_FEATURE_REPORT 0x03 + +#define HCOLL_PHYSICAL 0 +#define HCOLL_APPLICATION 1 +#define HCOLL_LOGICAL 2 /* Bits in the input/output/feature items */ #define HIO_CONST 0x001 --Boundary-00=_SkIyA9lABDyBlSX-- From owner-freebsd-hardware@FreeBSD.ORG Thu Jun 10 16:54:57 2004 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3C0E116A4CE; Thu, 10 Jun 2004 16:54:57 +0000 (GMT) Received: from hadar.amcc.com (hadar.amcc.com [192.195.69.168]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0DD6243D4C; Thu, 10 Jun 2004 16:54:56 +0000 (GMT) (envelope-from vkashyap@amcc.com) Received: from mailhost.amcc.com ([192.195.69.30]) by hadar.amcc.com (Netscape Messaging Server 4.15) with SMTP id HZ3QZG02.JUL; Thu, 10 Jun 2004 09:54:52 -0700 Received: (from vkashyap-pc [10.66.6.61]) by mailhost.amcc.com (SAVSMTP 3.1.0.29) with SMTP id M2004061009545931456 ; Thu, 10 Jun 2004 09:55:00 -0700 From: "Vinod Kashyap" To: outi@bytephobia.de Date: Thu, 10 Jun 2004 09:54:52 -0700 X-Sent-Folder-Path: Sent Items X-Mailer: Oracle Connector for Outlook 9.0.4 51114 (9.0.6627) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Message-ID: cc: freebsd-current@freebsd.org cc: freebsd-hardware@freebsd.org Subject: RE: Experiences with 3Ware 9500-Series and 5.2 CURRENT? X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Jun 2004 16:54:57 -0000 > -----Original Message----- > From: Patrick Hurrelmann [mailto:outi@bytephobia.de] > Sent: Thursday, June 10, 2004 3:12 AM > To: Vinod Kashyap > Cc: freebsd-current@freebsd.org; freebsd-hardware@freebsd.org > Subject: Re: Experiences with 3Ware 9500-Series and 5.2 CURRENT? > = > = > On Wed, 9 Jun 2004 13:38:51 -0700 > "Vinod Kashyap" wrote: > = > > > - Does anybody use such a controller and in what configuration? > > > - How stable is the current twa? > > = > > twa has gone through a full qualification process internal to 3ware. > = > great to hear! so i will order my controller on monday. > = > > = > > > - Do the CLI and 3DM Tools work? > > = > > They haven't been released yet, and are expected to be = > released shortly. > = > so CLI and 3DM for freebsd are not included on cd-rom in the = > kit-version? > = None of the FreeBSD components (including the driver) is included on the currently shipping CD. The driver is however available, as you know, as part of the OS. All FreeBSD components will be on the CD that will ship as part of the next release. > Thanks for your information. > = > Patrick = > = > From owner-freebsd-hardware@FreeBSD.ORG Thu Jun 10 17:17:52 2004 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 95F7816A4CE for ; Thu, 10 Jun 2004 17:17:52 +0000 (GMT) Received: from mail2.speakeasy.net (mail2.speakeasy.net [216.254.0.202]) by mx1.FreeBSD.org (Postfix) with ESMTP id 78D6843D2D for ; Thu, 10 Jun 2004 17:17:52 +0000 (GMT) (envelope-from jhb@FreeBSD.org) Received: (qmail 12399 invoked from network); 10 Jun 2004 17:17:38 -0000 Received: from dsl027-160-063.atl1.dsl.speakeasy.net (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender ) encrypted SMTP for ; 10 Jun 2004 17:17:37 -0000 Received: from 10.50.41.233 (gw1.twc.weather.com [216.133.140.1]) by server.baldwin.cx (8.12.11/8.12.11) with ESMTP id i5AHHXb6027059; Thu, 10 Jun 2004 13:17:33 -0400 (EDT) (envelope-from jhb@FreeBSD.org) From: John Baldwin To: Anish Mistry Date: Thu, 10 Jun 2004 13:18:24 -0400 User-Agent: KMail/1.6 References: <200406091838.i59Icugc063061@smsgw.vianetworks.ch> <200406101122.35454.jhb@FreeBSD.org> <200406101215.24347.mistry.7@osu.edu> In-Reply-To: <200406101215.24347.mistry.7@osu.edu> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200406101318.24419.jhb@FreeBSD.org> X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on server.baldwin.cx cc: Markus Wild cc: freebsd-hardware@FreeBSD.org Subject: Re: Fix for Logitech DiNovo cordless mouse [PATCH] X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Jun 2004 17:17:52 -0000 On Thursday 10 June 2004 12:15 pm, Anish Mistry wrote: > On Thursday 10 June 2004 11:22 am, John Baldwin wrote: > > On Wednesday 09 June 2004 08:16 pm, Anish Mistry wrote: > > > On Wednesday 09 June 2004 02:38 pm, Markus Wild wrote: > > > > Since yesterday I'm a happy owner of a Logitech dinovo > > > > cordless USB keyboard/mouse. The keyboard works fine, however > > > > the mouse didn't move a bit. I saw that other people had similar > > > > "luck", so I enabled a bit of debugging. This is with > > > > FreeBSD-current, btw. > > > > > > > > The result of the quest was: the hid.c:hid_report_size() function > > > > returns a bogus iid value: > > > > > > > > Jun 9 19:37:06 mothra kernel: ums0: Logitech USB Receiver, rev > > > > 1.10/24.04, addr 3, iclass 3/1 > > > > Jun 9 19:37:06 mothra kernel: ums_attach: bLength=7 > > > > bDescriptorType=5 bEndpoint Address=2-in bmAttributes=3 > > > > wMaxPacketSize=8 bInterval=10 Jun 9 19:37:06 mothra kernel: ums0: 7 > > > > buttons and Z dir. > > > > Jun 9 19:37:06 mothra kernel: ums_attach: sc=0xc23a1800 > > > > Jun 9 19:37:06 mothra kernel: ums_attach: X 8/12 > > > > Jun 9 19:37:06 mothra kernel: ums_attach: Y 20/12 > > > > Jun 9 19:37:06 mothra kernel: ums_attach: Z 32/8 > > > > Jun 9 19:37:06 mothra kernel: ums_attach: B1 0/1 > > > > Jun 9 19:37:06 mothra kernel: ums_attach: B2 1/1 > > > > Jun 9 19:37:06 mothra kernel: ums_attach: B3 2/1 > > > > Jun 9 19:37:06 mothra kernel: ums_attach: B4 3/1 > > > > Jun 9 19:37:06 mothra kernel: ums_attach: B5 4/1 > > > > Jun 9 19:37:06 mothra kernel: ums_attach: B6 5/1 > > > > Jun 9 19:37:06 mothra kernel: ums_attach: B7 6/1 > > > > Jun 9 19:37:06 mothra kernel: ums_attach: size=36, id=17 > > > > > > > > Since actual interrupt reports are issed with id 2: > > > > Jun 9 18:42:10 mothra kernel: ums_intr: sc=0xc23a1800 status=0 > > > > Jun 9 18:42:10 mothra kernel: ums_intr: data = 02 00 fa > > > > > > > > So I added a bit of debugging to the id setting for-loop. It > > > > looks like the ID cycles thru the following values at attach() time: > > > > Jun 9 19:40:57 mothra kernel: hid_report_size: 00 -> 02 > > > > Jun 9 19:40:57 mothra kernel: hid_report_size: 02 -> 03 > > > > Jun 9 19:40:57 mothra kernel: hid_report_size: 03 -> 04 > > > > Jun 9 19:40:57 mothra kernel: hid_report_size: 04 -> 10 > > > > Jun 9 19:40:57 mothra kernel: hid_report_size: 10 -> 11 > > > > (numbers are hex here) > > > > > > > > With this, my current fix is simple: only set id if it's not > > > > set already: > > > > diff -u -r1.23 hid.c > > > > --- hid.c 24 Aug 2003 17:55:54 -0000 1.23 > > > > +++ hid.c 9 Jun 2004 18:34:23 -0000 > > > > @@ -374,9 +374,10 @@ > > > > int size, id; > > > > > > > > id = 0; > > > > + bzero (&h, sizeof (h)); > > > > for (d = hid_start_parse(buf, len, 1< > > > &h); ) - if (h.report_ID != 0) > > > > - id = h.report_ID; > > > > + if (h.report_ID != 0 && !id) > > > > + id = h.report_ID; > > > > hid_end_parse(d); > > > > size = h.loc.pos; > > > > if (id != 0) { > > > > > > I've attached at big patch that should fix the problem as well as a > > > bunch of updates from the NetBSD sources. This is a patch against > > > -CURRENT, so you may have to massage it a bit if you are on -STABLE. I > > > won't have an offending device to test for at least a week so let me > > > know of any problems. > > > > - M_ZERO is preferred to malloc() + memset(), so please don't make that > > change. > > - Lots of the changes add style bugs by adding spaces to the end of > > lines. Please remove any trailing whitespace from your files. > > > > Other than that the patch looks cool. > > Ok, I think the style changes are done and I've attached the updated patch. > I've got a question though, in style it says the enums should be in all > caps, but the previous code wasn't and the NetBSD import code wasn't. > Should I change it to what style says, or is it better to stay in sync with > NetBSD? Just keep it the way NetBSD has it. I also missed another minor nit (sorry!) in that you want to leave the earlier sys/cdefs.h and FBSDID() lines as that is a FreeBSD-specific change. Other than that it looks good. -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" = http://www.FreeBSD.org From owner-freebsd-hardware@FreeBSD.ORG Thu Jun 10 23:59:07 2004 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4BE7916A4CE for ; Thu, 10 Jun 2004 23:59:07 +0000 (GMT) Received: from skywalker.rogness.net (skywalker.rogness.net [64.251.173.102]) by mx1.FreeBSD.org (Postfix) with ESMTP id CDF4643D1D for ; Thu, 10 Jun 2004 23:59:06 +0000 (GMT) (envelope-from nick@rogness.net) Received: from skywalker.rogness.net (localhost.localdomain [127.0.0.1]) by skywalker.rogness.net (8.12.8/8.12.5) with ESMTP id i5ANrGne012924 for ; Thu, 10 Jun 2004 17:53:16 -0600 (envelope-from nick@rogness.net) Received: from localhost (nick@localhost)i5ANrG92012920 for ; Thu, 10 Jun 2004 17:53:16 -0600 X-Authentication-Warning: skywalker.rogness.net: nick owned process doing -bs Date: Thu, 10 Jun 2004 17:53:15 -0600 (MDT) From: Nick Rogness To: freebsd-hardware@freebsd.org Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Lilliput 7" touchscreen LCD X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Jun 2004 23:59:07 -0000 Does anyone know if there exists a driver for the Lilliput 7" touchscreen LCD for FreeBSD? Drivers exist for Linux, Mac, & Win. A link to the product: http://www.mp3car.com/store/product_info.php?products_id=33 People appear to be using a USB touchkit driver from eGalax, Inc: http://www.egalax.com.tw/Download.htm It is a usb device, so just wondering if anyone has anything written for this or could provide information where to find it. Thanks. -- Nick Rogness - How many people here have telekenetic powers? Raise my hand. -Emo Philips From owner-freebsd-hardware@FreeBSD.ORG Fri Jun 11 13:27:15 2004 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 13CF616A4CE for ; Fri, 11 Jun 2004 13:27:15 +0000 (GMT) Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by mx1.FreeBSD.org (Postfix) with SMTP id 8770C43D53 for ; Fri, 11 Jun 2004 13:27:14 +0000 (GMT) (envelope-from free.bsd@gmx.net) Received: (qmail 4734 invoked by uid 0); 11 Jun 2004 13:26:45 -0000 Received: from 141.20.195.229 by www8.gmx.net with HTTP; Fri, 11 Jun 2004 15:26:45 +0200 (MEST) Date: Fri, 11 Jun 2004 15:26:45 +0200 (MEST) From: "freebsd_daemon" To: freebsd-questions@freebsd.org, freebsd-hardware@freebsd.org MIME-Version: 1.0 X-Priority: 3 (Normal) X-Authenticated: #20105305 Message-ID: <1870.1086960405@www8.gmx.net> X-Mailer: WWW-Mail 1.6 (Global Message Exchange) X-Flags: 0001 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Subject: ServerWorks GC-SL and GC-LE X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Jun 2004 13:27:15 -0000 dear list, i would like to know if the ServerWorks GC-LE and GC-SL chipsets are supported under 4.10R. The hardware.txt doesn't list them and googling I found a problem report for 4.9. thanks in advance! zheyu -- "Sie haben neue Mails!" - Die GMX Toolbar informiert Sie beim Surfen! Jetzt aktivieren unter http://www.gmx.net/info From owner-freebsd-hardware@FreeBSD.ORG Fri Jun 11 18:28:26 2004 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6304016A4CE for ; Fri, 11 Jun 2004 18:28:26 +0000 (GMT) Received: from zibbi.icomtek.csir.co.za (zibbi.icomtek.csir.co.za [146.64.24.58]) by mx1.FreeBSD.org (Postfix) with ESMTP id 68B2443D45 for ; Fri, 11 Jun 2004 18:28:24 +0000 (GMT) (envelope-from jhay@zibbi.icomtek.csir.co.za) Received: from zibbi.icomtek.csir.co.za (localhost [127.0.0.1]) i5BIS9v4060619; Fri, 11 Jun 2004 20:28:09 +0200 (SAST) (envelope-from jhay@zibbi.icomtek.csir.co.za) Received: (from jhay@localhost)i5BIS5X0060610; Fri, 11 Jun 2004 20:28:05 +0200 (SAST) (envelope-from jhay) Date: Fri, 11 Jun 2004 20:28:05 +0200 From: John Hay To: Nick Rogness Message-ID: <20040611182805.GA60159@zibbi.icomtek.csir.co.za> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.1i cc: freebsd-hardware@freebsd.org Subject: Re: Lilliput 7" touchscreen LCD X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Jun 2004 18:28:26 -0000 On Thu, Jun 10, 2004 at 05:53:15PM -0600, Nick Rogness wrote: > > Does anyone know if there exists a driver for the Lilliput 7" touchscreen > LCD for FreeBSD? Drivers exist for Linux, Mac, & Win. > > A link to the product: > > http://www.mp3car.com/store/product_info.php?products_id=33 > > People appear to be using a USB touchkit driver from eGalax, Inc: > > http://www.egalax.com.tw/Download.htm > > It is a usb device, so just wondering if anyone has anything written for > this or could provide information where to find it. Interesting, I just bought one myself. :-) There is a NetBSD driver for it, uep(4). I had a quick look at it and one "issue" I have with it, is that they push the data into their wscons driver, so we will have to do something else there. I did thought of making the data available to the moused daemon, but I'm not sure if that is doable because mice normally work in relative values, while the touch screen work with absolute values. I see that their Linux drivers ship with source, so maybe one can use their X driver and make our kernel driver such that the two can work together? Anyway I'm open to ideas on how to proceed. John -- John Hay -- John.Hay@icomtek.csir.co.za / jhay@FreeBSD.org From owner-freebsd-hardware@FreeBSD.ORG Fri Jun 11 20:44:21 2004 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A810E16A4CE for ; Fri, 11 Jun 2004 20:44:21 +0000 (GMT) Received: from skywalker.rogness.net (skywalker.rogness.net [64.251.173.102]) by mx1.FreeBSD.org (Postfix) with ESMTP id 49D9D43D53 for ; Fri, 11 Jun 2004 20:44:21 +0000 (GMT) (envelope-from nick@rogness.net) Received: from skywalker.rogness.net (localhost.localdomain [127.0.0.1]) by skywalker.rogness.net (8.12.8/8.12.5) with ESMTP id i5BKhJcC001600; Fri, 11 Jun 2004 14:43:19 -0600 (envelope-from nick@rogness.net) Received: from localhost (nick@localhost)i5BKhJSX001596; Fri, 11 Jun 2004 14:43:19 -0600 X-Authentication-Warning: skywalker.rogness.net: nick owned process doing -bs Date: Fri, 11 Jun 2004 14:43:19 -0600 (MDT) From: Nick Rogness To: John Hay In-Reply-To: <20040611182805.GA60159@zibbi.icomtek.csir.co.za> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-hardware@freebsd.org Subject: Re: Lilliput 7" touchscreen LCD X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Jun 2004 20:44:21 -0000 On Fri, 11 Jun 2004, John Hay wrote: > On Thu, Jun 10, 2004 at 05:53:15PM -0600, Nick Rogness wrote: > > > > Does anyone know if there exists a driver for the Lilliput 7" touchscreen > > LCD for FreeBSD? Drivers exist for Linux, Mac, & Win. > > > > A link to the product: > > > > http://www.mp3car.com/store/product_info.php?products_id=33 > > > > People appear to be using a USB touchkit driver from eGalax, Inc: > > > > http://www.egalax.com.tw/Download.htm > > > > It is a usb device, so just wondering if anyone has anything written for > > this or could provide information where to find it. > > Interesting, I just bought one myself. :-) There is a NetBSD driver for > it, uep(4). I had a quick look at it and one "issue" I have with it, is > that they push the data into their wscons driver, so we will have to do > something else there. I did thought of making the data available to the > moused daemon, but I'm not sure if that is doable because mice normally > work in relative values, while the touch screen work with absolute > values. > > I see that their Linux drivers ship with source, so maybe one can use > their X driver and make our kernel driver such that the two can work > together? That would be ideal. I have the source for the Linux driver available (which includes the x86driver, Linux usb driver, and userland apps) at: http://www.rapidnet.com/~nick/lilliput/touchkit.tgz I REALLY want to get a usb driver written for this thing. Too bad I know jack squat about the usb stack in FreeBSD. I guess it's time to do some serious learning. Any pointers would be helpful. I could use some help if you or anyone is interested and doesn't mind answering stupid questions. -- Nick Rogness - How many people here have telekenetic powers? Raise my hand. -Emo Philips From owner-freebsd-hardware@FreeBSD.ORG Fri Jun 11 21:03:05 2004 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8DCB816A4CE; Fri, 11 Jun 2004 21:03:05 +0000 (GMT) Received: from crumpet.united-ware.com (ddsl-66-42-172-210.fuse.net [66.42.172.210]) by mx1.FreeBSD.org (Postfix) with ESMTP id C4B6143D45; Fri, 11 Jun 2004 21:03:04 +0000 (GMT) (envelope-from mistry.7@osu.edu) Received: from [192.168.0.6] (adsl-64-109-102-183.dsl.wotnoh.ameritech.net [64.109.102.183]) (authenticated bits=0)i5BKu8Qr061690 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO); Fri, 11 Jun 2004 16:56:10 -0400 (EDT) (envelope-from mistry.7@osu.edu) From: Anish Mistry To: freebsd-hardware@freebsd.org Date: Fri, 11 Jun 2004 17:03:05 -0400 User-Agent: KMail/1.6.2 References: <200406091838.i59Icugc063061@smsgw.vianetworks.ch> <200406101215.24347.mistry.7@osu.edu> <200406101318.24419.jhb@FreeBSD.org> In-Reply-To: <200406101318.24419.jhb@FreeBSD.org> MIME-Version: 1.0 Content-Disposition: inline Content-Type: Multipart/Mixed; boundary="Boundary-00=_J4hyAtqhgAiHEVq" Message-Id: <200406111703.14772.mistry.7@osu.edu> X-Spam-Status: No, hits=-5.4 required=5.0 tests=EMAIL_ATTRIBUTION,IN_REP_TO,PATCH_UNIFIED_DIFF, PGP_SIGNATURE,QUOTED_EMAIL_TEXT,RCVD_IN_ORBS,REFERENCES, REPLY_WITH_QUOTES,USER_AGENT_KMAIL version=2.55 X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp) cc: Markus Wild Subject: Re: Fix for Logitech DiNovo cordless mouse [PATCH] X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Jun 2004 21:03:05 -0000 --Boundary-00=_J4hyAtqhgAiHEVq Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline =2D----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Thursday 10 June 2004 01:18 pm, John Baldwin wrote: > On Thursday 10 June 2004 12:15 pm, Anish Mistry wrote: > > On Thursday 10 June 2004 11:22 am, John Baldwin wrote: > > > On Wednesday 09 June 2004 08:16 pm, Anish Mistry wrote: > > > > On Wednesday 09 June 2004 02:38 pm, Markus Wild wrote: > > > > > Since yesterday I'm a happy owner of a Logitech dinovo > > > > > cordless USB keyboard/mouse. The keyboard works fine, however > > > > > the mouse didn't move a bit. I saw that other people had similar > > > > > "luck", so I enabled a bit of debugging. This is with > > > > > FreeBSD-current, btw. > > > > > > > > > > The result of the quest was: the hid.c:hid_report_size() function > > > > > returns a bogus iid value: > > > > > > > > > > Jun 9 19:37:06 mothra kernel: ums0: Logitech USB Receiver, rev > > > > > 1.10/24.04, addr 3, iclass 3/1 > > > > > Jun 9 19:37:06 mothra kernel: ums_attach: bLength=3D7 > > > > > bDescriptorType=3D5 bEndpoint Address=3D2-in bmAttributes=3D3 > > > > > wMaxPacketSize=3D8 bInterval=3D10 Jun 9 19:37:06 mothra kernel: = ums0: > > > > > 7 buttons and Z dir. > > > > > Jun 9 19:37:06 mothra kernel: ums_attach: sc=3D0xc23a1800 > > > > > Jun 9 19:37:06 mothra kernel: ums_attach: X 8/12 > > > > > Jun 9 19:37:06 mothra kernel: ums_attach: Y 20/12 > > > > > Jun 9 19:37:06 mothra kernel: ums_attach: Z 32/8 > > > > > Jun 9 19:37:06 mothra kernel: ums_attach: B1 0/1 > > > > > Jun 9 19:37:06 mothra kernel: ums_attach: B2 1/1 > > > > > Jun 9 19:37:06 mothra kernel: ums_attach: B3 2/1 > > > > > Jun 9 19:37:06 mothra kernel: ums_attach: B4 3/1 > > > > > Jun 9 19:37:06 mothra kernel: ums_attach: B5 4/1 > > > > > Jun 9 19:37:06 mothra kernel: ums_attach: B6 5/1 > > > > > Jun 9 19:37:06 mothra kernel: ums_attach: B7 6/1 > > > > > Jun 9 19:37:06 mothra kernel: ums_attach: size=3D36, id=3D17 > > > > > > > > > > Since actual interrupt reports are issed with id 2: > > > > > Jun 9 18:42:10 mothra kernel: ums_intr: sc=3D0xc23a1800 status= =3D0 > > > > > Jun 9 18:42:10 mothra kernel: ums_intr: data =3D 02 00 fa > > > > > > > > > > So I added a bit of debugging to the id setting for-loop. It > > > > > looks like the ID cycles thru the following values at attach() > > > > > time: Jun 9 19:40:57 mothra kernel: hid_report_size: 00 -> 02 > > > > > Jun 9 19:40:57 mothra kernel: hid_report_size: 02 -> 03 > > > > > Jun 9 19:40:57 mothra kernel: hid_report_size: 03 -> 04 > > > > > Jun 9 19:40:57 mothra kernel: hid_report_size: 04 -> 10 > > > > > Jun 9 19:40:57 mothra kernel: hid_report_size: 10 -> 11 > > > > > (numbers are hex here) > > > > > > > > > > With this, my current fix is simple: only set id if it's not > > > > > set already: > > > > > diff -u -r1.23 hid.c > > > > > --- hid.c 24 Aug 2003 17:55:54 -0000 1.23 > > > > > +++ hid.c 9 Jun 2004 18:34:23 -0000 > > > > > @@ -374,9 +374,10 @@ > > > > > int size, id; > > > > > > > > > > id =3D 0; > > > > > + bzero (&h, sizeof (h)); > > > > > for (d =3D hid_start_parse(buf, len, 1< > > > > &h); ) - if (h.report_ID !=3D 0) > > > > > - id =3D h.report_ID; > > > > > + if (h.report_ID !=3D 0 && !id) > > > > > + id =3D h.report_ID; > > > > > hid_end_parse(d); > > > > > size =3D h.loc.pos; > > > > > if (id !=3D 0) { > > > > > > > > I've attached at big patch that should fix the problem as well as a > > > > bunch of updates from the NetBSD sources. This is a patch against > > > > -CURRENT, so you may have to massage it a bit if you are on -STABLE= =2E=20 > > > > I won't have an offending device to test for at least a week so let > > > > me know of any problems. > > > > > > - M_ZERO is preferred to malloc() + memset(), so please don't make th= at > > > change. > > > - Lots of the changes add style bugs by adding spaces to the end of > > > lines. Please remove any trailing whitespace from your files. > > > > > > Other than that the patch looks cool. > > > > Ok, I think the style changes are done and I've attached the updated > > patch. I've got a question though, in style it says the enums should be > > in all caps, but the previous code wasn't and the NetBSD import code > > wasn't. Should I change it to what style says, or is it better to stay = in > > sync with NetBSD? > > Just keep it the way NetBSD has it. I also missed another minor nit > (sorry!) in that you want to leave the earlier sys/cdefs.h and FBSDID() > lines as that is a FreeBSD-specific change. Other than that it looks goo= d. It should be fixed now. I'm going to file a PR if you say it is fine. =2D --=20 Anish Mistry =2D----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFAyh4RxqA5ziudZT0RAhUvAJ9gtKiiKF2j8mc8t1gmI7dKpTcA1QCgjxA5 =46MyZgqeQkxBLCudtxRCZdS8=3D =3DD+G/ =2D----END PGP SIGNATURE----- --Boundary-00=_J4hyAtqhgAiHEVq Content-Type: text/x-diff; charset="iso-8859-1"; name="hid-updates3.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="hid-updates3.patch" diff -ruN sys/dev/usb.orig/hid.c sys/dev/usb/hid.c --- sys/dev/usb.orig/hid.c Wed Jun 9 20:10:55 2004 +++ sys/dev/usb/hid.c Thu Jun 10 16:03:03 2004 @@ -1,5 +1,5 @@ -/* $NetBSD: hid.c,v 1.17 2001/11/13 06:24:53 lukem Exp $ */ - +/* $NetBSD: hid.c,v 1.21 2002/01/02 11:10:50 augustss Exp $ */ +/* $FreeBSD: src/sys/dev/usb/usbhid.h,v 1.13 2002/01/02 20:16:53 joe Exp $ */ #include __FBSDID("$FreeBSD: src/sys/dev/usb/hid.c,v 1.23 2003/08/24 17:55:54 obrien Exp $"); @@ -52,10 +52,10 @@ #include -#ifdef USB_DEBUG -#define DPRINTF(x) if (usbdebug) logprintf x -#define DPRINTFN(n,x) if (usbdebug>(n)) logprintf x -extern int usbdebug; +#ifdef UHIDEV_DEBUG +#define DPRINTF(x) if (uhidevdebug) logprintf x +#define DPRINTFN(n,x) if (uhidevdebug>(n)) logprintf x +extern int uhidevdebug; #else #define DPRINTF(x) #define DPRINTFN(n,x) @@ -63,7 +63,7 @@ Static void hid_clear_local(struct hid_item *); -#define MAXUSAGE 100 +#define MAXUSAGE 256 struct hid_data { u_char *start; u_char *end; @@ -74,13 +74,14 @@ int minset; int multi; int multimax; - int kindset; + enum hid_kind kind; }; Static void hid_clear_local(struct hid_item *c) { + DPRINTFN(5,("hid_clear_local\n")); c->usage = 0; c->usage_minimum = 0; c->usage_maximum = 0; @@ -94,14 +95,14 @@ } struct hid_data * -hid_start_parse(void *d, int len, int kindset) +hid_start_parse(void *d, int len, enum hid_kind kind) { struct hid_data *s; s = malloc(sizeof *s, M_TEMP, M_WAITOK|M_ZERO); s->start = s->p = d; s->end = (char *)d + len; - s->kindset = kindset; + s->kind = kind; return (s); } @@ -128,15 +129,19 @@ u_char *p; struct hid_item *hi; int i; + enum hid_kind retkind; top: + DPRINTFN(5,("hid_get_item: multi=%d multimax=%d\n", + s->multi, s->multimax)); if (s->multimax != 0) { if (s->multi < s->multimax) { c->usage = s->usages[min(s->multi, s->nu-1)]; s->multi++; *h = *c; c->loc.pos += c->loc.size; - h->next = 0; + h->next = NULL; + DPRINTFN(5,("return multi\n")); return (1); } else { c->loc.count = s->multimax; @@ -174,12 +179,12 @@ dval = 0; break; case 1: - dval = (int8_t)*data++; + dval = /*(int8_t)*/ *data++; break; case 2: dval = *data++; dval |= *data++ << 8; - dval = (int16_t)dval; + dval = /*(int16_t)*/ dval; break; case 4: dval = *data++; @@ -191,16 +196,23 @@ printf("BAD LENGTH %d\n", bSize); continue; } - + + DPRINTFN(5,("hid_get_item: bType=%d bTag=%d dval=%d\n", + bType, bTag, dval)); switch (bType) { case 0: /* Main */ switch (bTag) { case 8: /* Input */ - if (!(s->kindset & (1 << hid_input))) + retkind = hid_input; + ret: + if (s->kind != retkind) { + s->minset = 0; + s->nu = 0; + hid_clear_local(c); continue; - c->kind = hid_input; + } + c->kind = retkind; c->flags = dval; - ret: if (c->flags & HIO_VARIABLE) { s->multimax = c->loc.count; s->multi = 0; @@ -217,19 +229,18 @@ } goto top; } else { + c->usage = c->_usage_page; /* XXX */ *h = *c; - h->next = 0; + h->next = NULL; c->loc.pos += - c->loc.size * c->loc.count; - hid_clear_local(c); + c->loc.size * c->loc.count; s->minset = 0; + s->nu = 0; + hid_clear_local(c); return (1); } case 9: /* Output */ - if (!(s->kindset & (1 << hid_output))) - continue; - c->kind = hid_output; - c->flags = dval; + retkind = hid_output; goto ret; case 10: /* Collection */ c->kind = hid_collection; @@ -240,16 +251,12 @@ s->nu = 0; return (1); case 11: /* Feature */ - if (!(s->kindset & (1 << hid_feature))) - continue; - c->kind = hid_feature; - c->flags = dval; + retkind = hid_feature; goto ret; case 12: /* End collection */ c->kind = hid_endcollection; c->collevel--; *h = *c; - hid_clear_local(c); s->nu = 0; return (1); default: @@ -285,6 +292,7 @@ break; case 8: c->report_ID = dval; + c->loc.pos = 0; break; case 9: c->loc.count = dval; @@ -367,35 +375,51 @@ } int -hid_report_size(void *buf, int len, enum hid_kind k, u_int8_t *idp) +hid_report_size(void *buf, int len, enum hid_kind k, u_int8_t id) { struct hid_data *d; struct hid_item h; - int size, id; + int lo, hi; - id = 0; - for (d = hid_start_parse(buf, len, 1<sc_isize = hid_report_size(desc, size, hid_input, &sc->sc_iid); - sc->sc_osize = hid_report_size(desc, size, hid_output, &sc->sc_oid); - sc->sc_fsize = hid_report_size(desc, size, hid_feature, &sc->sc_fid); + sc->sc_isize = hid_report_size(desc, size, hid_input, sc->sc_iid); + sc->sc_osize = hid_report_size(desc, size, hid_output, sc->sc_oid); + sc->sc_fsize = hid_report_size(desc, size, hid_feature, sc->sc_fid); sc->sc_repdesc = desc; sc->sc_repdesc_size = size; diff -ruN sys/dev/usb.orig/usbhid.h sys/dev/usb/usbhid.h --- sys/dev/usb.orig/usbhid.h Wed Jun 9 20:10:53 2004 +++ sys/dev/usb/usbhid.h Wed Jun 9 20:07:13 2004 @@ -1,4 +1,4 @@ -/* $NetBSD: usbhid.h,v 1.9 2000/09/03 19:09:14 augustss Exp $ */ +/* $NetBSD: usbhid.h,v 1.9.4.1 2002/01/10 19:59:11 thorpej Exp $ */ /* $FreeBSD: src/sys/dev/usb/usbhid.h,v 1.13 2002/01/02 20:16:53 joe Exp $ */ /* @@ -164,11 +164,24 @@ #define HUD_ERASER 0x0045 #define HUD_TABLET_PICK 0x0046 -#define HID_USAGE2(p,u) (((p) << 16) | u) +/* Usages LEDs */ +#define HUD_LED_NUM_LOCK 0x0001 +#define HUD_LED_CAPS_LOCK 0x0002 +#define HUD_LED_SCROLL_LOCK 0x0003 +#define HUD_LED_COMPOSE 0x0004 +#define HUD_LED_KANA 0x0005 + +#define HID_USAGE2(p, u) (((p) << 16) | u) +#define HID_GET_USAGE(u) ((u) & 0xffff) +#define HID_GET_USAGE_PAGE(u) (((u) >> 16) & 0xffff) #define UHID_INPUT_REPORT 0x01 #define UHID_OUTPUT_REPORT 0x02 #define UHID_FEATURE_REPORT 0x03 + +#define HCOLL_PHYSICAL 0 +#define HCOLL_APPLICATION 1 +#define HCOLL_LOGICAL 2 /* Bits in the input/output/feature items */ #define HIO_CONST 0x001 --Boundary-00=_J4hyAtqhgAiHEVq-- From owner-freebsd-hardware@FreeBSD.ORG Sat Jun 12 00:05:41 2004 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 91B4016A4CE for ; Sat, 12 Jun 2004 00:05:41 +0000 (GMT) Received: from cnst.dyns.net (user158.net1158.nc.sprint-hsd.net [69.68.67.158]) by mx1.FreeBSD.org (Postfix) with ESMTP id AE99343D1F for ; Sat, 12 Jun 2004 00:05:40 +0000 (GMT) (envelope-from cnst@rbcmail.ru) Received: from rbcmail.ru (Dell_Inspiron_8100 [192.168.0.1]) by cnst.dyns.net (8.12.8p1/8.12.8) with ESMTP id i5C04fYa000469; Fri, 11 Jun 2004 20:04:42 -0400 (EDT) (envelope-from cnst@rbcmail.ru) Message-ID: <40CA4896.9090400@rbcmail.ru> Date: Fri, 11 Jun 2004 20:04:38 -0400 From: Constantine User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.6) Gecko/20040113 X-Accept-Language: en-gb, ru, en-us, en MIME-Version: 1.0 To: freebsd-hardware@freebsd.org Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: LCD monitors / ADD Cards / Motherboards with DVI-D interface --Support in *BSD X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Jun 2004 00:05:41 -0000 Hello, I have a FreeBSD system running on AOpen AX4G-N motherboard with Intel 845G(+ICH4) chipset. I don't yet have any monitor on the system and I have very little experience with configuring and running X on UNIX systems, and I have never configured X with LCD monitors. I'm considering buying an LCD monitor, presumably IBM L170p. I am still looking for the hardware with the DVI support. I found that probably what I want is the ADD Card (AGP Digital Display Card), but I have problems locating resellers for that card, so any help is welcome (one example of such card is here: ). I reside in the United States. What problems am I likely to experience with the configuration of the graphics card and LCD monitor in FreeBSD and/or OpenBSD? I'd really like to have a clear, crisp picture on the new system, no matter if I am going to use it as a console or a GUI system. If you have any advices or good links, let me know. Thank you, Constantine. :-) From owner-freebsd-hardware@FreeBSD.ORG Sat Jun 12 12:46:50 2004 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 26A7D16A4CE; Sat, 12 Jun 2004 12:46:50 +0000 (GMT) Received: from smsgw.vianetworks.ch (smsgw.vianetworks.ch [146.228.10.65]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6A7E843D46; Sat, 12 Jun 2004 12:46:49 +0000 (GMT) (envelope-from mw@smsgw.vianetworks.ch) Received: from smsgw.vianetworks.ch (localhost.kpnqwest.ch [127.0.0.1]) by smsgw.vianetworks.ch (8.12.10/8.12.6) with ESMTP id i5CCjThm011660; Sat, 12 Jun 2004 14:45:29 +0200 (CEST) (envelope-from mw@smsgw.vianetworks.ch) Received: (from mw@localhost) by smsgw.vianetworks.ch (8.12.10/8.12.6/Submit) id i5CCjTOZ011659; Sat, 12 Jun 2004 14:45:29 +0200 (CEST) Message-Id: <200406121245.i5CCjTOZ011659@smsgw.vianetworks.ch> In-Reply-To: <200406111703.14772.mistry.7@osu.edu> To: Anish Mistry Date: Sat, 12 Jun 2004 14:45:28 +0200 (CEST) Sender: mw@smsgw.vianetworks.ch From: Markus Wild X-NCC-RegID: ch.vianetworks X-Mailer: ELM [version 2.4ME+ PL99b (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII cc: Markus Wild cc: freebsd-hardware@freebsd.org Subject: Re: Fix for Logitech DiNovo cordless mouse [PATCH] X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Jun 2004 12:46:50 -0000 Hm, I had a look through the patched files, and one thing that sprung to my eyes: the FreeBSD hid_report_size(() function is currently used to both return the size of a report, as well as setting the device report ID (the ID parameter is of type "out"). This ID is later used to match incoming reports to the device. With the suggested changes, this parameter changes to being of type "in", i.e. the function no longer returns the ID information to the calling function. This would certainly generate a compile time warning (if not error) for ums.c, and while uhid.c has been syntactically changed, I now see no place where sc->sc_iid, sc->sc_oid, sc->sc_fid would be initialized after applying the change. I assume the NetBSD code in itself is sound, so perhaps we're just missing additional files now that would also need to be changed for FreeBSD? Cheers, Markus From owner-freebsd-hardware@FreeBSD.ORG Sat Jun 12 18:16:09 2004 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E9CA316A4CE; Sat, 12 Jun 2004 18:16:09 +0000 (GMT) Received: from crumpet.united-ware.com (ddsl-66-42-172-210.fuse.net [66.42.172.210]) by mx1.FreeBSD.org (Postfix) with ESMTP id 35A3C43D39; Sat, 12 Jun 2004 18:16:09 +0000 (GMT) (envelope-from mistry.7@osu.edu) Received: from [192.168.0.6] (adsl-64-109-102-183.dsl.wotnoh.ameritech.net [64.109.102.183]) (authenticated bits=0)i5CI8nQr044533 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO); Sat, 12 Jun 2004 14:08:51 -0400 (EDT) (envelope-from mistry.7@osu.edu) From: Anish Mistry To: freebsd-hardware@freebsd.org Date: Sat, 12 Jun 2004 14:15:59 -0400 User-Agent: KMail/1.6.2 References: <200406121245.i5CCjTOZ011659@smsgw.vianetworks.ch> In-Reply-To: <200406121245.i5CCjTOZ011659@smsgw.vianetworks.ch> MIME-Version: 1.0 Content-Disposition: inline Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Message-Id: <200406121416.07647.mistry.7@osu.edu> X-Spam-Status: No, hits=-4.9 required=5.0 tests=EMAIL_ATTRIBUTION,IN_REP_TO,PGP_SIGNATURE, QUOTED_EMAIL_TEXT,RCVD_IN_ORBS,REFERENCES, REPLY_WITH_QUOTES,USER_AGENT_KMAIL version=2.55 X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp) cc: Markus Wild Subject: Re: Fix for Logitech DiNovo cordless mouse [PATCH] X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Jun 2004 18:16:10 -0000 =2D----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Saturday 12 June 2004 08:45 am, Markus Wild wrote: > Hm, I had a look through the patched files, and one thing that sprung > to my eyes: the FreeBSD hid_report_size(() function is currently used > to both return the size of a report, as well as setting the device > report ID (the ID parameter is of type "out"). This ID is later used > to match incoming reports to the device. With the suggested > changes, this parameter changes to being of type "in", i.e. the > function no longer returns the ID information to the calling function. > This would certainly generate a compile time warning (if not error) > for ums.c, and while uhid.c has been syntactically changed, I now see > no place where sc->sc_iid, sc->sc_oid, sc->sc_fid would be initialized > after applying the change. I assume the NetBSD code in itself is sound, > so perhaps we're just missing additional files now that would also need > to be changed for FreeBSD? > You're right, I missed a couple files. This is starting to turn a bit messy= ,=20 but it'll be better to sync it up now rather than later. I'm going to try = to=20 get a better patch this weekend. =2D --=20 Anish Mistry =2D----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFAy0hmxqA5ziudZT0RAikEAJoDzFMcgyXtiZ3xWiSepVVgJzFiegCgqgsr JoH9RSdTshG5Z5F18HS3w2Y=3D =3DZGKF =2D----END PGP SIGNATURE-----