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

Go to the source code of this file.

Macros

#define M_SYNCSER_CRC_MODE   _SB_MAKEMASK1(0)
 
#define M_SYNCSER_MSB_FIRST   _SB_MAKEMASK1(1)
 
#define S_SYNCSER_FLAG_NUM   2
 
#define M_SYNCSER_FLAG_NUM   _SB_MAKEMASK(4, S_SYNCSER_FLAG_NUM)
 
#define V_SYNCSER_FLAG_NUM   _SB_MAKEVALUE(x, S_SYNCSER_FLAG_NUM)
 
#define M_SYNCSER_FLAG_EN   _SB_MAKEMASK1(6)
 
#define M_SYNCSER_HDLC_EN   _SB_MAKEMASK1(7)
 
#define M_SYNCSER_LOOP_MODE   _SB_MAKEMASK1(8)
 
#define M_SYNCSER_LOOPBACK   _SB_MAKEMASK1(9)
 
#define M_SYNCSER_RXCLK_INV   _SB_MAKEMASK1(0)
 
#define M_SYNCSER_RXCLK_EXT   _SB_MAKEMASK1(1)
 
#define S_SYNCSER_RXSYNC_DLY   2
 
#define M_SYNCSER_RXSYNC_DLY   _SB_MAKEMASK(2, S_SYNCSER_RXSYNC_DLY)
 
#define V_SYNCSER_RXSYNC_DLY(x)   _SB_MAKEVALUE(x, S_SYNCSER_RXSYNC_DLY)
 
#define M_SYNCSER_RXSYNC_LOW   _SB_MAKEMASK1(4)
 
#define M_SYNCSER_RXSTRB_LOW   _SB_MAKEMASK1(5)
 
#define M_SYNCSER_RXSYNC_EDGE   _SB_MAKEMASK1(6)
 
#define M_SYNCSER_RXSYNC_INT   _SB_MAKEMASK1(7)
 
#define M_SYNCSER_TXCLK_INV   _SB_MAKEMASK1(8)
 
#define M_SYNCSER_TXCLK_EXT   _SB_MAKEMASK1(9)
 
#define S_SYNCSER_TXSYNC_DLY   10
 
#define M_SYNCSER_TXSYNC_DLY   _SB_MAKEMASK(2, S_SYNCSER_TXSYNC_DLY)
 
#define V_SYNCSER_TXSYNC_DLY(x)   _SB_MAKEVALUE(x, S_SYNCSER_TXSYNC_DLY)
 
#define M_SYNCSER_TXSYNC_LOW   _SB_MAKEMASK1(12)
 
#define M_SYNCSER_TXSTRB_LOW   _SB_MAKEMASK1(13)
 
#define M_SYNCSER_TXSYNC_EDGE   _SB_MAKEMASK1(14)
 
#define M_SYNCSER_TXSYNC_INT   _SB_MAKEMASK1(15)
 
#define M_SYNCSER_CMD_RX_EN   _SB_MAKEMASK1(0)
 
#define M_SYNCSER_CMD_TX_EN   _SB_MAKEMASK1(1)
 
#define M_SYNCSER_CMD_RX_RESET   _SB_MAKEMASK1(2)
 
#define M_SYNCSER_CMD_TX_RESET   _SB_MAKEMASK1(3)
 
#define M_SYNCSER_CMD_TX_PAUSE   _SB_MAKEMASK1(5)
 
#define M_SYNCSER_DMA_RX_EN   _SB_MAKEMASK1(0)
 
#define M_SYNCSER_DMA_TX_EN   _SB_MAKEMASK1(4)
 
#define M_SYNCSER_RX_CRCERR   _SB_MAKEMASK1(0)
 
#define M_SYNCSER_RX_ABORT   _SB_MAKEMASK1(1)
 
#define M_SYNCSER_RX_OCTET   _SB_MAKEMASK1(2)
 
#define M_SYNCSER_RX_LONGFRM   _SB_MAKEMASK1(3)
 
#define M_SYNCSER_RX_SHORTFRM   _SB_MAKEMASK1(4)
 
#define M_SYNCSER_RX_OVERRUN   _SB_MAKEMASK1(5)
 
#define M_SYNCSER_RX_SYNC_ERR   _SB_MAKEMASK1(6)
 
