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

Go to the source code of this file.

Data Structures

union  scc2698_channel
 
union  scc2698_block
 

Macros

#define MR1_CHRL_5_BITS   (0x0 << 0)
 
#define MR1_CHRL_6_BITS   (0x1 << 0)
 
#define MR1_CHRL_7_BITS   (0x2 << 0)
 
#define MR1_CHRL_8_BITS   (0x3 << 0)
 
#define MR1_PARITY_EVEN   (0x1 << 2)
 
#define MR1_PARITY_ODD   (0x0 << 2)
 
#define MR1_PARITY_ON   (0x0 << 3)
 
#define MR1_PARITY_FORCE   (0x1 << 3)
 
#define MR1_PARITY_OFF   (0x2 << 3)
 
#define MR1_PARITY_SPECIAL   (0x3 << 3)
 
#define MR1_ERROR_CHAR   (0x0 << 5)
 
#define MR1_ERROR_BLOCK   (0x1 << 5)
 
#define MR1_RxINT_RxRDY   (0x0 << 6)
 
#define MR1_RxINT_FFULL   (0x1 << 6)
 
#define MR1_RxRTS_CONTROL_ON   (0x1 << 7)
 
#define MR1_RxRTS_CONTROL_OFF   (0x0 << 7)
 
#define MR2_STOP_BITS_LENGTH_1   (0x7 << 0)
 
#define MR2_STOP_BITS_LENGTH_2   (0xF << 0)
 
#define MR2_CTS_ENABLE_TX_ON   (0x1 << 4)
 
#define MR2_CTS_ENABLE_TX_OFF   (0x0 << 4)
 
#define MR2_TxRTS_CONTROL_ON   (0x1 << 5)
 
#define MR2_TxRTS_CONTROL_OFF   (0x0 << 5)
 
#define MR2_CH_MODE_NORMAL   (0x0 << 6)
 
#define MR2_CH_MODE_ECHO   (0x1 << 6)
 
#define MR2_CH_MODE_LOCAL   (0x2 << 6)
 
#define MR2_CH_MODE_REMOTE   (0x3 << 6)
 
#define CR_ENABLE_RX   (0x1 << 0)
 
#define CR_DISABLE_RX   (0x1 << 1)
 
#define CR_ENABLE_TX   (0x1 << 2)
 
#define CR_DISABLE_TX   (0x1 << 3)
 
#define CR_CMD_RESET_MR   (0x1 << 4)
 
#define CR_CMD_RESET_RX   (0x2 << 4)
 
#define CR_CMD_RESET_TX   (0x3 << 4)
 
#define CR_CMD_RESET_ERR_STATUS   (0x4 << 4)
 
#define CR_CMD_RESET_BREAK_CHANGE   (0x5 << 4)
 
#define CR_CMD_START_BREAK   (0x6 << 4)
 
#define CR_CMD_STOP_BREAK   (0x7 << 4)
 
#define CR_CMD_ASSERT_RTSN   (0x8 << 4)
 
#define CR_CMD_NEGATE_RTSN   (0x9 << 4)
 
#define CR_CMD_SET_TIMEOUT_MODE   (0xA << 4)
 
#define CR_CMD_DISABLE_TIMEOUT_MODE   (0xC << 4)
 
#define SR_RX_READY   (0x1 << 0)
 
#define SR_FIFO_FULL   (0x1 << 1)
 
#define SR_TX_READY   (0x1 << 2)
 
#define SR_TX_EMPTY   (0x1 << 3)
 
#define SR_OVERRUN_ERROR   (0x1 << 4)
 
#define SR_PARITY_ERROR   (0x1 << 5)
 
#define SR_FRAMING_ERROR   (0x1 << 6)
 
#define SR_RECEIVED_BREAK   (0x1 << 7)
 
#define SR_ERROR   (0xF0)
 
#define ACR_DELTA_IP0_IRQ_EN   (0x1 << 0)
 
#define ACR_DELTA_IP1_IRQ_EN   (0x1 << 1)
 
#define ACR_DELTA_IP2_IRQ_EN   (0x1 << 2)
 
#define ACR_DELTA_IP3_IRQ_EN   (0x1 << 3)
 
#define ACR_CT_Mask   (0x7 << 4)
 
#define ACR_CExt   (0x0 << 4)
 
#define ACR_CTxCA   (0x1 << 4)
 
#define ACR_CTxCB   (0x2 << 4)
 
#define ACR_CClk16   (0x3 << 4)
 
#define ACR_TExt   (0x4 << 4)
 
#define ACR_TExt16   (0x5 << 4)
 
