Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros
sb1250_uart.h File Reference
#include <asm/sibyte/sb1250_defs.h>

Go to the source code of this file.

Macros

#define S_DUART_BITS_PER_CHAR   0
 
#define M_DUART_BITS_PER_CHAR   _SB_MAKEMASK(2, S_DUART_BITS_PER_CHAR)
 
#define V_DUART_BITS_PER_CHAR(x)   _SB_MAKEVALUE(x, S_DUART_BITS_PER_CHAR)
 
#define K_DUART_BITS_PER_CHAR_RSV0   0
 
#define K_DUART_BITS_PER_CHAR_RSV1   1
 
#define K_DUART_BITS_PER_CHAR_7   2
 
#define K_DUART_BITS_PER_CHAR_8   3
 
#define V_DUART_BITS_PER_CHAR_RSV0   V_DUART_BITS_PER_CHAR(K_DUART_BITS_PER_CHAR_RSV0)
 
#define V_DUART_BITS_PER_CHAR_RSV1   V_DUART_BITS_PER_CHAR(K_DUART_BITS_PER_CHAR_RSV1)
 
#define V_DUART_BITS_PER_CHAR_7   V_DUART_BITS_PER_CHAR(K_DUART_BITS_PER_CHAR_7)
 
#define V_DUART_BITS_PER_CHAR_8   V_DUART_BITS_PER_CHAR(K_DUART_BITS_PER_CHAR_8)
 
#define M_DUART_PARITY_TYPE_EVEN   0x00
 
#define M_DUART_PARITY_TYPE_ODD   _SB_MAKEMASK1(2)
 
#define S_DUART_PARITY_MODE   3
 
#define M_DUART_PARITY_MODE   _SB_MAKEMASK(2, S_DUART_PARITY_MODE)
 
#define V_DUART_PARITY_MODE(x)   _SB_MAKEVALUE(x, S_DUART_PARITY_MODE)
 
#define K_DUART_PARITY_MODE_ADD   0
 
#define K_DUART_PARITY_MODE_ADD_FIXED   1
 
#define K_DUART_PARITY_MODE_NONE   2
 
#define V_DUART_PARITY_MODE_ADD   V_DUART_PARITY_MODE(K_DUART_PARITY_MODE_ADD)
 
#define V_DUART_PARITY_MODE_ADD_FIXED   V_DUART_PARITY_MODE(K_DUART_PARITY_MODE_ADD_FIXED)
 
#define V_DUART_PARITY_MODE_NONE   V_DUART_PARITY_MODE(K_DUART_PARITY_MODE_NONE)
 
#define M_DUART_TX_IRQ_SEL_TXRDY   0
 
#define M_DUART_TX_IRQ_SEL_TXEMPT   _SB_MAKEMASK1(5)
 
#define M_DUART_RX_IRQ_SEL_RXRDY   0
 
#define M_DUART_RX_IRQ_SEL_RXFULL   _SB_MAKEMASK1(6)
 
#define M_DUART_RX_RTS_ENA   _SB_MAKEMASK1(7)
 
#define M_DUART_MODE_RESERVED1   _SB_MAKEMASK(3, 0) /* ignored */
 
#define M_DUART_STOP_BIT_LEN_2   _SB_MAKEMASK1(3)
 
#define M_DUART_STOP_BIT_LEN_1   0
 
#define M_DUART_TX_CTS_ENA   _SB_MAKEMASK1(4)
 
#define M_DUART_MODE_RESERVED2   _SB_MAKEMASK1(5) /* must be zero */
 
#define S_DUART_CHAN_MODE   6
 
#define M_DUART_CHAN_MODE   _SB_MAKEMASK(2, S_DUART_CHAN_MODE)
 
#define V_DUART_CHAN_MODE(x)   _SB_MAKEVALUE(x, S_DUART_CHAN_MODE)
 
#define K_DUART_CHAN_MODE_NORMAL   0
 
#define K_DUART_CHAN_MODE_LCL_LOOP   2
 
#define K_DUART_CHAN_MODE_REM_LOOP   3
 
#define V_DUART_CHAN_MODE_NORMAL   V_DUART_CHAN_MODE(K_DUART_CHAN_MODE_NORMAL)
 
#define V_DUART_CHAN_MODE_LCL_LOOP   V_DUART_CHAN_MODE(K_DUART_CHAN_MODE_LCL_LOOP)
 
#define V_DUART_CHAN_MODE_REM_LOOP   V_DUART_CHAN_MODE(K_DUART_CHAN_MODE_REM_LOOP)
 
#define M_DUART_RX_EN   _SB_MAKEMASK1(0)
 
#define M_DUART_RX_DIS   _SB_MAKEMASK1(1)
 
#define M_DUART_TX_EN   _SB_MAKEMASK1(2)
 
