From owner-freebsd-hackers@FreeBSD.ORG Tue Nov 30 17:10:26 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B5D1216A4CE for ; Tue, 30 Nov 2004 17:10:26 +0000 (GMT) Received: from mailfe01.swip.net (mailfe01.swip.net [212.247.154.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id 23D4243D45 for ; Tue, 30 Nov 2004 17:10:25 +0000 (GMT) (envelope-from hselasky@c2i.net) X-T2-Posting-ID: Y1QAsIk9O44SO+J/q9KNyQ== Received: from [193.216.47.149] (HELO curly.tele2.no) by mailfe01.swip.net (CommuniGate Pro SMTP 4.2.6) with ESMTP id 228228722; Tue, 30 Nov 2004 18:10:23 +0100 Received: (from root@localhost) by curly.tele2.no (8.12.5/8.12.3) id iAUHG5fi001397; Tue, 30 Nov 2004 18:16:05 +0100 (CET) (envelope-from hselasky@c2i.net) Date: Tue, 30 Nov 2004 18:16:03 +0100 From: Hans Petter Selasky To: Barry Bouwsma Message-ID: <20041130181603.A1352@curly.tele2.no> References: <200410201612.i9KGClg05229@Mail.NOSPAM.DynDNS.dK> <200411301310.iAUDAJl01186@Mail.NOSPAM.DynDNS.dK> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200411301310.iAUDAJl01186@Mail.NOSPAM.DynDNS.dK>; Nov 30, 2004 at 02:10:19PM +0100 cc: freebsd-hackers@freebsd.org Subject: Re: USB OHCI problems... X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Nov 2004 17:10:26 -0000 Hi, I've got a new USB driver (with OHCI isoc fixed). You need FreeBSD 5.2/5.3 to get it compiled. You might be able to get it compiled on FreeBSD 4.x, but you will need to to some hacking. For example you need to add to dev/usb2/usb_port.h : #ifndef MTX #define MTX struct mtx { int s; u_int8_t locked; u_int8_t mtx_recurse; } #define mtx_init(args...) #define mtx_lock(mtx) { (mtx)->s = splnet(); if((mtx)->locked) { (mtx)->mtx_recurse++; } else { (mtx)->locked = 1; } } #define mtx_unlock(mtx) { splx((mtx)->s); if((mtx)->mtx_recurse) { (mtx)->mtx_recurse--; } else { (mtx)->locked = 0; } } int msleep(void *ident, struct mtx *mtx, int priority, const char *wmesg, int timo); #endif and to dev/usb2/_usb.c: int msleep(void *ident, struct mtx *mtx, int priority, const char *wmesg, int timo) { tsleep(ident,priority,wmesg,timo); } Create a new directory and download the following files and type "make install" (to uninstall type "make deinstall") http://home.c2i.net/hselasky/isdn4bsd/privat/usb/Makefile http://home.c2i.net/hselasky/isdn4bsd/privat/usb/new_usb_1_5_4.diff.bz2 http://home.c2i.net/hselasky/isdn4bsd/privat/usb/new_usb_1_5_4.tar.bz2 Maybe this thread should be moved to freebsd-usb@FreeBSD.org ? Yours -HPS