summaryrefslogtreecommitdiff
path: root/sys/dev/usb/umodem.c
diff options
context:
space:
mode:
authorAaron Campbell <aaron@cvs.openbsd.org>2000-04-14 22:50:30 +0000
committerAaron Campbell <aaron@cvs.openbsd.org>2000-04-14 22:50:30 +0000
commit991040652a68096f72fa44929e5d73800c044538 (patch)
tree952b80839b97ddc3e3a64e5e2fa4d0a5fe7a8a50 /sys/dev/usb/umodem.c
parent765944befb7871794d0edd9124f922f86d9324bc (diff)
Sync with NetBSD.
Diffstat (limited to 'sys/dev/usb/umodem.c')
-rw-r--r--sys/dev/usb/umodem.c19
1 files changed, 17 insertions, 2 deletions
diff --git a/sys/dev/usb/umodem.c b/sys/dev/usb/umodem.c
index 309855764b4..9e1df7f8509 100644
--- a/sys/dev/usb/umodem.c
+++ b/sys/dev/usb/umodem.c
@@ -1,5 +1,5 @@
-/* $OpenBSD: umodem.c,v 1.2 2000/04/08 20:03:34 aaron Exp $ */
-/* $NetBSD: umodem.c,v 1.25 2000/03/27 12:33:57 augustss Exp $ */
+/* $OpenBSD: umodem.c,v 1.3 2000/04/14 22:50:28 aaron Exp $ */
+/* $NetBSD: umodem.c,v 1.27 2000/04/14 14:21:55 augustss Exp $ */
/*
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -82,6 +82,14 @@ int umodemdebug = 0;
#endif
#define DPRINTF(x) DPRINTFN(0, x)
+/*
+ * 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.
+ */
+#define UMODEMIBUFSIZE 64
+#define UMODEMOBUFSIZE 256
+
struct umodem_softc {
USBBASEDEVICE sc_dev; /* base device */
@@ -134,6 +142,8 @@ Static struct ucom_methods umodem_methods = {
umodem_ioctl,
NULL,
NULL,
+ NULL,
+ NULL,
};
USB_DECLARE_DRIVER(umodem);
@@ -267,6 +277,10 @@ USB_ATTACH(umodem)
uca.portno = UCOM_UNK_PORTNO;
/* bulkin, bulkout set above */
+ uca.ibufsize = UMODEMIBUFSIZE;
+ uca.obufsize = UMODEMOBUFSIZE;
+ uca.ibufsizepad = UMODEMIBUFSIZE;
+ uca.obufsizepad = UMODEMOBUFSIZE;
uca.device = sc->sc_udev;
uca.iface = sc->sc_data_iface;
uca.methods = &umodem_methods;
@@ -480,6 +494,7 @@ void
umodem_set(addr, portno, reg, onoff)
void *addr;
int portno;
+ int reg;
int onoff;
{
struct umodem_softc *sc = addr;