#define ACR_TClk   (0x6 << 4)
 
#define ACR_TClk16   (0x7 << 4)
 
#define ACR_BRG_SET1   (0x0 << 7)
 
#define ACR_BRG_SET2   (0x1 << 7)
 
#define TX_CLK_75   (0x0 << 0)
 
#define TX_CLK_110   (0x1 << 0)
 
#define TX_CLK_38400   (0x2 << 0)
 
#define TX_CLK_150   (0x3 << 0)
 
#define TX_CLK_300   (0x4 << 0)
 
#define TX_CLK_600   (0x5 << 0)
 
#define TX_CLK_1200   (0x6 << 0)
 
#define TX_CLK_2000   (0x7 << 0)
 
#define TX_CLK_2400   (0x8 << 0)
 
#define TX_CLK_4800   (0x9 << 0)
 
#define TX_CLK_1800   (0xA << 0)
 
#define TX_CLK_9600   (0xB << 0)
 
#define TX_CLK_19200   (0xC << 0)
 
#define RX_CLK_75   (0x0 << 4)
 
#define RX_CLK_110   (0x1 << 4)
 
#define RX_CLK_38400   (0x2 << 4)
 
#define RX_CLK_150   (0x3 << 4)
 
#define RX_CLK_300   (0x4 << 4)
 
#define RX_CLK_600   (0x5 << 4)
 
#define RX_CLK_1200   (0x6 << 4)
 
#define RX_CLK_2000   (0x7 << 4)
 
#define RX_CLK_2400   (0x8 << 4)
 
#define RX_CLK_4800   (0x9 << 4)
 
#define RX_CLK_1800   (0xA << 4)
 
#define RX_CLK_9600   (0xB << 4)
 
#define RX_CLK_19200   (0xC << 4)
 
#define OPCR_MPOa_RTSN   (0x0 << 0)
 
#define OPCR_MPOa_C_TO   (0x1 << 0)
 
#define OPCR_MPOa_TxC1X   (0x2 << 0)
 
#define OPCR_MPOa_TxC16X   (0x3 << 0)
 
#define OPCR_MPOa_RxC1X   (0x4 << 0)
 
#define OPCR_MPOa_RxC16X   (0x5 << 0)
 
#define OPCR_MPOa_TxRDY   (0x6 << 0)
 
#define OPCR_MPOa_RxRDY_FF   (0x7 << 0)
 
#define OPCR_MPOb_RTSN   (0x0 << 4)
 
#define OPCR_MPOb_C_TO   (0x1 << 4)
 
#define OPCR_MPOb_TxC1X   (0x2 << 4)
 
#define OPCR_MPOb_TxC16X   (0x3 << 4)
 
#define OPCR_MPOb_RxC1X   (0x4 << 4)
 
#define OPCR_MPOb_RxC16X   (0x5 << 4)
 
#define OPCR_MPOb_TxRDY   (0x6 << 4)
 
#define OPCR_MPOb_RxRDY_FF   (0x7 << 4)
 
#define OPCR_MPP_INPUT   (0x0 << 7)
 
#define OPCR_MPP_OUTPUT   (0x1 << 7)
 
#define IMR_TxRDY_A   (0x1 << 0)
 
#define IMR_RxRDY_FFULL_A   (0x1 << 1)
 
#define IMR_DELTA_BREAK_A   (0x1 << 2)
 
#define IMR_COUNTER_READY   (0x1 << 3)
 
#define IMR_TxRDY_B   (0x1 << 4)
 
#define IMR_RxRDY_FFULL_B   (0x1 << 5)
 
#define IMR_DELTA_BREAK_B   (0x1 << 6)
 
#define IMR_INPUT_PORT_CHANGE   (0x1 << 7)
 
#define ISR_TxRDY_A   (0x1 << 0)
 
#define ISR_RxRDY_FFULL_A   (0x1 << 1)
 
#define ISR_DELTA_BREAK_A   (0x1 << 2)
 
#define ISR_COUNTER_READY   (0x1 << 3)
 
#define ISR_TxRDY_B   (0x1 << 4)
 
#define ISR_RxRDY_FFULL_B   (0x1 << 5)
 
#define ISR_DELTA_BREAK_B   (0x1 << 6)
 
#define ISR_INPUT_PORT_CHANGE   (0x1 << 7)
 
#define ACK_INT_REQ0   0
 
#define ACK_INT_REQ1   2
 

Macro Definition Documentation

#define ACK_INT_REQ0   0

Definition at line 224 of file scc2698.h.

#define ACK_INT_REQ1   2

Definition at line 225 of file scc2698.h.

