Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros
belkin_sa.h File Reference

Go to the source code of this file.

Macros

#define BELKIN_DOCKSTATION_VID   0x050d /* Vendor Id */
 
#define BELKIN_DOCKSTATION_PID   0x1203 /* Product Id */
 
#define BELKIN_SA_VID   0x050d /* Vendor Id */
 
#define BELKIN_SA_PID   0x0103 /* Product Id */
 
#define BELKIN_OLD_VID   0x056c /* Belkin's "old" vendor id */
 
#define BELKIN_OLD_PID   0x8007 /* Belkin's "old" single port serial converter's id */
 
#define PERACOM_VID   0x0565 /* Peracom's vendor id */
 
#define PERACOM_PID   0x0001 /* Peracom's single port serial converter's id */
 
#define GOHUBS_VID   0x0921 /* GoHubs vendor id */
 
#define GOHUBS_PID   0x1000 /* GoHubs single port serial converter's id (identical to the Peracom device) */
 
#define HANDYLINK_PID   0x1200 /* HandyLink USB's id (identical to the Peracom device) */
 
#define BELKIN_SA_SET_BAUDRATE_REQUEST   0 /* Set baud rate */
 
#define BELKIN_SA_SET_STOP_BITS_REQUEST   1 /* Set stop bits (1,2) */
 
#define BELKIN_SA_SET_DATA_BITS_REQUEST   2 /* Set data bits (5,6,7,8) */
 
#define BELKIN_SA_SET_PARITY_REQUEST   3 /* Set parity (None, Even, Odd) */
 
#define BELKIN_SA_SET_DTR_REQUEST   10 /* Set DTR state */
 
#define BELKIN_SA_SET_RTS_REQUEST   11 /* Set RTS state */
 
#define BELKIN_SA_SET_BREAK_REQUEST   12 /* Set BREAK state */
 
#define BELKIN_SA_SET_FLOW_CTRL_REQUEST   16 /* Set flow control mode */
 
#define BELKIN_SA_SET_REQUEST_TYPE   0x40
 
#define BELKIN_SA_BAUD(b)   (230400/b)
 
#define BELKIN_SA_STOP_BITS(b)   (b-1)
 
#define BELKIN_SA_DATA_BITS(b)   (b-5)
 
#define BELKIN_SA_PARITY_NONE   0
 
#define BELKIN_SA_PARITY_EVEN   1
 
#define BELKIN_SA_PARITY_ODD   2
 
#define BELKIN_SA_PARITY_MARK   3
 
#define BELKIN_SA_PARITY_SPACE   4
 
#define BELKIN_SA_FLOW_NONE   0x0000 /* No flow control */
 
#define BELKIN_SA_FLOW_OCTS   0x0001 /* use CTS input to throttle output */
 
#define BELKIN_SA_FLOW_ODSR   0x0002 /* use DSR input to throttle output */
 
#define BELKIN_SA_FLOW_IDSR   0x0004 /* use DSR input to enable receive */
 
#define BELKIN_SA_FLOW_IDTR   0x0008 /* use DTR output for input flow control */
 
#define BELKIN_SA_FLOW_IRTS   0x0010 /* use RTS output for input flow control */
 
#define BELKIN_SA_FLOW_ORTS   0x0020 /* use RTS to indicate data available to send */
 
#define BELKIN_SA_FLOW_ERRSUB   0x0040 /* ???? guess ???? substitute inline errors */
 
#define BELKIN_SA_FLOW_OXON   0x0080 /* use XON/XOFF for output flow control */
 
#define BELKIN_SA_FLOW_IXON   0x0100 /* use XON/XOFF for input flow control */
 
#define BELKIN_SA_LSR_INDEX   2 /* Line Status Register */
 
#define BELKIN_SA_LSR_RDR   0x01 /* receive data ready */
 
#define BELKIN_SA_LSR_OE   0x02 /* overrun error */
 
#define BELKIN_SA_LSR_PE   0x04 /* parity error */
 
#define BELKIN_SA_LSR_FE   0x08 /* framing error */
 
#define BELKIN_SA_LSR_BI   0x10 /* break indicator */
 
#define BELKIN_SA_LSR_THE   0x20 /* tx holding register empty */
 
#define BELKIN_SA_LSR_TE   0x40 /* transmit register empty */
 
