Go to the documentation of this file.
9 #ifndef __BFIN_SPORT_H__
10 #define __BFIN_SPORT_H__
19 #define NORM_FORMAT 0x0
20 #define ALAW_FORMAT 0x2
21 #define ULAW_FORMAT 0x3
59 #define SPORT_IOC_MAGIC 'P'
60 #define SPORT_IOC_CONFIG _IOWR('P', 0x01, struct sport_config)
61 #define SPORT_IOC_GET_SYSTEMCLOCK _IOR('P', 0x02, unsigned long)
62 #define SPORT_IOC_SET_BAUDRATE _IOW('P', 0x03, unsigned long)
66 #include <linux/types.h>
72 #define __BFP(m) u16 m; u16 __pad_##m
111 #define bfin_read_sport_rx32(base) \
113 struct sport_register *__mmrs = (void *)base; \
115 unsigned long flags; \
116 if (ANOMALY_05000473) \
117 local_irq_save(flags); \
118 __ret = __mmrs->rx32; \
119 if (ANOMALY_05000473) \
120 local_irq_restore(flags); \
129 #define TDTYPE 0x000C
130 #define DTYPE_NORM 0x0000
131 #define DTYPE_ULAW 0x0008
132 #define DTYPE_ALAW 0x000C
133 #define TLSBIT 0x0010
143 #define DP_SLEN(x) BFIN_DEPOSIT(SLEN, x)
144 #define EX_SLEN(x) BFIN_EXTRACT(SLEN, x)
152 #define RDTYPE 0x000C
154 #define RLSBIT 0x0010
177 #define SP_WOFF 0x03FF
178 #define DP_SP_WOFF(x) BFIN_DEPOSIT(SP_WOFF, x)
179 #define EX_SP_WOFF(x) BFIN_EXTRACT(SP_WOFF, x)
180 #define SP_WSIZE 0xF000
181 #define DP_SP_WSIZE(x) BFIN_DEPOSIT(SP_WSIZE, x)
182 #define EX_SP_WSIZE(x) BFIN_EXTRACT(SP_WSIZE, x)
186 #define REC_BYPASS 0x0000
187 #define REC_2FROM4 0x0002
188 #define REC_8FROM16 0x0003
189 #define MCDTXPE 0x0004
190 #define MCDRXPE 0x0008
194 #define DP_MFD(x) BFIN_DEPOSIT(MFD, x)
195 #define EX_MFD(x) BFIN_EXTRACT(MFD, x)