aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohan Hovold <jhovold@gmail.com>2014-01-02 16:49:25 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-01-03 15:42:24 -0500
commit2534be34c9f728759e7e7ba69bab9d3a5cbb5984 (patch)
tree3a0088810d136b910f7eabaaad886ee3f1c8e098
parent440ebadeae9298d7de3d4d105342691841ec88d0 (diff)
USB: cypress_m8: clean up protocol definitions
Clean up protocol definitions. Signed-off-by: Johan Hovold <jhovold@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/usb/serial/cypress_m8.h29
1 files changed, 16 insertions, 13 deletions
diff --git a/drivers/usb/serial/cypress_m8.h b/drivers/usb/serial/cypress_m8.h
index ce13e61b7d55..68bfd5197a63 100644
--- a/drivers/usb/serial/cypress_m8.h
+++ b/drivers/usb/serial/cypress_m8.h
@@ -55,19 +55,22 @@
55#define CT_GENERIC 0x0F 55#define CT_GENERIC 0x0F
56/* End of chiptype definitions */ 56/* End of chiptype definitions */
57 57
58/* RS-232 serial data communication protocol definitions */ 58/*
59/* these are sent / read at byte 0 of the input/output hid reports */ 59 * RS-232 serial data communication protocol definitions.
60/* You can find these values defined in the CY4601 USB to Serial design notes */ 60 *
61 61 * These are sent / read at byte 0 of the input/output hid reports.
62#define CONTROL_DTR 0x20 /* data terminal ready - flow control - host to device */ 62 * You can find these values defined in the CY4601 USB to Serial design notes.
63#define UART_DSR 0x20 /* data set ready - flow control - device to host */ 63 */
64#define CONTROL_RTS 0x10 /* request to send - flow control - host to device */ 64
65#define UART_CTS 0x10 /* clear to send - flow control - device to host */ 65#define CONTROL_DTR 0x20 /* data terminal ready */
66#define UART_RI 0x80 /* ring indicator - modem - device to host */ 66#define CONTROL_RTS 0x10 /* request to send */
67#define UART_CD 0x40 /* carrier detect - modem - device to host */ 67#define CONTROL_RESET 0x08 /* sent with output report */
68#define CYP_ERROR 0x08 /* received from input report - device to host */ 68
69/* Note - the below has nothing to do with the "feature report" reset */ 69#define UART_RI 0x80 /* ring indicator */
70#define CONTROL_RESET 0x08 /* sent with output report - host to device */ 70#define UART_CD 0x40 /* carrier detect */
71#define UART_DSR 0x20 /* data set ready */
72#define UART_CTS 0x10 /* clear to send */
73#define CYP_ERROR 0x08 /* received from input report */
71 74
72/* End of RS-232 protocol definitions */ 75/* End of RS-232 protocol definitions */
73 76