Go to the documentation of this file.
4 #include <asm/byteorder.h>
8 volatile unsigned char unused0[3];
10 volatile unsigned char unused1[3];
11 volatile unsigned char data;
15 volatile unsigned char data;
30 #define BRG_TO_BPS(brg, freq) ((freq) / 2 / ((brg) + 2))
31 #define BPS_TO_BRG(bps, freq) ((((freq) + (bps)) / (2 * (bps))) - 2)
56 #define POINT_HIGH 0x8
57 #define RES_EXT_INT 0x10
58 #define SEND_ABORT 0x18
59 #define RES_RxINT_FC 0x20
62 #define RES_H_IUS 0x38
64 #define RES_Rx_CRC 0x40
65 #define RES_Tx_CRC 0x80
66 #define RES_EOM_L 0xC0
70 #define EXT_INT_ENAB 0x1
71 #define TxINT_ENAB 0x2
75 #define RxINT_FCERR 0x8
76 #define INT_ALL_Rx 0x10
77 #define INT_ERR_Rx 0x18
78 #define RxINT_MASK 0x18
80 #define WT_RDY_RT 0x20
81 #define WT_FN_RDYFN 0x40
82 #define WT_RDY_ENAB 0x80
89 #define SYNC_L_INH 0x2
91 #define RxCRC_ENAB 0x8
93 #define AUTO_ENAB 0x20
119 #define XCLK_MASK 0xC0
123 #define TxCRC_ENAB 0x1
132 #define TxN_MASK 0x60
210 #define Tx_BUF_EMP 0x4
215 #define BRK_ABRT 0x80
235 #define CHB_Tx_EMPTY 0x00
236 #define CHB_EXT_STAT 0x02
237 #define CHB_Rx_AVAIL 0x04
238 #define CHB_SPECIAL 0x06
239 #define CHA_Tx_EMPTY 0x08
240 #define CHA_EXT_STAT 0x0a
241 #define CHA_Rx_AVAIL 0x0c
242 #define CHA_SPECIAL 0x0e
243 #define STATUS_MASK 0x0e
257 #define LOOPSEND 0x10
268 #define ZS_CLEARERR(channel) do { writeb(ERR_RES, &channel->control); \
269 udelay(5); } while(0)
271 #define ZS_CLEARSTAT(channel) do { writeb(RES_EXT_INT, &channel->control); \
272 udelay(5); } while(0)
274 #define ZS_CLEARFIFO(channel) do { readb(&channel->data); \
276 readb(&channel->data); \
278 readb(&channel->data); \
279 udelay(2); } while(0)