#define M_SYNCSER_TX_CRCERR   _SB_MAKEMASK1(8)
 
#define M_SYNCSER_TX_UNDERRUN   _SB_MAKEMASK1(9)
 
#define M_SYNCSER_TX_SYNC_ERR   _SB_MAKEMASK1(10)
 
#define M_SYNCSER_TX_PAUSE_COMPLETE   _SB_MAKEMASK1(11)
 
#define M_SYNCSER_RX_EOP_COUNT   _SB_MAKEMASK1(16)
 
#define M_SYNCSER_RX_EOP_TIMER   _SB_MAKEMASK1(17)
 
#define M_SYNCSER_RX_EOP_SEEN   _SB_MAKEMASK1(18)
 
#define M_SYNCSER_RX_HWM   _SB_MAKEMASK1(19)
 
#define M_SYNCSER_RX_LWM   _SB_MAKEMASK1(20)
 
#define M_SYNCSER_RX_DSCR   _SB_MAKEMASK1(21)
 
#define M_SYNCSER_RX_DERR   _SB_MAKEMASK1(22)
 
#define M_SYNCSER_TX_EOP_COUNT   _SB_MAKEMASK1(24)
 
#define M_SYNCSER_TX_EOP_TIMER   _SB_MAKEMASK1(25)
 
#define M_SYNCSER_TX_EOP_SEEN   _SB_MAKEMASK1(26)
 
#define M_SYNCSER_TX_HWM   _SB_MAKEMASK1(27)
 
#define M_SYNCSER_TX_LWM   _SB_MAKEMASK1(28)
 
#define M_SYNCSER_TX_DSCR   _SB_MAKEMASK1(29)
 
#define M_SYNCSER_TX_DERR   _SB_MAKEMASK1(30)
 
#define M_SYNCSER_TX_DZERO   _SB_MAKEMASK1(31)
 
#define M_SYNCSER_SEQ_LAST   _SB_MAKEMASK1(0)
 
#define M_SYNCSER_SEQ_BYTE   _SB_MAKEMASK1(1)
 
#define S_SYNCSER_SEQ_COUNT   2
 
#define M_SYNCSER_SEQ_COUNT   _SB_MAKEMASK(4, S_SYNCSER_SEQ_COUNT)
 
#define V_SYNCSER_SEQ_COUNT(x)   _SB_MAKEVALUE(x, S_SYNCSER_SEQ_COUNT)
 
#define M_SYNCSER_SEQ_ENABLE   _SB_MAKEMASK1(6)
 
#define M_SYNCSER_SEQ_STROBE   _SB_MAKEMASK1(7)
 

Macro Definition Documentation

#define M_SYNCSER_CMD_RX_EN   _SB_MAKEMASK1(0)

Definition at line 88 of file sb1250_syncser.h.

#define M_SYNCSER_CMD_RX_RESET   _SB_MAKEMASK1(2)

Definition at line 90 of file sb1250_syncser.h.

#define M_SYNCSER_CMD_TX_EN   _SB_MAKEMASK1(1)

Definition at line 89 of file sb1250_syncser.h.

#define M_SYNCSER_CMD_TX_PAUSE   _SB_MAKEMASK1(5)

Definition at line 92 of file sb1250_syncser.h.

#define M_SYNCSER_CMD_TX_RESET   _SB_MAKEMASK1(3)

Definition at line 91 of file sb1250_syncser.h.

#define M_SYNCSER_CRC_MODE   _SB_MAKEMASK1(0)

Definition at line 42 of file sb1250_syncser.h.

#define M_SYNCSER_DMA_RX_EN   _SB_MAKEMASK1(0)

Definition at line 98 of file sb1250_syncser.h.

#define M_SYNCSER_DMA_TX_EN   _SB_MAKEMASK1(4)

Definition at line 99 of file sb1250_syncser.h.

#define M_SYNCSER_FLAG_EN   _SB_MAKEMASK1(6)

Definition at line 49 of file sb1250_syncser.h.

#define M_SYNCSER_FLAG_NUM   _SB_MAKEMASK(4, S_SYNCSER_FLAG_NUM)

Definition at line 46 of file sb1250_syncser.h.

#define M_SYNCSER_HDLC_EN   _SB_MAKEMASK1(7)

Definition at line 50 of file sb1250_syncser.h.

