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

Go to the source code of this file.

Data Structures

struct  sport_config
 

Macros

#define NORM_MODE   0x0
 
#define TDM_MODE   0x1
 
#define I2S_MODE   0x2
 
#define NDSO_MODE   0x3
 
#define NORM_FORMAT   0x0
 
#define ALAW_FORMAT   0x2
 
#define ULAW_FORMAT   0x3
 
#define SPORT_IOC_MAGIC   'P'
 
#define SPORT_IOC_CONFIG   _IOWR('P', 0x01, struct sport_config)
 
#define SPORT_IOC_GET_SYSTEMCLOCK   _IOR('P', 0x02, unsigned long)
 
#define SPORT_IOC_SET_BAUDRATE   _IOW('P', 0x03, unsigned long)
 
#define TSPEN   0x0001 /* TX enable */
 
#define ITCLK   0x0002 /* Internal TX Clock Select */
 
#define TDTYPE   0x000C /* TX Data Formatting Select */
 
#define DTYPE_NORM   0x0000 /* Data Format Normal */
 
#define DTYPE_ULAW   0x0008 /* Compand Using u-Law */
 
#define DTYPE_ALAW   0x000C /* Compand Using A-Law */
 
#define TLSBIT   0x0010 /* TX Bit Order */
 
#define ITFS   0x0200 /* Internal TX Frame Sync Select */
 
#define TFSR   0x0400 /* TX Frame Sync Required Select */
 
#define DITFS   0x0800 /* Data Independent TX Frame Sync Select */
 
#define LTFS   0x1000 /* Low TX Frame Sync Select */
 
#define LATFS   0x2000 /* Late TX Frame Sync Select */
 
#define TCKFE   0x4000 /* TX Clock Falling Edge Select */
 
#define SLEN   0x001F /* SPORT TX Word Length (2 - 31) */
 
#define DP_SLEN(x)   BFIN_DEPOSIT(SLEN, x)
 
#define EX_SLEN(x)   BFIN_EXTRACT(SLEN, x)
 
#define TXSE   0x0100 /* TX Secondary Enable */
 
#define TSFSE   0x0200 /* TX Stereo Frame Sync Enable */
 
#define TRFST   0x0400 /* TX Right-First Data Order */
 
#define RSPEN   0x0001 /* RX enable */
 
#define IRCLK   0x0002 /* Internal RX Clock Select */
 
#define RDTYPE   0x000C /* RX Data Formatting Select */
 
#define RLSBIT   0x0010 /* RX Bit Order */
 
#define IRFS   0x0200 /* Internal RX Frame Sync Select */
 
#define RFSR   0x0400 /* RX Frame Sync Required Select */
 
#define LRFS   0x1000 /* Low RX Frame Sync Select */
 
#define LARFS   0x2000 /* Late RX Frame Sync Select */
 
#define RCKFE   0x4000 /* RX Clock Falling Edge Select */
 
#define RXSE   0x0100 /* RX Secondary Enable */
 
#define RSFSE   0x0200 /* RX Stereo Frame Sync Enable */
 
#define RRFST   0x0400 /* Right-First Data Order */
 
#define RXNE   0x0001 /* RX FIFO Not Empty Status */
 
#define RUVF   0x0002 /* RX Underflow Status */
 
#define ROVF   0x0004 /* RX Overflow Status */
 
#define TXF   0x0008 /* TX FIFO Full Status */
 
#define TUVF   0x0010 /* TX Underflow Status */
 
#define TOVF   0x0020 /* TX Overflow Status */
 
#define TXHRE   0x0040 /* TX Hold Register Empty */
 
#define SP_WOFF   0x03FF /* Multichannel Window Offset Field */
 
#define DP_SP_WOFF(x)   BFIN_DEPOSIT(SP_WOFF, x)
 
#define EX_SP_WOFF(x)   BFIN_EXTRACT(SP_WOFF, x)
 
#define SP_WSIZE   0xF000 /* Multichannel Window Size Field */
 
#define DP_SP_WSIZE(x)   BFIN_DEPOSIT(SP_WSIZE, x)
 
#define EX_SP_WSIZE(x)   BFIN_EXTRACT(SP_WSIZE, x)
 
#define MCCRM   0x0003 /* Multichannel Clock Recovery Mode */
 
#define REC_BYPASS   0x0000 /* Bypass Mode (No Clock Recovery) */
 
#define REC_2FROM4   0x0002 /* Recover 2 MHz Clock from 4 MHz Clock */
 
