patch-2.3.99-pre6 linux/drivers/usb/rio500.c
Next file: linux/drivers/usb/serial/Makefile
Previous file: linux/drivers/usb/printer.c
Back to the patch index
Back to the overall index
- Lines: 42
- Date:
Mon Apr 24 16:15:01 2000
- Orig file:
v2.3.99-pre5/linux/drivers/usb/rio500.c
- Orig date:
Fri Mar 10 16:40:45 2000
diff -u --recursive --new-file v2.3.99-pre5/linux/drivers/usb/rio500.c linux/drivers/usb/rio500.c
@@ -44,7 +44,7 @@
/* stall/wait timeout for rio */
#define NAK_TIMEOUT (HZ)
-#define IBUF_SIZE 128
+#define IBUF_SIZE 0x1000
/* Size of the rio buffer */
#define OBUF_SIZE 0x10000
@@ -317,7 +317,7 @@
result = usb_bulk_msg(rio->rio_dev,
usb_rcvbulkpipe(rio->rio_dev, 1),
ibuf, this_read, &partial,
- (int) (HZ * .1));
+ (int) (HZ * 8));
dbg(KERN_DEBUG "read stats: result:%d this_read:%u partial:%u",
result, this_read, partial);
@@ -405,18 +405,11 @@
static struct
file_operations usb_rio_fops = {
- NULL, /* seek */
- read_rio,
- write_rio,
- NULL, /* readdir */
- NULL, /* poll */
- ioctl_rio, /* ioctl */
- NULL, /* mmap */
- open_rio,
- NULL, /* flush */
- close_rio,
- NULL,
- NULL, /* fasync */
+ read: read_rio,
+ write: write_rio,
+ ioctl: ioctl_rio,
+ open: open_rio,
+ release: close_rio,
};
static struct
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)