#define M_DUART_TX_DIS   _SB_MAKEMASK1(3)
 
#define S_DUART_MISC_CMD   4
 
#define M_DUART_MISC_CMD   _SB_MAKEMASK(3, S_DUART_MISC_CMD)
 
#define V_DUART_MISC_CMD(x)   _SB_MAKEVALUE(x, S_DUART_MISC_CMD)
 
#define K_DUART_MISC_CMD_NOACTION0   0
 
#define K_DUART_MISC_CMD_NOACTION1   1
 
#define K_DUART_MISC_CMD_RESET_RX   2
 
#define K_DUART_MISC_CMD_RESET_TX   3
 
#define K_DUART_MISC_CMD_NOACTION4   4
 
#define K_DUART_MISC_CMD_RESET_BREAK_INT   5
 
#define K_DUART_MISC_CMD_START_BREAK   6
 
#define K_DUART_MISC_CMD_STOP_BREAK   7
 
#define V_DUART_MISC_CMD_NOACTION0   V_DUART_MISC_CMD(K_DUART_MISC_CMD_NOACTION0)
 
#define V_DUART_MISC_CMD_NOACTION1   V_DUART_MISC_CMD(K_DUART_MISC_CMD_NOACTION1)
 
#define V_DUART_MISC_CMD_RESET_RX   V_DUART_MISC_CMD(K_DUART_MISC_CMD_RESET_RX)
 
#define V_DUART_MISC_CMD_RESET_TX   V_DUART_MISC_CMD(K_DUART_MISC_CMD_RESET_TX)
 
#define V_DUART_MISC_CMD_NOACTION4   V_DUART_MISC_CMD(K_DUART_MISC_CMD_NOACTION4)
 
#define V_DUART_MISC_CMD_RESET_BREAK_INT   V_DUART_MISC_CMD(K_DUART_MISC_CMD_RESET_BREAK_INT)
 
#define V_DUART_MISC_CMD_START_BREAK   V_DUART_MISC_CMD(K_DUART_MISC_CMD_START_BREAK)
 
#define V_DUART_MISC_CMD_STOP_BREAK   V_DUART_MISC_CMD(K_DUART_MISC_CMD_STOP_BREAK)
 
#define M_DUART_CMD_RESERVED   _SB_MAKEMASK1(7)
 
#define M_DUART_RX_RDY   _SB_MAKEMASK1(0)
 
#define M_DUART_RX_FFUL   _SB_MAKEMASK1(1)
 
#define M_DUART_TX_RDY   _SB_MAKEMASK1(2)
 
#define M_DUART_TX_EMT   _SB_MAKEMASK1(3)
 
#define M_DUART_OVRUN_ERR   _SB_MAKEMASK1(4)
 
#define M_DUART_PARITY_ERR   _SB_MAKEMASK1(5)
 
#define M_DUART_FRM_ERR   _SB_MAKEMASK1(6)
 
#define M_DUART_RCVD_BRK   _SB_MAKEMASK1(7)
 
#define M_DUART_CLK_COUNTER   _SB_MAKEMASK(12, 0)
 
#define V_DUART_BAUD_RATE(x)   (100000000/((x)*20)-1)
 
#define M_DUART_RX_DATA   _SB_MAKEMASK(8, 0)
 
#define M_DUART_TX_DATA   _SB_MAKEMASK(8, 0)
 
#define M_DUART_IN_PIN0_VAL   _SB_MAKEMASK1(0)
 
#define M_DUART_IN_PIN1_VAL   _SB_MAKEMASK1(1)
 
#define M_DUART_IN_PIN2_VAL   _SB_MAKEMASK1(2)
 
#define M_DUART_IN_PIN3_VAL   _SB_MAKEMASK1(3)
 
#define M_DUART_IN_PIN4_VAL   _SB_MAKEMASK1(4)
 
#define M_DUART_IN_PIN5_VAL   _SB_MAKEMASK1(5)
 
#define M_DUART_RIN0_PIN   _SB_MAKEMASK1(6)
 
#define M_DUART_RIN1_PIN   _SB_MAKEMASK1(7)
 
#define S_DUART_IN_PIN_VAL   0
 
#define M_DUART_IN_PIN_VAL   _SB_MAKEMASK(4, S_DUART_IN_PIN_VAL)
 
#define S_DUART_IN_PIN_CHNG   4
 
#define M_DUART_IN_PIN_CHNG   _SB_MAKEMASK(4, S_DUART_IN_PIN_CHNG)
 
#define M_DUART_OPCR_RESERVED0   _SB_MAKEMASK1(0) /* must be zero */
 
#define M_DUART_OPC2_SEL   _SB_MAKEMASK1(1)
 
#define M_DUART_OPCR_RESERVED1   _SB_MAKEMASK1(2) /* must be zero */
 
