Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Jan 2008 20:30:19 +0200
From:      Stefan Lambrev <stefan.lambrev@moneybookers.com>
To:        freebsd-usb@freebsd.org
Subject:   [SOLVED] Re: Problem with usb4bsd rev566
Message-ID:  <478CFBBB.20905@moneybookers.com>
In-Reply-To: <478CE165.7060001@moneybookers.com>
References:  <477BC1A3.5080406@moneybookers.com> <200801021837.51376.hselasky@c2i.net> <477CD474.6080302@moneybookers.com> <200801032154.32107.hselasky@c2i.net> <478BE02A.7050100@moneybookers.com> <478CBCDB.6090203@moneybookers.com> <478CE165.7060001@moneybookers.com>

next in thread | previous in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.
--------------070003010307090700090902
Content-Type: text/plain; charset=windows-1251; format=flowed
Content-Transfer-Encoding: 7bit

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


--------------070003010307090700090902
Content-Type: text/x-patch;
 name="usb_port.h.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="usb_port.h.diff"

--- 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__)

--------------070003010307090700090902
Content-Type: text/x-patch;
 name="usb_transfer.c.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="usb_transfer.c.diff"

--- 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]) {

--------------070003010307090700090902--



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