diff options
Diffstat (limited to 'api/usb2impl.c')
-rw-r--r-- | api/usb2impl.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/api/usb2impl.c b/api/usb2impl.c index 30e6265..5fb785a 100644 --- a/api/usb2impl.c +++ b/api/usb2impl.c @@ -1,12 +1,11 @@ // all for Linux -#include <linux/autoconf.h> +#include <generated/autoconf.h> #include <linux/kernel.h> #include <linux/errno.h> #include <linux/init.h> #include <linux/slab.h> #include <linux/module.h> #include <linux/kref.h> -#include <linux/smp_lock.h> #include <linux/usb.h> #include <asm/uaccess.h> #include <linux/device.h> @@ -128,17 +127,17 @@ Dword Usb2_writeControlBus ( IN Byte* buffer ) { -// Ganymede *pGanymede = (Ganymede *)demodulator; Dword ret,act_len; ret = 0; +// printk("- Enter %s Function -\n",__FUNCTION__); ret = usb_bulk_msg(usb_get_dev(udevs), usb_sndbulkpipe(usb_get_dev(udevs), 0x02), buffer, bufferLength, &act_len, 100000); - - if (ret) deb_data(" Usb2_writeControlBus fail : %d!\n", ret); + + if (ret) printk(" Usb2_writeControlBus fail : %d!\n", (int) ret); return (Error_NO_ERROR); } @@ -150,9 +149,9 @@ Dword Usb2_readControlBus ( OUT Byte* buffer ) { -// Ganymede *pGanymede = (Ganymede *)demodulator; Dword ret, nBytesRead; ret = 0; +// printk("- Enter %s Function -\n",__FUNCTION__); ret = usb_bulk_msg(usb_get_dev(udevs), usb_rcvbulkpipe(usb_get_dev(udevs),129), buffer, @@ -161,7 +160,7 @@ Dword Usb2_readControlBus ( 100000); - if (ret) deb_data(" Usb2_readControlBus fail : %d!\n", ret); + if (ret) printk(" Usb2_readControlBus fail : %d!\n", (int) ret); return (Error_NO_ERROR); } |