#define M_DUART_OPC3_SEL   _SB_MAKEMASK1(3)
 
#define M_DUART_OPCR_RESERVED2   _SB_MAKEMASK(4, 4) /* must be zero */
 
#define M_DUART_IP0_CHNG_ENA   _SB_MAKEMASK1(0)
 
#define M_DUART_IP1_CHNG_ENA   _SB_MAKEMASK1(1)
 
#define M_DUART_IP2_CHNG_ENA   _SB_MAKEMASK1(2)
 
#define M_DUART_IP3_CHNG_ENA   _SB_MAKEMASK1(3)
 
#define M_DUART_ACR_RESERVED   _SB_MAKEMASK(4, 4)
 
#define M_DUART_CTS_CHNG_ENA   _SB_MAKEMASK1(0)
 
#define M_DUART_CIN_CHNG_ENA   _SB_MAKEMASK1(2)
 
#define M_DUART_ISR_TX_A   _SB_MAKEMASK1(0)
 
#define S_DUART_ISR_RX_A   1
 
#define M_DUART_ISR_RX_A   _SB_MAKEMASK1(S_DUART_ISR_RX_A)
 
#define V_DUART_ISR_RX_A(x)   _SB_MAKEVALUE(x, S_DUART_ISR_RX_A)
 
#define G_DUART_ISR_RX_A(x)   _SB_GETVALUE(x, S_DUART_ISR_RX_A, M_DUART_ISR_RX_A)
 
#define M_DUART_ISR_BRK_A   _SB_MAKEMASK1(2)
 
#define M_DUART_ISR_IN_A   _SB_MAKEMASK1(3)
 
#define M_DUART_ISR_ALL_A   _SB_MAKEMASK(4, 0)
 
#define M_DUART_ISR_TX_B   _SB_MAKEMASK1(4)
 
#define M_DUART_ISR_RX_B   _SB_MAKEMASK1(5)
 
#define M_DUART_ISR_BRK_B   _SB_MAKEMASK1(6)
 
#define M_DUART_ISR_IN_B   _SB_MAKEMASK1(7)
 
#define M_DUART_ISR_ALL_B   _SB_MAKEMASK(4, 4)
 
#define M_DUART_ISR_TX   _SB_MAKEMASK1(0)
 
#define M_DUART_ISR_RX   _SB_MAKEMASK1(1)
 
#define M_DUART_ISR_BRK   _SB_MAKEMASK1(2)
 
#define M_DUART_ISR_IN   _SB_MAKEMASK1(3)
 
#define M_DUART_ISR_ALL   _SB_MAKEMASK(4, 0)
 
#define M_DUART_ISR_RESERVED   _SB_MAKEMASK(4, 4)
 
#define M_DUART_IMR_TX_A   _SB_MAKEMASK1(0)
 
#define M_DUART_IMR_RX_A   _SB_MAKEMASK1(1)
 
#define M_DUART_IMR_BRK_A   _SB_MAKEMASK1(2)
 
#define M_DUART_IMR_IN_A   _SB_MAKEMASK1(3)
 
#define M_DUART_IMR_ALL_A   _SB_MAKEMASK(4, 0)
 
#define M_DUART_IMR_TX_B   _SB_MAKEMASK1(4)
 
#define M_DUART_IMR_RX_B   _SB_MAKEMASK1(5)
 
#define M_DUART_IMR_BRK_B   _SB_MAKEMASK1(6)
 
#define M_DUART_IMR_IN_B   _SB_MAKEMASK1(7)
 
#define M_DUART_IMR_ALL_B   _SB_MAKEMASK(4, 4)
 
#define M_DUART_IMR_TX   _SB_MAKEMASK1(0)
 
#define M_DUART_IMR_RX   _SB_MAKEMASK1(1)
 
#define M_DUART_IMR_BRK   _SB_MAKEMASK1(2)
 
#define M_DUART_IMR_IN   _SB_MAKEMASK1(3)
 
#define M_DUART_IMR_ALL   _SB_MAKEMASK(4, 0)
 
#define M_DUART_IMR_RESERVED   _SB_MAKEMASK(4, 4)
 
#define M_DUART_SET_OPR0   _SB_MAKEMASK1(0)
 
#define M_DUART_SET_OPR1   _SB_MAKEMASK1(1)
 
#define M_DUART_SET_OPR2   _SB_MAKEMASK1(2)
 
#define M_DUART_SET_OPR3   _SB_MAKEMASK1(3)
 
#define M_DUART_OPSR_RESERVED   _SB_MAKEMASK(4, 4)
 
#define M_DUART_CLR_OPR0   _SB_MAKEMASK1(0)
 
#define M_DUART_CLR_OPR1   _SB_MAKEMASK1(1)
 
