PERFORCE change 164434 for review
Sylvestre Gallon
syl at FreeBSD.org
Mon Jun 15 17:22:42 UTC 2009
http://perforce.freebsd.org/chv.cgi?CH=164434
Change 164434 by syl at syl_atuin on 2009/06/15 17:21:57
- fix libusb20_tr_get_pointer following Hans Petter Advices.
- Update debug.
Affected files ...
.. //depot/projects/soc2009/syl_usb/src/lib/libusb/libusb.h#11 edit
.. //depot/projects/soc2009/syl_usb/src/lib/libusb/libusb10.c#35 edit
.. //depot/projects/soc2009/syl_usb/src/lib/libusb/libusb10.h#7 edit
Differences ...
==== //depot/projects/soc2009/syl_usb/src/lib/libusb/libusb.h#11 (text+ko) ====
@@ -177,6 +177,7 @@
};
enum libusb_debug_level {
+ LIBUSB_DEBUG_NO=0,
LIBUSB_DEBUG_FUNCTION=1,
};
==== //depot/projects/soc2009/syl_usb/src/lib/libusb/libusb10.c#35 (text+ko) ====
@@ -1036,9 +1036,9 @@
pthread_mutex_unlock(&ctx->flying_transfers_lock);
usb20_xfer[0] = libusb20_tr_get_pointer(pdev,
- (4 * xfer->endpoint) | (xfer->endpoint / 0x40));
+ ((xfer->endpoint / 0x40) | (xfer->endpoint * 4)) % (16 * 4));
usb20_xfer[1] = libusb20_tr_get_pointer(pdev,
- ((4 * xfer->endpoint) | (xfer->endpoint / 0x40)) + 1);
+ (((xfer->endpoint / 0x40) | (xfer->endpoint * 4)) % (16 * 4)) + 1);
if (usb20_xfer[0] == NULL)
return (LIBUSB_ERROR_OTHER);
==== //depot/projects/soc2009/syl_usb/src/lib/libusb/libusb10.h#7 (text+ko) ====
@@ -87,6 +87,8 @@
dprintf(libusb_context *ctx, int debug, char *str)
{
switch (ctx->debug) {
+ case LIBUSB_DEBUG_NO:
+ break ;
case LIBUSB_DEBUG_FUNCTION:
printf("LIBUSB FUNCTION : %s\n", str);
break ;
More information about the p4-projects
mailing list