USB OHCI problems...
Hans Petter Selasky
hselasky at c2i.net
Tue Nov 30 09:10:26 PST 2004
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 at FreeBSD.org ?
Yours
-HPS
More information about the freebsd-hackers
mailing list