#define M_DUART_CLR_OPR2   _SB_MAKEMASK1(2)
 
#define M_DUART_CLR_OPR3   _SB_MAKEMASK1(3)
 
#define M_DUART_OPCR_RESERVED   _SB_MAKEMASK(4, 4)
 
#define M_DUART_OUT_PIN_SET0   _SB_MAKEMASK1(0)
 
#define M_DUART_OUT_PIN_SET1   _SB_MAKEMASK1(1)
 
#define M_DUART_OUT_PIN_CLR0   _SB_MAKEMASK1(2)
 
#define M_DUART_OUT_PIN_CLR1   _SB_MAKEMASK1(3)
 
#define M_DUART_OPRR_RESERVED   _SB_MAKEMASK(4, 4)
 
#define M_DUART_OUT_PIN_SET(chan)   (chan == 0 ? M_DUART_OUT_PIN_SET0 : M_DUART_OUT_PIN_SET1)
 
#define M_DUART_OUT_PIN_CLR(chan)   (chan == 0 ? M_DUART_OUT_PIN_CLR0 : M_DUART_OUT_PIN_CLR1)
 

Macro Definition Documentation

#define G_DUART_ISR_RX_A (   x)    _SB_GETVALUE(x, S_DUART_ISR_RX_A, M_DUART_ISR_RX_A)

Definition at line 246 of file sb1250_uart.h.

#define K_DUART_BITS_PER_CHAR_7   2

Definition at line 54 of file sb1250_uart.h.

#define K_DUART_BITS_PER_CHAR_8   3

Definition at line 55 of file sb1250_uart.h.

#define K_DUART_BITS_PER_CHAR_RSV0   0

Definition at line 52 of file sb1250_uart.h.

#define K_DUART_BITS_PER_CHAR_RSV1   1

Definition at line 53 of file sb1250_uart.h.

#define K_DUART_CHAN_MODE_LCL_LOOP   2

Definition at line 107 of file sb1250_uart.h.

#define K_DUART_CHAN_MODE_NORMAL   0

Definition at line 106 of file sb1250_uart.h.

#define K_DUART_CHAN_MODE_REM_LOOP   3

Definition at line 108 of file sb1250_uart.h.

#define K_DUART_MISC_CMD_NOACTION0   0

Definition at line 129 of file sb1250_uart.h.

#define K_DUART_MISC_CMD_NOACTION1   1

Definition at line 130 of file sb1250_uart.h.

#define K_DUART_MISC_CMD_NOACTION4   4

Definition at line 133 of file sb1250_uart.h.

#define K_DUART_MISC_CMD_RESET_BREAK_INT   5

Definition at line 134 of file sb1250_uart.h.

#define K_DUART_MISC_CMD_RESET_RX   2

Definition at line 131 of file sb1250_uart.h.

#define K_DUART_MISC_CMD_RESET_TX   3

Definition at line 132 of file sb1250_uart.h.

#define K_DUART_MISC_CMD_START_BREAK   6

Definition at line 135 of file sb1250_uart.h.

#define K_DUART_MISC_CMD_STOP_BREAK   7

Definition at line 136 of file sb1250_uart.h.

#define K_DUART_PARITY_MODE_ADD   0

Definition at line 70 of file sb1250_uart.h.

#define K_DUART_PARITY_MODE_ADD_FIXED   1

Definition at line 71 of file sb1250_uart.h.

#define K_DUART_PARITY_MODE_NONE   2

Definition at line 72 of file sb1250_uart.h.

#define M_DUART_ACR_RESERVED   _SB_MAKEMASK(4, 4)

Definition at line 231 of file sb1250_uart.h.

#define M_DUART_BITS_PER_CHAR   _SB_MAKEMASK(2, S_DUART_BITS_PER_CHAR)

Definition at line 49 of file sb1250_uart.h.

#define M_DUART_CHAN_MODE   _SB_MAKEMASK(2, S_DUART_CHAN_MODE)

Definition at line 103 of file sb1250_uart.h.

#define M_DUART_CIN_CHNG_ENA   _SB_MAKEMASK1(2)

Definition at line 234 of file sb1250_uart.h.

#define M_DUART_CLK_COUNTER   _SB_MAKEMASK(12, 0)

Definition at line 171 of file sb1250_uart.h.

#define M_DUART_CLR_OPR0   _SB_MAKEMASK1(0)

Definition at line 320 of file sb1250_uart.h.

#define M_DUART_CLR_OPR1   _SB_MAKEMASK1(1)

Definition at line 321 of file sb1250_uart.h.

#define M_DUART_CLR_OPR2   _SB_MAKEMASK1(2)

Definition at line 322 of file sb1250_uart.h.

#define M_DUART_CLR_OPR3   _SB_MAKEMASK1(3)