#define ACR_BRG_SET1   (0x0 << 7)

Definition at line 155 of file scc2698.h.

#define ACR_BRG_SET2   (0x1 << 7)

Definition at line 156 of file scc2698.h.

#define ACR_CClk16   (0x3 << 4)

Definition at line 150 of file scc2698.h.

#define ACR_CExt   (0x0 << 4)

Definition at line 147 of file scc2698.h.

#define ACR_CT_Mask   (0x7 << 4)

Definition at line 146 of file scc2698.h.

#define ACR_CTxCA   (0x1 << 4)

Definition at line 148 of file scc2698.h.

#define ACR_CTxCB   (0x2 << 4)

Definition at line 149 of file scc2698.h.

#define ACR_DELTA_IP0_IRQ_EN   (0x1 << 0)

Definition at line 142 of file scc2698.h.

#define ACR_DELTA_IP1_IRQ_EN   (0x1 << 1)

Definition at line 143 of file scc2698.h.

#define ACR_DELTA_IP2_IRQ_EN   (0x1 << 2)

Definition at line 144 of file scc2698.h.

#define ACR_DELTA_IP3_IRQ_EN   (0x1 << 3)

Definition at line 145 of file scc2698.h.

#define ACR_TClk   (0x6 << 4)

Definition at line 153 of file scc2698.h.

#define ACR_TClk16   (0x7 << 4)

Definition at line 154 of file scc2698.h.

#define ACR_TExt   (0x4 << 4)

Definition at line 151 of file scc2698.h.

#define ACR_TExt16   (0x5 << 4)

Definition at line 152 of file scc2698.h.

#define CR_CMD_ASSERT_RTSN   (0x8 << 4)

Definition at line 126 of file scc2698.h.

#define CR_CMD_DISABLE_TIMEOUT_MODE   (0xC << 4)

Definition at line 129 of file scc2698.h.

#define CR_CMD_NEGATE_RTSN   (0x9 << 4)

Definition at line 127 of file scc2698.h.

#define CR_CMD_RESET_BREAK_CHANGE   (0x5 << 4)

Definition at line 123 of file scc2698.h.

#define CR_CMD_RESET_ERR_STATUS   (0x4 << 4)

Definition at line 122 of file scc2698.h.

#define CR_CMD_RESET_MR   (0x1 << 4)

Definition at line 119 of file scc2698.h.

#define CR_CMD_RESET_RX   (0x2 << 4)

Definition at line 120 of file scc2698.h.

#define CR_CMD_RESET_TX   (0x3 << 4)

Definition at line 121 of file scc2698.h.

#define CR_CMD_SET_TIMEOUT_MODE   (0xA << 4)

Definition at line 128 of file scc2698.h.

#define CR_CMD_START_BREAK   (0x6 << 4)

Definition at line 124 of file scc2698.h.

#define CR_CMD_STOP_BREAK   (0x7 << 4)

Definition at line 125 of file scc2698.h.

#define CR_DISABLE_RX   (0x1 << 1)

Definition at line 116 of file scc2698.h.

#define CR_DISABLE_TX   (0x1 << 3)

Definition at line 118 of file scc2698.h.

#define CR_ENABLE_RX   (0x1 << 0)

Definition at line 115 of file scc2698.h.

#define CR_ENABLE_TX   (0x1 << 2)

Definition at line 117 of file scc2698.h.

#define IMR_COUNTER_READY   (0x1 << 3)

Definition at line 209 of file scc2698.h.

#define IMR_DELTA_BREAK_A   (0x1 << 2)

Definition at line 208 of file scc2698.h.

#define IMR_DELTA_BREAK_B   (0x1 << 6)

Definition at line 212 of file scc2698.h.

#define IMR_INPUT_PORT_CHANGE   (0x1 << 7)

Definition at line 213 of file scc2698.h.

#define IMR_RxRDY_FFULL_A   (0x1 << 1)

Definition at line 207 of file scc2698.h.

#define IMR_RxRDY_FFULL_B   (0x1 << 5)

Definition at line 211 of file scc2698.h.

#define IMR_TxRDY_A   (0x1 << 0)

Definition at line 206 of file scc2698.h.

#define IMR_TxRDY_B   (0x1 << 4)

Definition at line 210 of file scc2698.h.

#define ISR_COUNTER_READY   (0x1 << 3)

Definition at line 218 of file scc2698.h.

#define ISR_DELTA_BREAK_A   (0x1 << 2)

Definition at line 217 of file scc2698.h.

#define ISR_DELTA_BREAK_B   (0x1 << 6)

Definition at line 221 of file scc2698.h.