#define M_SYNCSER_LOOP_MODE   _SB_MAKEMASK1(8)

Definition at line 51 of file sb1250_syncser.h.

#define M_SYNCSER_LOOPBACK   _SB_MAKEMASK1(9)

Definition at line 52 of file sb1250_syncser.h.

#define M_SYNCSER_MSB_FIRST   _SB_MAKEMASK1(1)

Definition at line 43 of file sb1250_syncser.h.

#define M_SYNCSER_RX_ABORT   _SB_MAKEMASK1(1)

Definition at line 106 of file sb1250_syncser.h.

#define M_SYNCSER_RX_CRCERR   _SB_MAKEMASK1(0)

Definition at line 105 of file sb1250_syncser.h.

#define M_SYNCSER_RX_DERR   _SB_MAKEMASK1(22)

Definition at line 122 of file sb1250_syncser.h.

#define M_SYNCSER_RX_DSCR   _SB_MAKEMASK1(21)

Definition at line 121 of file sb1250_syncser.h.

#define M_SYNCSER_RX_EOP_COUNT   _SB_MAKEMASK1(16)

Definition at line 116 of file sb1250_syncser.h.

#define M_SYNCSER_RX_EOP_SEEN   _SB_MAKEMASK1(18)

Definition at line 118 of file sb1250_syncser.h.

#define M_SYNCSER_RX_EOP_TIMER   _SB_MAKEMASK1(17)

Definition at line 117 of file sb1250_syncser.h.

#define M_SYNCSER_RX_HWM   _SB_MAKEMASK1(19)

Definition at line 119 of file sb1250_syncser.h.

#define M_SYNCSER_RX_LONGFRM   _SB_MAKEMASK1(3)

Definition at line 108 of file sb1250_syncser.h.

#define M_SYNCSER_RX_LWM   _SB_MAKEMASK1(20)

Definition at line 120 of file sb1250_syncser.h.

#define M_SYNCSER_RX_OCTET   _SB_MAKEMASK1(2)

Definition at line 107 of file sb1250_syncser.h.

#define M_SYNCSER_RX_OVERRUN   _SB_MAKEMASK1(5)

Definition at line 110 of file sb1250_syncser.h.

#define M_SYNCSER_RX_SHORTFRM   _SB_MAKEMASK1(4)

Definition at line 109 of file sb1250_syncser.h.

#define M_SYNCSER_RX_SYNC_ERR   _SB_MAKEMASK1(6)

Definition at line 111 of file sb1250_syncser.h.

#define M_SYNCSER_RXCLK_EXT   _SB_MAKEMASK1(1)

Definition at line 59 of file sb1250_syncser.h.

#define M_SYNCSER_RXCLK_INV   _SB_MAKEMASK1(0)

Definition at line 58 of file sb1250_syncser.h.

#define M_SYNCSER_RXSTRB_LOW   _SB_MAKEMASK1(5)

Definition at line 66 of file sb1250_syncser.h.

#define M_SYNCSER_RXSYNC_DLY   _SB_MAKEMASK(2, S_SYNCSER_RXSYNC_DLY)

Definition at line 62 of file sb1250_syncser.h.

#define M_SYNCSER_RXSYNC_EDGE   _SB_MAKEMASK1(6)

Definition at line 68 of file sb1250_syncser.h.

#define M_SYNCSER_RXSYNC_INT   _SB_MAKEMASK1(7)

Definition at line 69 of file sb1250_syncser.h.

#define M_SYNCSER_RXSYNC_LOW   _SB_MAKEMASK1(4)

Definition at line 65 of file sb1250_syncser.h.

#define M_SYNCSER_SEQ_BYTE   _SB_MAKEMASK1(1)

Definition at line 137 of file sb1250_syncser.h.

#define M_SYNCSER_SEQ_COUNT   _SB_MAKEMASK(4, S_SYNCSER_SEQ_COUNT)

Definition at line 140 of file sb1250_syncser.h.

#define M_SYNCSER_SEQ_ENABLE   _SB_MAKEMASK1(6)

Definition at line 143 of file sb1250_syncser.h.

#define M_SYNCSER_SEQ_LAST   _SB_MAKEMASK1(0)

Definition at line 136 of file sb1250_syncser.h.