Definition at line 323 of file sb1250_uart.h.

#define M_DUART_CMD_RESERVED   _SB_MAKEMASK1(7)

Definition at line 147 of file sb1250_uart.h.

#define M_DUART_CTS_CHNG_ENA   _SB_MAKEMASK1(0)

Definition at line 233 of file sb1250_uart.h.

#define M_DUART_FRM_ERR   _SB_MAKEMASK1(6)

Definition at line 162 of file sb1250_uart.h.

#define M_DUART_IMR_ALL   _SB_MAKEMASK(4, 0)

Definition at line 300 of file sb1250_uart.h.

#define M_DUART_IMR_ALL_A   _SB_MAKEMASK(4, 0)

Definition at line 281 of file sb1250_uart.h.

#define M_DUART_IMR_ALL_B   _SB_MAKEMASK(4, 4)

Definition at line 287 of file sb1250_uart.h.

#define M_DUART_IMR_BRK   _SB_MAKEMASK1(2)

Definition at line 298 of file sb1250_uart.h.

#define M_DUART_IMR_BRK_A   _SB_MAKEMASK1(2)

Definition at line 279 of file sb1250_uart.h.

#define M_DUART_IMR_BRK_B   _SB_MAKEMASK1(6)

Definition at line 285 of file sb1250_uart.h.

#define M_DUART_IMR_IN   _SB_MAKEMASK1(3)

Definition at line 299 of file sb1250_uart.h.

#define M_DUART_IMR_IN_A   _SB_MAKEMASK1(3)

Definition at line 280 of file sb1250_uart.h.

#define M_DUART_IMR_IN_B   _SB_MAKEMASK1(7)

Definition at line 286 of file sb1250_uart.h.

#define M_DUART_IMR_RESERVED   _SB_MAKEMASK(4, 4)

Definition at line 301 of file sb1250_uart.h.

#define M_DUART_IMR_RX   _SB_MAKEMASK1(1)

Definition at line 297 of file sb1250_uart.h.

#define M_DUART_IMR_RX_A   _SB_MAKEMASK1(1)

Definition at line 278 of file sb1250_uart.h.

#define M_DUART_IMR_RX_B   _SB_MAKEMASK1(5)

Definition at line 284 of file sb1250_uart.h.

#define M_DUART_IMR_TX   _SB_MAKEMASK1(0)

Definition at line 296 of file sb1250_uart.h.

#define M_DUART_IMR_TX_A   _SB_MAKEMASK1(0)

Definition at line 277 of file sb1250_uart.h.

#define M_DUART_IMR_TX_B   _SB_MAKEMASK1(4)

Definition at line 283 of file sb1250_uart.h.

#define M_DUART_IN_PIN0_VAL   _SB_MAKEMASK1(0)

Definition at line 190 of file sb1250_uart.h.

#define M_DUART_IN_PIN1_VAL   _SB_MAKEMASK1(1)

Definition at line 191 of file sb1250_uart.h.

#define M_DUART_IN_PIN2_VAL   _SB_MAKEMASK1(2)

Definition at line 192 of file sb1250_uart.h.

#define M_DUART_IN_PIN3_VAL   _SB_MAKEMASK1(3)

Definition at line 193 of file sb1250_uart.h.

#define M_DUART_IN_PIN4_VAL   _SB_MAKEMASK1(4)

Definition at line 194 of file sb1250_uart.h.

#define M_DUART_IN_PIN5_VAL   _SB_MAKEMASK1(5)

Definition at line 195 of file sb1250_uart.h.

#define M_DUART_IN_PIN_CHNG   _SB_MAKEMASK(4, S_DUART_IN_PIN_CHNG)

Definition at line 208 of file sb1250_uart.h.

#define M_DUART_IN_PIN_VAL   _SB_MAKEMASK(4, S_DUART_IN_PIN_VAL)

Definition at line 205 of file sb1250_uart.h.

#define M_DUART_IP0_CHNG_ENA   _SB_MAKEMASK1(0)

Definition at line 227 of file sb1250_uart.h.

#define M_DUART_IP1_CHNG_ENA   _SB_MAKEMASK1(1)

Definition at line 228 of file sb1250_uart.h.

#define M_DUART_IP2_CHNG_ENA   _SB_MAKEMASK1(2)

Definition at line 229 of file sb1250_uart.h.

#define M_DUART_IP3_CHNG_ENA   _SB_MAKEMASK1(3)

Definition at line 230 of file sb1250_uart.h.

#define M_DUART_ISR_ALL   _SB_MAKEMASK(4, 0)

Definition at line 269 of file sb1250_uart.h.

#define M_DUART_ISR_ALL_A   _SB_MAKEMASK(4, 0)

Definition at line 250 of file sb1250_uart.h.