#define ISR_INPUT_PORT_CHANGE   (0x1 << 7)

Definition at line 222 of file scc2698.h.

#define ISR_RxRDY_FFULL_A   (0x1 << 1)

Definition at line 216 of file scc2698.h.

#define ISR_RxRDY_FFULL_B   (0x1 << 5)

Definition at line 220 of file scc2698.h.

#define ISR_TxRDY_A   (0x1 << 0)

Definition at line 215 of file scc2698.h.

#define ISR_TxRDY_B   (0x1 << 4)

Definition at line 219 of file scc2698.h.

#define MR1_CHRL_5_BITS   (0x0 << 0)

Definition at line 87 of file scc2698.h.

#define MR1_CHRL_6_BITS   (0x1 << 0)

Definition at line 88 of file scc2698.h.

#define MR1_CHRL_7_BITS   (0x2 << 0)

Definition at line 89 of file scc2698.h.

#define MR1_CHRL_8_BITS   (0x3 << 0)

Definition at line 90 of file scc2698.h.

#define MR1_ERROR_BLOCK   (0x1 << 5)

Definition at line 98 of file scc2698.h.

#define MR1_ERROR_CHAR   (0x0 << 5)

Definition at line 97 of file scc2698.h.

#define MR1_PARITY_EVEN   (0x1 << 2)

Definition at line 91 of file scc2698.h.

#define MR1_PARITY_FORCE   (0x1 << 3)

Definition at line 94 of file scc2698.h.

#define MR1_PARITY_ODD   (0x0 << 2)

Definition at line 92 of file scc2698.h.

#define MR1_PARITY_OFF   (0x2 << 3)

Definition at line 95 of file scc2698.h.

#define MR1_PARITY_ON   (0x0 << 3)

Definition at line 93 of file scc2698.h.

#define MR1_PARITY_SPECIAL   (0x3 << 3)

Definition at line 96 of file scc2698.h.

#define MR1_RxINT_FFULL   (0x1 << 6)

Definition at line 100 of file scc2698.h.

#define MR1_RxINT_RxRDY   (0x0 << 6)

Definition at line 99 of file scc2698.h.

#define MR1_RxRTS_CONTROL_OFF   (0x0 << 7)

Definition at line 102 of file scc2698.h.

#define MR1_RxRTS_CONTROL_ON   (0x1 << 7)

Definition at line 101 of file scc2698.h.

#define MR2_CH_MODE_ECHO   (0x1 << 6)

Definition at line 111 of file scc2698.h.

#define MR2_CH_MODE_LOCAL   (0x2 << 6)

Definition at line 112 of file scc2698.h.

#define MR2_CH_MODE_NORMAL   (0x0 << 6)

Definition at line 110 of file scc2698.h.

#define MR2_CH_MODE_REMOTE   (0x3 << 6)

Definition at line 113 of file scc2698.h.

#define MR2_CTS_ENABLE_TX_OFF   (0x0 << 4)

Definition at line 107 of file scc2698.h.

#define MR2_CTS_ENABLE_TX_ON   (0x1 << 4)

Definition at line 106 of file scc2698.h.

#define MR2_STOP_BITS_LENGTH_1   (0x7 << 0)

Definition at line 104 of file scc2698.h.

#define MR2_STOP_BITS_LENGTH_2   (0xF << 0)

Definition at line 105 of file scc2698.h.

#define MR2_TxRTS_CONTROL_OFF   (0x0 << 5)

Definition at line 109 of file scc2698.h.

#define MR2_TxRTS_CONTROL_ON   (0x1 << 5)

Definition at line 108 of file scc2698.h.

#define OPCR_MPOa_C_TO   (0x1 << 0)

Definition at line 186 of file scc2698.h.

#define OPCR_MPOa_RTSN   (0x0 << 0)

Definition at line 185 of file scc2698.h.

#define OPCR_MPOa_RxC16X   (0x5 << 0)

Definition at line 190 of file scc2698.h.

#define OPCR_MPOa_RxC1X   (0x4 << 0)

Definition at line 189 of file scc2698.h.

#define OPCR_MPOa_RxRDY_FF   (0x7 << 0)

Definition at line 192 of file scc2698.h.

#define OPCR_MPOa_TxC16X   (0x3 << 0)

Definition at line 188 of file scc2698.h.

#define OPCR_MPOa_TxC1X   (0x2 << 0)

Definition at line 187 of file scc2698.h.

#define OPCR_MPOa_TxRDY   (0x6 << 0)

Definition at line 191 of file scc2698.h.

#define OPCR_MPOb_C_TO   (0x1 << 4)