#define REC_8FROM16   0x0003 /* Recover 8 MHz Clock from 16 MHz Clock */
 
#define MCDTXPE   0x0004 /* Multichannel DMA Transmit Packing */
 
#define MCDRXPE   0x0008 /* Multichannel DMA Receive Packing */
 
#define MCMEN   0x0010 /* Multichannel Frame Mode Enable */
 
#define FSDR   0x0080 /* Multichannel Frame Sync to Data Relationship */
 
#define MFD   0xF000 /* Multichannel Frame Delay */
 
#define DP_MFD(x)   BFIN_DEPOSIT(MFD, x)
 
#define EX_MFD(x)   BFIN_EXTRACT(MFD, x)
 

Macro Definition Documentation

#define ALAW_FORMAT   0x2

Definition at line 20 of file bfin_sport.h.

#define DITFS   0x0800 /* Data Independent TX Frame Sync Select */

Definition at line 136 of file bfin_sport.h.

#define DP_MFD (   x)    BFIN_DEPOSIT(MFD, x)

Definition at line 194 of file bfin_sport.h.

#define DP_SLEN (   x)    BFIN_DEPOSIT(SLEN, x)

Definition at line 143 of file bfin_sport.h.

#define DP_SP_WOFF (   x)    BFIN_DEPOSIT(SP_WOFF, x)

Definition at line 178 of file bfin_sport.h.

#define DP_SP_WSIZE (   x)    BFIN_DEPOSIT(SP_WSIZE, x)

Definition at line 181 of file bfin_sport.h.

#define DTYPE_ALAW   0x000C /* Compand Using A-Law */

Definition at line 132 of file bfin_sport.h.

#define DTYPE_NORM   0x0000 /* Data Format Normal */

Definition at line 130 of file bfin_sport.h.

#define DTYPE_ULAW   0x0008 /* Compand Using u-Law */

Definition at line 131 of file bfin_sport.h.

#define EX_MFD (   x)    BFIN_EXTRACT(MFD, x)

Definition at line 195 of file bfin_sport.h.

#define EX_SLEN (   x)    BFIN_EXTRACT(SLEN, x)

Definition at line 144 of file bfin_sport.h.

#define EX_SP_WOFF (   x)    BFIN_EXTRACT(SP_WOFF, x)

Definition at line 179 of file bfin_sport.h.

#define EX_SP_WSIZE (   x)    BFIN_EXTRACT(SP_WSIZE, x)

Definition at line 182 of file bfin_sport.h.

#define FSDR   0x0080 /* Multichannel Frame Sync to Data Relationship */

Definition at line 192 of file bfin_sport.h.

#define I2S_MODE   0x2

Definition at line 15 of file bfin_sport.h.

#define IRCLK   0x0002 /* Internal RX Clock Select */

Definition at line 151 of file bfin_sport.h.

#define IRFS   0x0200 /* Internal RX Frame Sync Select */

Definition at line 155 of file bfin_sport.h.

#define ITCLK   0x0002 /* Internal TX Clock Select */

Definition at line 128 of file bfin_sport.h.

#define ITFS   0x0200 /* Internal TX Frame Sync Select */

Definition at line 134 of file bfin_sport.h.

#define LARFS   0x2000 /* Late RX Frame Sync Select */

Definition at line 158 of file bfin_sport.h.

#define LATFS   0x2000 /* Late TX Frame Sync Select */

Definition at line 138 of file bfin_sport.h.

#define LRFS   0x1000 /* Low RX Frame Sync Select */

Definition at line 157 of file bfin_sport.h.

#define LTFS   0x1000 /* Low TX Frame Sync Select */

Definition at line 137 of file bfin_sport.h.

#define MCCRM   0x0003 /* Multichannel Clock Recovery Mode */

Definition at line 185 of file bfin_sport.h.

#define MCDRXPE   0x0008 /* Multichannel DMA Receive Packing */

Definition at line 190 of file bfin_sport.h.

#define MCDTXPE   0x0004 /* Multichannel DMA Transmit Packing */

Definition at line 189 of file bfin_sport.h.

#define MCMEN   0x0010 /* Multichannel Frame Mode Enable */

Definition at line 191 of file bfin_sport.h.

#define MFD   0xF000 /* Multichannel Frame Delay */

Definition at line 193 of file bfin_sport.h.

#define NDSO_MODE   0x3

Definition at line 16 of file bfin_sport.h.