#define M_DUART_ISR_ALL_B   _SB_MAKEMASK(4, 4)

Definition at line 256 of file sb1250_uart.h.

#define M_DUART_ISR_BRK   _SB_MAKEMASK1(2)

Definition at line 267 of file sb1250_uart.h.

#define M_DUART_ISR_BRK_A   _SB_MAKEMASK1(2)

Definition at line 248 of file sb1250_uart.h.

#define M_DUART_ISR_BRK_B   _SB_MAKEMASK1(6)

Definition at line 254 of file sb1250_uart.h.

#define M_DUART_ISR_IN   _SB_MAKEMASK1(3)

Definition at line 268 of file sb1250_uart.h.

#define M_DUART_ISR_IN_A   _SB_MAKEMASK1(3)

Definition at line 249 of file sb1250_uart.h.

#define M_DUART_ISR_IN_B   _SB_MAKEMASK1(7)

Definition at line 255 of file sb1250_uart.h.

#define M_DUART_ISR_RESERVED   _SB_MAKEMASK(4, 4)

Definition at line 270 of file sb1250_uart.h.

#define M_DUART_ISR_RX   _SB_MAKEMASK1(1)

Definition at line 266 of file sb1250_uart.h.

#define M_DUART_ISR_RX_A   _SB_MAKEMASK1(S_DUART_ISR_RX_A)

Definition at line 244 of file sb1250_uart.h.

#define M_DUART_ISR_RX_B   _SB_MAKEMASK1(5)

Definition at line 253 of file sb1250_uart.h.

#define M_DUART_ISR_TX   _SB_MAKEMASK1(0)

Definition at line 265 of file sb1250_uart.h.

#define M_DUART_ISR_TX_A   _SB_MAKEMASK1(0)

Definition at line 241 of file sb1250_uart.h.

#define M_DUART_ISR_TX_B   _SB_MAKEMASK1(4)

Definition at line 252 of file sb1250_uart.h.

#define M_DUART_MISC_CMD   _SB_MAKEMASK(3, S_DUART_MISC_CMD)

Definition at line 126 of file sb1250_uart.h.

#define M_DUART_MODE_RESERVED1   _SB_MAKEMASK(3, 0) /* ignored */

Definition at line 92 of file sb1250_uart.h.

#define M_DUART_MODE_RESERVED2   _SB_MAKEMASK1(5) /* must be zero */

Definition at line 100 of file sb1250_uart.h.

#define M_DUART_OPC2_SEL   _SB_MAKEMASK1(1)

Definition at line 217 of file sb1250_uart.h.

#define M_DUART_OPC3_SEL   _SB_MAKEMASK1(3)

Definition at line 219 of file sb1250_uart.h.

#define M_DUART_OPCR_RESERVED   _SB_MAKEMASK(4, 4)

Definition at line 324 of file sb1250_uart.h.

#define M_DUART_OPCR_RESERVED0   _SB_MAKEMASK1(0) /* must be zero */

Definition at line 216 of file sb1250_uart.h.

#define M_DUART_OPCR_RESERVED1   _SB_MAKEMASK1(2) /* must be zero */

Definition at line 218 of file sb1250_uart.h.

#define M_DUART_OPCR_RESERVED2   _SB_MAKEMASK(4, 4) /* must be zero */

Definition at line 220 of file sb1250_uart.h.

#define M_DUART_OPRR_RESERVED   _SB_MAKEMASK(4, 4)

Definition at line 335 of file sb1250_uart.h.

#define M_DUART_OPSR_RESERVED   _SB_MAKEMASK(4, 4)

Definition at line 313 of file sb1250_uart.h.

#define M_DUART_OUT_PIN_CLR (   chan)    (chan == 0 ? M_DUART_OUT_PIN_CLR0 : M_DUART_OUT_PIN_CLR1)

Definition at line 339 of file sb1250_uart.h.

#define M_DUART_OUT_PIN_CLR0   _SB_MAKEMASK1(2)

Definition at line 333 of file sb1250_uart.h.

#define M_DUART_OUT_PIN_CLR1   _SB_MAKEMASK1(3)

Definition at line 334 of file sb1250_uart.h.

#define M_DUART_OUT_PIN_SET (   chan)    (chan == 0 ? M_DUART_OUT_PIN_SET0 : M_DUART_OUT_PIN_SET1)

Definition at line 337 of file sb1250_uart.h.

#define M_DUART_OUT_PIN_SET0   _SB_MAKEMASK1(0)

Definition at line 331 of file sb1250_uart.h.

#define M_DUART_OUT_PIN_SET1   _SB_MAKEMASK1(1)

Definition at line 332 of file sb1250_uart.h.

#define M_DUART_OVRUN_ERR   _SB_MAKEMASK1(4)