#define BELKIN_SA_LSR_ERR   0x80 /* OE | PE | FE | BI */
 
#define BELKIN_SA_MSR_INDEX   3 /* Modem Status Register */
 
#define BELKIN_SA_MSR_DCTS   0x01 /* Delta CTS */
 
#define BELKIN_SA_MSR_DDSR   0x02 /* Delta DSR */
 
#define BELKIN_SA_MSR_DRI   0x04 /* Delta RI */
 
#define BELKIN_SA_MSR_DCD   0x08 /* Delta CD */
 
#define BELKIN_SA_MSR_CTS   0x10 /* Current CTS */
 
#define BELKIN_SA_MSR_DSR   0x20 /* Current DSR */
 
#define BELKIN_SA_MSR_RI   0x40 /* Current RI */
 
#define BELKIN_SA_MSR_CD   0x80 /* Current CD */
 

Macro Definition Documentation

#define BELKIN_DOCKSTATION_PID   0x1203 /* Product Id */

Definition at line 38 of file belkin_sa.h.

#define BELKIN_DOCKSTATION_VID   0x050d /* Vendor Id */

Definition at line 37 of file belkin_sa.h.

#define BELKIN_OLD_PID   0x8007 /* Belkin's "old" single port serial converter's id */

Definition at line 44 of file belkin_sa.h.

#define BELKIN_OLD_VID   0x056c /* Belkin's "old" vendor id */

Definition at line 43 of file belkin_sa.h.

#define BELKIN_SA_BAUD (   b)    (230400/b)

Definition at line 75 of file belkin_sa.h.

#define BELKIN_SA_DATA_BITS (   b)    (b-5)

Definition at line 79 of file belkin_sa.h.

#define BELKIN_SA_FLOW_ERRSUB   0x0040 /* ???? guess ???? substitute inline errors */

Definition at line 94 of file belkin_sa.h.

#define BELKIN_SA_FLOW_IDSR   0x0004 /* use DSR input to enable receive */

Definition at line 90 of file belkin_sa.h.

#define BELKIN_SA_FLOW_IDTR   0x0008 /* use DTR output for input flow control */

Definition at line 91 of file belkin_sa.h.

#define BELKIN_SA_FLOW_IRTS   0x0010 /* use RTS output for input flow control */

Definition at line 92 of file belkin_sa.h.

#define BELKIN_SA_FLOW_IXON   0x0100 /* use XON/XOFF for input flow control */

Definition at line 96 of file belkin_sa.h.

#define BELKIN_SA_FLOW_NONE   0x0000 /* No flow control */

Definition at line 87 of file belkin_sa.h.

#define BELKIN_SA_FLOW_OCTS   0x0001 /* use CTS input to throttle output */

Definition at line 88 of file belkin_sa.h.

#define BELKIN_SA_FLOW_ODSR   0x0002 /* use DSR input to throttle output */

Definition at line 89 of file belkin_sa.h.

#define BELKIN_SA_FLOW_ORTS   0x0020 /* use RTS to indicate data available to send */

Definition at line 93 of file belkin_sa.h.

#define BELKIN_SA_FLOW_OXON   0x0080 /* use XON/XOFF for output flow control */

Definition at line 95 of file belkin_sa.h.

#define BELKIN_SA_LSR_BI   0x10 /* break indicator */

Definition at line 108 of file belkin_sa.h.

#define BELKIN_SA_LSR_ERR   0x80 /* OE | PE | FE | BI */

Definition at line 111 of file belkin_sa.h.

#define BELKIN_SA_LSR_FE   0x08 /* framing error */

Definition at line 107 of file belkin_sa.h.

#define BELKIN_SA_LSR_INDEX   2 /* Line Status Register */

Definition at line 103 of file belkin_sa.h.

#define BELKIN_SA_LSR_OE   0x02 /* overrun error */

Definition at line 105 of file belkin_sa.h.

#define BELKIN_SA_LSR_PE   0x04 /* parity error */

Definition at line 106 of file belkin_sa.h.

#define BELKIN_SA_LSR_RDR   0x01 /* receive data ready */

Definition at line 104 of file belkin_sa.h.

#define BELKIN_SA_LSR_TE   0x40 /* transmit register empty */

Definition at line 110 of file belkin_sa.h.