Definition at line 195 of file scc2698.h.

#define OPCR_MPOb_RTSN   (0x0 << 4)

Definition at line 194 of file scc2698.h.

#define OPCR_MPOb_RxC16X   (0x5 << 4)

Definition at line 199 of file scc2698.h.

#define OPCR_MPOb_RxC1X   (0x4 << 4)

Definition at line 198 of file scc2698.h.

#define OPCR_MPOb_RxRDY_FF   (0x7 << 4)

Definition at line 201 of file scc2698.h.

#define OPCR_MPOb_TxC16X   (0x3 << 4)

Definition at line 197 of file scc2698.h.

#define OPCR_MPOb_TxC1X   (0x2 << 4)

Definition at line 196 of file scc2698.h.

#define OPCR_MPOb_TxRDY   (0x6 << 4)

Definition at line 200 of file scc2698.h.

#define OPCR_MPP_INPUT   (0x0 << 7)

Definition at line 203 of file scc2698.h.

#define OPCR_MPP_OUTPUT   (0x1 << 7)

Definition at line 204 of file scc2698.h.

#define RX_CLK_110   (0x1 << 4)

Definition at line 172 of file scc2698.h.

#define RX_CLK_1200   (0x6 << 4)

Definition at line 177 of file scc2698.h.

#define RX_CLK_150   (0x3 << 4)

Definition at line 174 of file scc2698.h.

#define RX_CLK_1800   (0xA << 4)

Definition at line 181 of file scc2698.h.

#define RX_CLK_19200   (0xC << 4)

Definition at line 183 of file scc2698.h.

#define RX_CLK_2000   (0x7 << 4)

Definition at line 178 of file scc2698.h.

#define RX_CLK_2400   (0x8 << 4)

Definition at line 179 of file scc2698.h.

#define RX_CLK_300   (0x4 << 4)

Definition at line 175 of file scc2698.h.

#define RX_CLK_38400   (0x2 << 4)

Definition at line 173 of file scc2698.h.

#define RX_CLK_4800   (0x9 << 4)

Definition at line 180 of file scc2698.h.

#define RX_CLK_600   (0x5 << 4)

Definition at line 176 of file scc2698.h.

#define RX_CLK_75   (0x0 << 4)

Definition at line 171 of file scc2698.h.

#define RX_CLK_9600   (0xB << 4)

Definition at line 182 of file scc2698.h.

#define SR_ERROR   (0xF0)

Definition at line 140 of file scc2698.h.

#define SR_FIFO_FULL   (0x1 << 1)

Definition at line 132 of file scc2698.h.

#define SR_FRAMING_ERROR   (0x1 << 6)

Definition at line 137 of file scc2698.h.

#define SR_OVERRUN_ERROR   (0x1 << 4)

Definition at line 135 of file scc2698.h.

#define SR_PARITY_ERROR   (0x1 << 5)

Definition at line 136 of file scc2698.h.

#define SR_RECEIVED_BREAK   (0x1 << 7)

Definition at line 138 of file scc2698.h.

#define SR_RX_READY   (0x1 << 0)

Definition at line 131 of file scc2698.h.

#define SR_TX_EMPTY   (0x1 << 3)

Definition at line 134 of file scc2698.h.

#define SR_TX_READY   (0x1 << 2)

Definition at line 133 of file scc2698.h.

#define TX_CLK_110   (0x1 << 0)

Definition at line 159 of file scc2698.h.

#define TX_CLK_1200   (0x6 << 0)

Definition at line 164 of file scc2698.h.

#define TX_CLK_150   (0x3 << 0)

Definition at line 161 of file scc2698.h.

#define TX_CLK_1800   (0xA << 0)

Definition at line 168 of file scc2698.h.

#define TX_CLK_19200   (0xC << 0)

Definition at line 170 of file scc2698.h.

#define TX_CLK_2000   (0x7 << 0)

Definition at line 165 of file scc2698.h.

#define TX_CLK_2400   (0x8 << 0)

Definition at line 166 of file scc2698.h.

#define TX_CLK_300   (0x4 << 0)

Definition at line 162 of file scc2698.h.

#define TX_CLK_38400   (0x2 << 0)

Definition at line 160 of file scc2698.h.

#define TX_CLK_4800   (0x9 << 0)

Definition at line 167 of file scc2698.h.

#define TX_CLK_600   (0x5 << 0)

Definition at line 163 of file scc2698.h.

#define TX_CLK_75   (0x0 << 0)

Definition at line 158 of file scc2698.h.

#define TX_CLK_9600   (0xB << 0)

Definition at line 169 of file scc2698.h.