Greetings,
Just to confirm that with the following patches (attached) usb4bsd
rev566 compiles and works on FreeBSD7-RC1 :)
I'll try to come with something better soon for the usb_transfer.c , if
nobody else do this.
--
Best Wishes,
Stefan Lambrev
ICQ# 24134177
--- i4b/trunk/i4b/src/sys/dev/usb/usb_port.h 2008-01-15 19:47:11.000000000 +0200
+++ 566/i4b/trunk/i4b/src/sys/dev/usb/usb_port.h 2008-01-15 15:31:45.000000000 +0200
@@ -194,10 +194,14 @@
#include "opt_usb.h"
-#if (__FreeBSD_version >= 700000)
+#if (__FreeBSD_version >= 800000)
#define usb_thread_create(f, s, p, ...) \
kproc_create((f), (s), (p), RFHIGHPID, 0, __VA_ARGS__)
#define usb_thread_exit(err) kproc_exit(err)
+#elif ((__FreeBSD_version >= 700000) && (__FreeBSD_version < 800000))
+#define usb_thread_create(f, s, p, ...) \
+ kthread_create((f), (s), (p), RFHIGHPID, 0, __VA_ARGS__)
+#define usb_thread_exit(err) kthread_exit(err)
#else
#define usb_thread_create(f, s, p, ...) \
kthread_create((f), (s), (p), RFHIGHPID, 0, __VA_ARGS__)
--- i4b/trunk/i4b/src/sys/dev/usb/usb_transfer.c 2008-01-15 19:47:11.000000000 +0200
+++ 566/i4b/trunk/i4b/src/sys/dev/usb/usb_transfer.c 2008-01-15 19:56:52.000000000 +0200
@@ -2107,6 +2107,8 @@
* The order of the callbacks should not be important.
* Optimize by doing 4 callbacks at a time.
*/
+ xfer[2] = NULL;
+ xfer[3] = NULL;
repeat:
xfer[0] = LIST_FIRST(&(info->done_head));
if (xfer[0]) {
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to "[EMAIL PROTECTED]"