summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjsg <jsg@openbsd.org>2006-07-26 00:38:38 +0000
committerjsg <jsg@openbsd.org>2006-07-26 00:38:38 +0000
commit25521d589c0da544e416898cb8bb51cdd139a3d2 (patch)
treefc7d946597627998b5a571c6d981b8882bd243c0
parentDo not bother reading the existing colormap on attach, since we will (diff)
downloadwireguard-openbsd-25521d589c0da544e416898cb8bb51cdd139a3d2.tar.xz
wireguard-openbsd-25521d589c0da544e416898cb8bb51cdd139a3d2.zip
Crank buffer sizes to the 1024 limit imposed by ttymalloc()
which should allow high speed devices to work better. tested by fkr@
-rw-r--r--sys/dev/usb/umodem.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/dev/usb/umodem.c b/sys/dev/usb/umodem.c
index 38421362b55..a5bc9ab9f65 100644
--- a/sys/dev/usb/umodem.c
+++ b/sys/dev/usb/umodem.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: umodem.c,v 1.21 2006/06/23 06:27:12 miod Exp $ */
+/* $OpenBSD: umodem.c,v 1.22 2006/07/26 00:38:38 jsg Exp $ */
/* $NetBSD: umodem.c,v 1.45 2002/09/23 05:51:23 simonb Exp $ */
/*
@@ -85,11 +85,11 @@ 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.
+ * Buffers are this large to deal with high speed wireless devices.
+ * Capped at 1024 as ttymalloc() is limited to this amount.
*/
-#define UMODEMIBUFSIZE 64
-#define UMODEMOBUFSIZE 256
+#define UMODEMIBUFSIZE 1024
+#define UMODEMOBUFSIZE 1024
struct umodem_softc {
USBBASEDEVICE sc_dev; /* base device */