Definition at line 160 of file sb1250_uart.h.

#define M_DUART_PARITY_ERR   _SB_MAKEMASK1(5)

Definition at line 161 of file sb1250_uart.h.

#define M_DUART_PARITY_MODE   _SB_MAKEMASK(2, S_DUART_PARITY_MODE)

Definition at line 67 of file sb1250_uart.h.

#define M_DUART_PARITY_TYPE_EVEN   0x00

Definition at line 63 of file sb1250_uart.h.

#define M_DUART_PARITY_TYPE_ODD   _SB_MAKEMASK1(2)

Definition at line 64 of file sb1250_uart.h.

#define M_DUART_RCVD_BRK   _SB_MAKEMASK1(7)

Definition at line 163 of file sb1250_uart.h.

#define M_DUART_RIN0_PIN   _SB_MAKEMASK1(6)

Definition at line 196 of file sb1250_uart.h.

#define M_DUART_RIN1_PIN   _SB_MAKEMASK1(7)

Definition at line 197 of file sb1250_uart.h.

#define M_DUART_RX_DATA   _SB_MAKEMASK(8, 0)

Definition at line 182 of file sb1250_uart.h.

#define M_DUART_RX_DIS   _SB_MAKEMASK1(1)

Definition at line 121 of file sb1250_uart.h.

#define M_DUART_RX_EN   _SB_MAKEMASK1(0)

Definition at line 120 of file sb1250_uart.h.

#define M_DUART_RX_FFUL   _SB_MAKEMASK1(1)

Definition at line 157 of file sb1250_uart.h.

#define M_DUART_RX_IRQ_SEL_RXFULL   _SB_MAKEMASK1(6)

Definition at line 82 of file sb1250_uart.h.

#define M_DUART_RX_IRQ_SEL_RXRDY   0

Definition at line 81 of file sb1250_uart.h.

#define M_DUART_RX_RDY   _SB_MAKEMASK1(0)

Definition at line 156 of file sb1250_uart.h.

#define M_DUART_RX_RTS_ENA   _SB_MAKEMASK1(7)

Definition at line 84 of file sb1250_uart.h.

#define M_DUART_SET_OPR0   _SB_MAKEMASK1(0)

Definition at line 309 of file sb1250_uart.h.

#define M_DUART_SET_OPR1   _SB_MAKEMASK1(1)

Definition at line 310 of file sb1250_uart.h.

#define M_DUART_SET_OPR2   _SB_MAKEMASK1(2)

Definition at line 311 of file sb1250_uart.h.

#define M_DUART_SET_OPR3   _SB_MAKEMASK1(3)

Definition at line 312 of file sb1250_uart.h.

#define M_DUART_STOP_BIT_LEN_1   0

Definition at line 95 of file sb1250_uart.h.

#define M_DUART_STOP_BIT_LEN_2   _SB_MAKEMASK1(3)

Definition at line 94 of file sb1250_uart.h.

#define M_DUART_TX_CTS_ENA   _SB_MAKEMASK1(4)

Definition at line 97 of file sb1250_uart.h.

#define M_DUART_TX_DATA   _SB_MAKEMASK(8, 0)

Definition at line 183 of file sb1250_uart.h.

#define M_DUART_TX_DIS   _SB_MAKEMASK1(3)

Definition at line 123 of file sb1250_uart.h.

#define M_DUART_TX_EMT   _SB_MAKEMASK1(3)

Definition at line 159 of file sb1250_uart.h.

#define M_DUART_TX_EN   _SB_MAKEMASK1(2)

Definition at line 122 of file sb1250_uart.h.

#define M_DUART_TX_IRQ_SEL_TXEMPT   _SB_MAKEMASK1(5)

Definition at line 79 of file sb1250_uart.h.

#define M_DUART_TX_IRQ_SEL_TXRDY   0

Definition at line 78 of file sb1250_uart.h.

#define M_DUART_TX_RDY   _SB_MAKEMASK1(2)

Definition at line 158 of file sb1250_uart.h.

#define S_DUART_BITS_PER_CHAR   0

Definition at line 48 of file sb1250_uart.h.

#define S_DUART_CHAN_MODE   6

Definition at line 102 of file sb1250_uart.h.

#define S_DUART_IN_PIN_CHNG   4

Definition at line 207 of file sb1250_uart.h.

#define S_DUART_IN_PIN_VAL   0

Definition at line 204 of file sb1250_uart.h.

#define S_DUART_ISR_RX_A   1

Definition at line 243 of file sb1250_uart.h.

#define S_DUART_MISC_CMD   4

Definition at line 125 of file sb1250_uart.h.

#define S_DUART_PARITY_MODE   3

Definition at line 66 of file sb1250_uart.h.

#define V_DUART_BAUD_RATE (   x)    (100000000/((x)*20)-1)