#define NORM_FORMAT   0x0

Definition at line 19 of file bfin_sport.h.

#define NORM_MODE   0x0

Definition at line 13 of file bfin_sport.h.

#define RCKFE   0x4000 /* RX Clock Falling Edge Select */

Definition at line 159 of file bfin_sport.h.

#define RDTYPE   0x000C /* RX Data Formatting Select */

Definition at line 152 of file bfin_sport.h.

#define REC_2FROM4   0x0002 /* Recover 2 MHz Clock from 4 MHz Clock */

Definition at line 187 of file bfin_sport.h.

#define REC_8FROM16   0x0003 /* Recover 8 MHz Clock from 16 MHz Clock */

Definition at line 188 of file bfin_sport.h.

#define REC_BYPASS   0x0000 /* Bypass Mode (No Clock Recovery) */

Definition at line 186 of file bfin_sport.h.

#define RFSR   0x0400 /* RX Frame Sync Required Select */

Definition at line 156 of file bfin_sport.h.

#define RLSBIT   0x0010 /* RX Bit Order */

Definition at line 154 of file bfin_sport.h.

#define ROVF   0x0004 /* RX Overflow Status */

Definition at line 170 of file bfin_sport.h.

#define RRFST   0x0400 /* Right-First Data Order */

Definition at line 165 of file bfin_sport.h.

#define RSFSE   0x0200 /* RX Stereo Frame Sync Enable */

Definition at line 164 of file bfin_sport.h.

#define RSPEN   0x0001 /* RX enable */

Definition at line 150 of file bfin_sport.h.

#define RUVF   0x0002 /* RX Underflow Status */

Definition at line 169 of file bfin_sport.h.

#define RXNE   0x0001 /* RX FIFO Not Empty Status */

Definition at line 168 of file bfin_sport.h.

#define RXSE   0x0100 /* RX Secondary Enable */

Definition at line 163 of file bfin_sport.h.

#define SLEN   0x001F /* SPORT TX Word Length (2 - 31) */

Definition at line 142 of file bfin_sport.h.

#define SP_WOFF   0x03FF /* Multichannel Window Offset Field */

Definition at line 177 of file bfin_sport.h.

#define SP_WSIZE   0xF000 /* Multichannel Window Size Field */

Definition at line 180 of file bfin_sport.h.

#define SPORT_IOC_CONFIG   _IOWR('P', 0x01, struct sport_config)

Definition at line 60 of file bfin_sport.h.

#define SPORT_IOC_GET_SYSTEMCLOCK   _IOR('P', 0x02, unsigned long)

Definition at line 61 of file bfin_sport.h.

#define SPORT_IOC_MAGIC   'P'

Definition at line 59 of file bfin_sport.h.

#define SPORT_IOC_SET_BAUDRATE   _IOW('P', 0x03, unsigned long)

Definition at line 62 of file bfin_sport.h.

#define TCKFE   0x4000 /* TX Clock Falling Edge Select */

Definition at line 139 of file bfin_sport.h.

#define TDM_MODE   0x1

Definition at line 14 of file bfin_sport.h.

#define TDTYPE   0x000C /* TX Data Formatting Select */

Definition at line 129 of file bfin_sport.h.

#define TFSR   0x0400 /* TX Frame Sync Required Select */

Definition at line 135 of file bfin_sport.h.

#define TLSBIT   0x0010 /* TX Bit Order */

Definition at line 133 of file bfin_sport.h.

#define TOVF   0x0020 /* TX Overflow Status */

Definition at line 173 of file bfin_sport.h.

#define TRFST   0x0400 /* TX Right-First Data Order */

Definition at line 147 of file bfin_sport.h.

#define TSFSE   0x0200 /* TX Stereo Frame Sync Enable */

Definition at line 146 of file bfin_sport.h.

#define TSPEN   0x0001 /* TX enable */

Definition at line 127 of file bfin_sport.h.

#define TUVF   0x0010 /* TX Underflow Status */

Definition at line 172 of file bfin_sport.h.

#define TXF   0x0008 /* TX FIFO Full Status */

Definition at line 171 of file bfin_sport.h.

#define TXHRE   0x0040 /* TX Hold Register Empty */

Definition at line 174 of file bfin_sport.h.

#define TXSE   0x0100 /* TX Secondary Enable */

Definition at line 145 of file bfin_sport.h.

#define ULAW_FORMAT   0x3

Definition at line 21 of file bfin_sport.h.