summaryrefslogtreecommitdiff
path: root/sys/dev/usb/uftdireg.h
diff options
context:
space:
mode:
authorNathan Binkert <nate@cvs.openbsd.org>2002-07-10 02:56:54 +0000
committerNathan Binkert <nate@cvs.openbsd.org>2002-07-10 02:56:54 +0000
commit0eb86ebec163b1f07b15e0b5cc2411b8826a05a0 (patch)
tree9fdf4f3ff5f8f064874c76e8fb9cc86f9aaacd4e /sys/dev/usb/uftdireg.h
parentf76b7836696dcb7cbaf046e35c615136f14f4362 (diff)
Support for USB->Serial adapters based on FT8U232AM
various updates From NetBSD
Diffstat (limited to 'sys/dev/usb/uftdireg.h')
-rw-r--r--sys/dev/usb/uftdireg.h25
1 files changed, 23 insertions, 2 deletions
diff --git a/sys/dev/usb/uftdireg.h b/sys/dev/usb/uftdireg.h
index 03a953ce474..0cc61430cb3 100644
--- a/sys/dev/usb/uftdireg.h
+++ b/sys/dev/usb/uftdireg.h
@@ -1,5 +1,5 @@
-/* $OpenBSD: uftdireg.h,v 1.5 2002/05/07 18:29:18 nate Exp $ */
-/* $NetBSD: uftdireg.h,v 1.3 2001/06/12 14:59:28 wiz Exp $ */
+/* $OpenBSD: uftdireg.h,v 1.6 2002/07/10 02:56:53 nate Exp $ */
+/* $NetBSD: uftdireg.h,v 1.5 2002/05/08 18:10:19 scw Exp $ */
/*
* Definitions for the FTDI USB Single Port Serial Converter -
@@ -33,6 +33,11 @@
#define FTDI_PIT_SIOB 2 /* SIOB */
#define FTDI_PIT_PARALLEL 3 /* Parallel */
+enum uftdi_type {
+ UFTDI_TYPE_SIO,
+ UFTDI_TYPE_8U232AM
+};
+
/*
* BmRequestType: 0100 0000B
* bRequest: FTDI_SIO_RESET
@@ -86,6 +91,21 @@ enum {
ftdi_sio_b115200 = 9
};
+enum {
+ ftdi_8u232am_b300 = 0x2710,
+ ftdi_8u232am_b600 = 0x1388,
+ ftdi_8u232am_b1200 = 0x09c4,
+ ftdi_8u232am_b2400 = 0x04e2,
+ ftdi_8u232am_b4800 = 0x0271,
+ ftdi_8u232am_b9600 = 0x4138,
+ ftdi_8u232am_b19200 = 0x809c,
+ ftdi_8u232am_b38400 = 0xc04e,
+ ftdi_8u232am_b57600 = 0x0034,
+ ftdi_8u232am_b115200 = 0x001a,
+ ftdi_8u232am_b230400 = 0x000d,
+ ftdi_8u232am_b460800 = 0x4006,
+ ftdi_8u232am_b921600 = 0x8003
+};
/*
* BmRequestType: 0100 0000B
@@ -121,6 +141,7 @@ enum {
#define FTDI_SIO_SET_DATA_STOP_BITS_1 (0x0 << 11)
#define FTDI_SIO_SET_DATA_STOP_BITS_15 (0x1 << 11)
#define FTDI_SIO_SET_DATA_STOP_BITS_2 (0x2 << 11)
+#define FTDI_SIO_SET_BREAK (0x1 << 14)
/*