Definition at line 172 of file sb1250_uart.h.

#define V_DUART_BITS_PER_CHAR (   x)    _SB_MAKEVALUE(x, S_DUART_BITS_PER_CHAR)

Definition at line 50 of file sb1250_uart.h.

#define V_DUART_BITS_PER_CHAR_7   V_DUART_BITS_PER_CHAR(K_DUART_BITS_PER_CHAR_7)

Definition at line 59 of file sb1250_uart.h.

#define V_DUART_BITS_PER_CHAR_8   V_DUART_BITS_PER_CHAR(K_DUART_BITS_PER_CHAR_8)

Definition at line 60 of file sb1250_uart.h.

#define V_DUART_BITS_PER_CHAR_RSV0   V_DUART_BITS_PER_CHAR(K_DUART_BITS_PER_CHAR_RSV0)

Definition at line 57 of file sb1250_uart.h.

#define V_DUART_BITS_PER_CHAR_RSV1   V_DUART_BITS_PER_CHAR(K_DUART_BITS_PER_CHAR_RSV1)

Definition at line 58 of file sb1250_uart.h.

#define V_DUART_CHAN_MODE (   x)    _SB_MAKEVALUE(x, S_DUART_CHAN_MODE)

Definition at line 104 of file sb1250_uart.h.

#define V_DUART_CHAN_MODE_LCL_LOOP   V_DUART_CHAN_MODE(K_DUART_CHAN_MODE_LCL_LOOP)

Definition at line 111 of file sb1250_uart.h.

#define V_DUART_CHAN_MODE_NORMAL   V_DUART_CHAN_MODE(K_DUART_CHAN_MODE_NORMAL)

Definition at line 110 of file sb1250_uart.h.

#define V_DUART_CHAN_MODE_REM_LOOP   V_DUART_CHAN_MODE(K_DUART_CHAN_MODE_REM_LOOP)

Definition at line 112 of file sb1250_uart.h.

#define V_DUART_ISR_RX_A (   x)    _SB_MAKEVALUE(x, S_DUART_ISR_RX_A)

Definition at line 245 of file sb1250_uart.h.

#define V_DUART_MISC_CMD (   x)    _SB_MAKEVALUE(x, S_DUART_MISC_CMD)

Definition at line 127 of file sb1250_uart.h.

#define V_DUART_MISC_CMD_NOACTION0   V_DUART_MISC_CMD(K_DUART_MISC_CMD_NOACTION0)

Definition at line 138 of file sb1250_uart.h.

#define V_DUART_MISC_CMD_NOACTION1   V_DUART_MISC_CMD(K_DUART_MISC_CMD_NOACTION1)

Definition at line 139 of file sb1250_uart.h.

#define V_DUART_MISC_CMD_NOACTION4   V_DUART_MISC_CMD(K_DUART_MISC_CMD_NOACTION4)

Definition at line 142 of file sb1250_uart.h.

#define V_DUART_MISC_CMD_RESET_BREAK_INT   V_DUART_MISC_CMD(K_DUART_MISC_CMD_RESET_BREAK_INT)

Definition at line 143 of file sb1250_uart.h.

#define V_DUART_MISC_CMD_RESET_RX   V_DUART_MISC_CMD(K_DUART_MISC_CMD_RESET_RX)

Definition at line 140 of file sb1250_uart.h.

#define V_DUART_MISC_CMD_RESET_TX   V_DUART_MISC_CMD(K_DUART_MISC_CMD_RESET_TX)

Definition at line 141 of file sb1250_uart.h.

#define V_DUART_MISC_CMD_START_BREAK   V_DUART_MISC_CMD(K_DUART_MISC_CMD_START_BREAK)

Definition at line 144 of file sb1250_uart.h.

#define V_DUART_MISC_CMD_STOP_BREAK   V_DUART_MISC_CMD(K_DUART_MISC_CMD_STOP_BREAK)

Definition at line 145 of file sb1250_uart.h.

#define V_DUART_PARITY_MODE (   x)    _SB_MAKEVALUE(x, S_DUART_PARITY_MODE)

Definition at line 68 of file sb1250_uart.h.

#define V_DUART_PARITY_MODE_ADD   V_DUART_PARITY_MODE(K_DUART_PARITY_MODE_ADD)

Definition at line 74 of file sb1250_uart.h.

#define V_DUART_PARITY_MODE_ADD_FIXED   V_DUART_PARITY_MODE(K_DUART_PARITY_MODE_ADD_FIXED)

Definition at line 75 of file sb1250_uart.h.

#define V_DUART_PARITY_MODE_NONE   V_DUART_PARITY_MODE(K_DUART_PARITY_MODE_NONE)

Definition at line 76 of file sb1250_uart.h.