#define M_SYNCSER_SEQ_STROBE   _SB_MAKEMASK1(7)

Definition at line 144 of file sb1250_syncser.h.

#define M_SYNCSER_TX_CRCERR   _SB_MAKEMASK1(8)

Definition at line 112 of file sb1250_syncser.h.

#define M_SYNCSER_TX_DERR   _SB_MAKEMASK1(30)

Definition at line 129 of file sb1250_syncser.h.

#define M_SYNCSER_TX_DSCR   _SB_MAKEMASK1(29)

Definition at line 128 of file sb1250_syncser.h.

#define M_SYNCSER_TX_DZERO   _SB_MAKEMASK1(31)

Definition at line 130 of file sb1250_syncser.h.

#define M_SYNCSER_TX_EOP_COUNT   _SB_MAKEMASK1(24)

Definition at line 123 of file sb1250_syncser.h.

#define M_SYNCSER_TX_EOP_SEEN   _SB_MAKEMASK1(26)

Definition at line 125 of file sb1250_syncser.h.

#define M_SYNCSER_TX_EOP_TIMER   _SB_MAKEMASK1(25)

Definition at line 124 of file sb1250_syncser.h.

#define M_SYNCSER_TX_HWM   _SB_MAKEMASK1(27)

Definition at line 126 of file sb1250_syncser.h.

#define M_SYNCSER_TX_LWM   _SB_MAKEMASK1(28)

Definition at line 127 of file sb1250_syncser.h.

#define M_SYNCSER_TX_PAUSE_COMPLETE   _SB_MAKEMASK1(11)

Definition at line 115 of file sb1250_syncser.h.

#define M_SYNCSER_TX_SYNC_ERR   _SB_MAKEMASK1(10)

Definition at line 114 of file sb1250_syncser.h.

#define M_SYNCSER_TX_UNDERRUN   _SB_MAKEMASK1(9)

Definition at line 113 of file sb1250_syncser.h.

#define M_SYNCSER_TXCLK_EXT   _SB_MAKEMASK1(9)

Definition at line 72 of file sb1250_syncser.h.

#define M_SYNCSER_TXCLK_INV   _SB_MAKEMASK1(8)

Definition at line 71 of file sb1250_syncser.h.

#define M_SYNCSER_TXSTRB_LOW   _SB_MAKEMASK1(13)

Definition at line 79 of file sb1250_syncser.h.

#define M_SYNCSER_TXSYNC_DLY   _SB_MAKEMASK(2, S_SYNCSER_TXSYNC_DLY)

Definition at line 75 of file sb1250_syncser.h.

#define M_SYNCSER_TXSYNC_EDGE   _SB_MAKEMASK1(14)

Definition at line 81 of file sb1250_syncser.h.

#define M_SYNCSER_TXSYNC_INT   _SB_MAKEMASK1(15)

Definition at line 82 of file sb1250_syncser.h.

#define M_SYNCSER_TXSYNC_LOW   _SB_MAKEMASK1(12)

Definition at line 78 of file sb1250_syncser.h.

#define S_SYNCSER_FLAG_NUM   2

Definition at line 45 of file sb1250_syncser.h.

#define S_SYNCSER_RXSYNC_DLY   2

Definition at line 61 of file sb1250_syncser.h.

#define S_SYNCSER_SEQ_COUNT   2

Definition at line 139 of file sb1250_syncser.h.

#define S_SYNCSER_TXSYNC_DLY   10

Definition at line 74 of file sb1250_syncser.h.

#define V_SYNCSER_FLAG_NUM   _SB_MAKEVALUE(x, S_SYNCSER_FLAG_NUM)

Definition at line 47 of file sb1250_syncser.h.

#define V_SYNCSER_RXSYNC_DLY (   x)    _SB_MAKEVALUE(x, S_SYNCSER_RXSYNC_DLY)

Definition at line 63 of file sb1250_syncser.h.

#define V_SYNCSER_SEQ_COUNT (   x)    _SB_MAKEVALUE(x, S_SYNCSER_SEQ_COUNT)

Definition at line 141 of file sb1250_syncser.h.

#define V_SYNCSER_TXSYNC_DLY (   x)    _SB_MAKEVALUE(x, S_SYNCSER_TXSYNC_DLY)

Definition at line 76 of file sb1250_syncser.h.