Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 Nov 2004 18:16:03 +0100
From:      Hans Petter Selasky <hselasky@c2i.net>
To:        Barry Bouwsma <freebsd-misuser@remove-NOSPAM-to-reply.NOSPAM.dyndns.dk>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: USB OHCI problems...
Message-ID:  <20041130181603.A1352@curly.tele2.no>
In-Reply-To: <200411301310.iAUDAJl01186@Mail.NOSPAM.DynDNS.dK>; Nov 30, 2004 at 02:10:19PM %2B0100
References:  <200410201612.i9KGClg05229@Mail.NOSPAM.DynDNS.dK> <200411301310.iAUDAJl01186@Mail.NOSPAM.DynDNS.dK>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20041130181603.A1352>