#define BELKIN_SA_LSR_THE   0x20 /* tx holding register empty */

Definition at line 109 of file belkin_sa.h.

#define BELKIN_SA_MSR_CD   0x80 /* Current CD */

Definition at line 121 of file belkin_sa.h.

#define BELKIN_SA_MSR_CTS   0x10 /* Current CTS */

Definition at line 118 of file belkin_sa.h.

#define BELKIN_SA_MSR_DCD   0x08 /* Delta CD */

Definition at line 117 of file belkin_sa.h.

#define BELKIN_SA_MSR_DCTS   0x01 /* Delta CTS */

Definition at line 114 of file belkin_sa.h.

#define BELKIN_SA_MSR_DDSR   0x02 /* Delta DSR */

Definition at line 115 of file belkin_sa.h.

#define BELKIN_SA_MSR_DRI   0x04 /* Delta RI */

Definition at line 116 of file belkin_sa.h.

#define BELKIN_SA_MSR_DSR   0x20 /* Current DSR */

Definition at line 119 of file belkin_sa.h.

#define BELKIN_SA_MSR_INDEX   3 /* Modem Status Register */

Definition at line 113 of file belkin_sa.h.

#define BELKIN_SA_MSR_RI   0x40 /* Current RI */

Definition at line 120 of file belkin_sa.h.

#define BELKIN_SA_PARITY_EVEN   1

Definition at line 82 of file belkin_sa.h.

#define BELKIN_SA_PARITY_MARK   3

Definition at line 84 of file belkin_sa.h.

#define BELKIN_SA_PARITY_NONE   0

Definition at line 81 of file belkin_sa.h.

#define BELKIN_SA_PARITY_ODD   2

Definition at line 83 of file belkin_sa.h.

#define BELKIN_SA_PARITY_SPACE   4

Definition at line 85 of file belkin_sa.h.

#define BELKIN_SA_PID   0x0103 /* Product Id */

Definition at line 41 of file belkin_sa.h.

#define BELKIN_SA_SET_BAUDRATE_REQUEST   0 /* Set baud rate */

Definition at line 54 of file belkin_sa.h.

#define BELKIN_SA_SET_BREAK_REQUEST   12 /* Set BREAK state */

Definition at line 61 of file belkin_sa.h.

#define BELKIN_SA_SET_DATA_BITS_REQUEST   2 /* Set data bits (5,6,7,8) */

Definition at line 56 of file belkin_sa.h.

#define BELKIN_SA_SET_DTR_REQUEST   10 /* Set DTR state */

Definition at line 59 of file belkin_sa.h.

#define BELKIN_SA_SET_FLOW_CTRL_REQUEST   16 /* Set flow control mode */

Definition at line 63 of file belkin_sa.h.

#define BELKIN_SA_SET_PARITY_REQUEST   3 /* Set parity (None, Even, Odd) */

Definition at line 57 of file belkin_sa.h.

#define BELKIN_SA_SET_REQUEST_TYPE   0x40

Definition at line 73 of file belkin_sa.h.

#define BELKIN_SA_SET_RTS_REQUEST   11 /* Set RTS state */

Definition at line 60 of file belkin_sa.h.

#define BELKIN_SA_SET_STOP_BITS_REQUEST   1 /* Set stop bits (1,2) */

Definition at line 55 of file belkin_sa.h.

#define BELKIN_SA_STOP_BITS (   b)    (b-1)

Definition at line 77 of file belkin_sa.h.

#define BELKIN_SA_VID   0x050d /* Vendor Id */

Definition at line 40 of file belkin_sa.h.

#define GOHUBS_PID   0x1000 /* GoHubs single port serial converter's id (identical to the Peracom device) */

Definition at line 50 of file belkin_sa.h.

#define GOHUBS_VID   0x0921 /* GoHubs vendor id */

Definition at line 49 of file belkin_sa.h.

#define HANDYLINK_PID   0x1200 /* HandyLink USB's id (identical to the Peracom device) */

Definition at line 51 of file belkin_sa.h.

#define PERACOM_PID   0x0001 /* Peracom's single port serial converter's id */

Definition at line 47 of file belkin_sa.h.

#define PERACOM_VID   0x0565 /* Peracom's vendor id */

Definition at line 46 of file belkin_sa.h.