From owner-freebsd-questions@FreeBSD.ORG Wed Mar 26 07:04:09 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8C32137B404 for ; Wed, 26 Mar 2003 07:04:09 -0800 (PST) Received: from big.perpels.com (217-126-9-95.uc.nombres.ttd.es [217.126.9.95]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5544343FB1 for ; Wed, 26 Mar 2003 07:04:07 -0800 (PST) (envelope-from drio@perpels.com) Received: by big.perpels.com (Postfix, from userid 1000) id D99DC53CF; Wed, 26 Mar 2003 16:04:05 +0100 (CET) Date: Wed, 26 Mar 2003 16:04:05 +0100 From: David Rio To: freebsd-questions@freebsd.org Message-ID: <20030326150405.GB69566@big.perpels.com> References: <20030326103728.GA29001@big.perpels.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.1i X-Spam-Status: No, hits=-24.7 required=5.0 tests=AWL,IN_REP_TO,REFERENCES,USER_AGENT_MUTT autolearn=ham version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) Subject: Re: usb device driver skeleton? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Mar 2003 15:04:12 -0000 > May I ask what USB device you are writing for, as I am looking at developing > a USB interface for UPS support so NUT can use my UPS (ATM I can only use it > under Linux ikkies)So we may be able to share knowledge and reach both our > goals faster. It would be great. We can talk about it by email. Regarding to my USB device, it is a mp3 player based on compact flash. I would like to create a char device driver to implement the classical read/write/open/close/ioctl syscalls. I am still reading and searching for information to create the driver but I think that there is a lack of information about this topic. What do you think about? If we make the driver, it would be interesting to create some docs for other BSD device driver writers... > BTW is there a USB team in FreeBSD ? I have been talking with Nick Hibma, he has a USB-freebsd homepage, in fact there is a mailing list. He told me that there is no doc/paper that explain the structs/macros to develope usb drivers. We will have to read code from other drivers which will be more complicated but that is the only solution...