summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorsmb <smb@NetBSD.org>2006-06-07 18:03:00 +0000
committersmb <smb@NetBSD.org>2006-06-07 18:03:00 +0000
commita5b05fc8d625eae8bc47a0b22bbf2b1409625d5b (patch)
tree06697a8492fbf8234ff4e4f8d47e890f5b2cdcee /sys/dev
parent4aa924bc7038625adeee967ba629a2d9a3b2ea52 (diff)
Increase the size of UMODEMIBUFSIZE and UMODEMOBUFSIZE. These are the
USB input and output buffer sizes; the previous values were fine for dialup modems, but seriously limited the speed of some high-speed wireless devices that appear to the system as a umodem.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/usb/umodem_common.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/sys/dev/usb/umodem_common.c b/sys/dev/usb/umodem_common.c
index fded6a72f09..b1971f9e2f7 100644
--- a/sys/dev/usb/umodem_common.c
+++ b/sys/dev/usb/umodem_common.c
@@ -1,4 +1,4 @@
-/* $NetBSD: umodem_common.c,v 1.6 2005/12/11 12:24:01 christos Exp $ */
+/* $NetBSD: umodem_common.c,v 1.7 2006/06/07 18:03:00 smb Exp $ */
/*
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -51,7 +51,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: umodem_common.c,v 1.6 2005/12/11 12:24:01 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: umodem_common.c,v 1.7 2006/06/07 18:03:00 smb Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -90,9 +90,13 @@ int umodemdebug = 0;
* These are the maximum number of bytes transferred per frame.
* If some really high speed devices should use this driver they
* may need to be increased, but this is good enough for normal modems.
+ *
+ * Note: increased from 64/256, to better support EVDO wireless PPP.
+ * The sizes should not be increased further, or there
+ * will be problems with contiguous storage allocation.
*/
-#define UMODEMIBUFSIZE 64
-#define UMODEMOBUFSIZE 256
+#define UMODEMIBUFSIZE 4096
+#define UMODEMOBUFSIZE 4096
Static usbd_status umodem_set_comm_feature(struct umodem_softc *sc,
int feature, int state);