diff options
author | hselasky <hselasky@FreeBSD.org> | 2010-10-14 20:38:18 +0000 |
---|---|---|
committer | hselasky <hselasky@FreeBSD.org> | 2010-10-14 20:38:18 +0000 |
commit | 1c90ef127420e8aa353a34eb7fcf3d20ec303c46 (patch) | |
tree | d4dbe756b857cc1d5d92c6a6cbe7950dc7456747 /lib/libusb/libusb20_int.h | |
parent | d82c33e9e33482e03f46031fd3c98d3967ce094e (diff) | |
download | FreeBSD-src-1c90ef127420e8aa353a34eb7fcf3d20ec303c46.zip FreeBSD-src-1c90ef127420e8aa353a34eb7fcf3d20ec303c46.tar.gz |
- Add support for LibUSB in 32-bit compatibility mode.
Approved by: thompsa (mentor)
Diffstat (limited to 'lib/libusb/libusb20_int.h')
-rw-r--r-- | lib/libusb/libusb20_int.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/libusb/libusb20_int.h b/lib/libusb/libusb20_int.h index b0e0e2d..64885f2 100644 --- a/lib/libusb/libusb20_int.h +++ b/lib/libusb/libusb20_int.h @@ -31,6 +31,12 @@ #ifndef _LIBUSB20_INT_H_ #define _LIBUSB20_INT_H_ +#ifdef COMPAT_32BIT +#define libusb20_pass_ptr(ptr) ((uint64_t)(uintptr_t)(ptr)) +#else +#define libusb20_pass_ptr(ptr) (ptr) +#endif + struct libusb20_device; struct libusb20_backend; struct libusb20_transfer; @@ -146,7 +152,11 @@ struct libusb20_transfer { /* * Pointer to a list of buffer pointers: */ +#ifdef COMPAT_32BIT + uint64_t *ppBuffer; +#else void **ppBuffer; +#endif /* * Pointer to frame lengths, which are updated to actual length * after the USB transfer completes: |