Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
atmel-ssc.h File Reference
#include <linux/platform_device.h>
#include <linux/list.h>
#include <linux/io.h>

Go to the source code of this file.

Data Structures

struct  ssc_device
 

Macros

#define SSC_CR   0x00000000
 
#define SSC_CR_RXDIS_SIZE   1
 
#define SSC_CR_RXDIS_OFFSET   1
 
#define SSC_CR_RXEN_SIZE   1
 
#define SSC_CR_RXEN_OFFSET   0
 
#define SSC_CR_SWRST_SIZE   1
 
#define SSC_CR_SWRST_OFFSET   15
 
#define SSC_CR_TXDIS_SIZE   1
 
#define SSC_CR_TXDIS_OFFSET   9
 
#define SSC_CR_TXEN_SIZE   1
 
#define SSC_CR_TXEN_OFFSET   8
 
#define SSC_CMR   0x00000004
 
#define SSC_CMR_DIV_SIZE   12
 
#define SSC_CMR_DIV_OFFSET   0
 
#define SSC_RCMR   0x00000010
 
#define SSC_RCMR_CKG_SIZE   2
 
#define SSC_RCMR_CKG_OFFSET   6
 
#define SSC_RCMR_CKI_SIZE   1
 
#define SSC_RCMR_CKI_OFFSET   5
 
#define SSC_RCMR_CKO_SIZE   3
 
#define SSC_RCMR_CKO_OFFSET   2
 
#define SSC_RCMR_CKS_SIZE   2
 
#define SSC_RCMR_CKS_OFFSET   0
 
#define SSC_RCMR_PERIOD_SIZE   8
 
#define SSC_RCMR_PERIOD_OFFSET   24
 
#define SSC_RCMR_START_SIZE   4
 
#define SSC_RCMR_START_OFFSET   8
 
#define SSC_RCMR_STOP_SIZE   1
 
#define SSC_RCMR_STOP_OFFSET   12
 
#define SSC_RCMR_STTDLY_SIZE   8
 
#define SSC_RCMR_STTDLY_OFFSET   16
 
#define SSC_RFMR   0x00000014
 
#define SSC_RFMR_DATLEN_SIZE   5
 
#define SSC_RFMR_DATLEN_OFFSET   0
 
#define SSC_RFMR_DATNB_SIZE   4
 
#define SSC_RFMR_DATNB_OFFSET   8
 
#define SSC_RFMR_FSEDGE_SIZE   1
 
#define SSC_RFMR_FSEDGE_OFFSET   24
 
#define SSC_RFMR_FSLEN_SIZE   4
 
#define SSC_RFMR_FSLEN_OFFSET   16
 
#define SSC_RFMR_FSOS_SIZE   4
 
#define SSC_RFMR_FSOS_OFFSET   20
 
#define SSC_RFMR_LOOP_SIZE   1
 
#define SSC_RFMR_LOOP_OFFSET   5
 
#define SSC_RFMR_MSBF_SIZE   1
 
#define SSC_RFMR_MSBF_OFFSET   7
 
#define SSC_TCMR   0x00000018
 
#define SSC_TCMR_CKG_SIZE   2
 
#define SSC_TCMR_CKG_OFFSET   6
 
#define SSC_TCMR_CKI_SIZE   1
 
#define SSC_TCMR_CKI_OFFSET   5
 
#define SSC_TCMR_CKO_SIZE   3
 
#define SSC_TCMR_CKO_OFFSET   2
 
#define SSC_TCMR_CKS_SIZE   2
 
#define SSC_TCMR_CKS_OFFSET   0
 
#define SSC_TCMR_PERIOD_SIZE   8
 
#define SSC_TCMR_PERIOD_OFFSET   24
 
#define SSC_TCMR_START_SIZE   4
 
#define SSC_TCMR_START_OFFSET   8
 
#define SSC_TCMR_STTDLY_SIZE   8
 
#define SSC_TCMR_STTDLY_OFFSET   16
 
#define SSC_TFMR   0x0000001c
 
#define SSC_TFMR_DATDEF_SIZE   1
 
#define SSC_TFMR_DATDEF_OFFSET   5
 
#define SSC_TFMR_DATLEN_SIZE   5
 
#define SSC_TFMR_DATLEN_OFFSET   0
 
#define SSC_TFMR_DATNB_SIZE   4
 
#define SSC_TFMR_DATNB_OFFSET   8
 
#define SSC_TFMR_FSDEN_SIZE   1
 
#define SSC_TFMR_FSDEN_OFFSET   23
 
#define SSC_TFMR_FSEDGE_SIZE   1
 
#define SSC_TFMR_FSEDGE_OFFSET   24
 
#define SSC_TFMR_FSLEN_SIZE   4
 
#define SSC_TFMR_FSLEN_OFFSET   16
 
#define SSC_TFMR_FSOS_SIZE   3
 
#define SSC_TFMR_FSOS_OFFSET   20
 
#define SSC_TFMR_MSBF_SIZE   1
 
#define SSC_TFMR_MSBF_OFFSET   7
 
#define SSC_RHR   0x00000020
 
#define SSC_RHR_RDAT_SIZE   32
 
#define SSC_RHR_RDAT_OFFSET   0
 
#define SSC_THR   0x00000024
 
#define SSC_THR_TDAT_SIZE   32
 
#define SSC_THR_TDAT_OFFSET   0
 
#define SSC_RSHR   0x00000030
 
#define SSC_RSHR_RSDAT_SIZE   16
 
#define SSC_RSHR_RSDAT_OFFSET   0
 
#define SSC_TSHR   0x00000034
 
#define SSC_TSHR_TSDAT_SIZE   16
 
#define SSC_TSHR_RSDAT_OFFSET   0
 
#define SSC_RC0R   0x00000038
 
#define SSC_RC0R_CP0_SIZE   16
 
#define SSC_RC0R_CP0_OFFSET   0
 
#define SSC_RC1R   0x0000003c
 
#define SSC_RC1R_CP1_SIZE   16
 
#define SSC_RC1R_CP1_OFFSET   0
 
#define SSC_SR   0x00000040
 
#define SSC_SR_CP0_SIZE   1
 
#define SSC_SR_CP0_OFFSET   8
 
#define SSC_SR_CP1_SIZE   1
 
#define SSC_SR_CP1_OFFSET   9
 
#define SSC_SR_ENDRX_SIZE   1
 
#define SSC_SR_ENDRX_OFFSET   6
 
#define SSC_SR_ENDTX_SIZE   1
 
#define SSC_SR_ENDTX_OFFSET   2
 
#define SSC_SR_OVRUN_SIZE   1
 
#define SSC_SR_OVRUN_OFFSET   5
 
#define SSC_SR_RXBUFF_SIZE   1
 
#define SSC_SR_RXBUFF_OFFSET   7
 
#define SSC_SR_RXEN_SIZE   1
 
#define SSC_SR_RXEN_OFFSET   17
 
#define SSC_SR_RXRDY_SIZE   1
 
#define SSC_SR_RXRDY_OFFSET   4
 
#define SSC_SR_RXSYN_SIZE   1
 
#define SSC_SR_RXSYN_OFFSET   11
 
#define SSC_SR_TXBUFE_SIZE   1
 
#define SSC_SR_TXBUFE_OFFSET   3
 
#define SSC_SR_TXEMPTY_SIZE   1
 
#define SSC_SR_TXEMPTY_OFFSET   1
 
#define SSC_SR_TXEN_SIZE   1
 
#define SSC_SR_TXEN_OFFSET   16
 
#define SSC_SR_TXRDY_SIZE   1
 
#define SSC_SR_TXRDY_OFFSET   0
 
#define SSC_SR_TXSYN_SIZE   1
 
#define SSC_SR_TXSYN_OFFSET   10
 
#define SSC_IER   0x00000044
 
#define SSC_IER_CP0_SIZE   1
 
#define SSC_IER_CP0_OFFSET   8
 
#define SSC_IER_CP1_SIZE   1
 
#define SSC_IER_CP1_OFFSET   9
 
#define SSC_IER_ENDRX_SIZE   1
 
#define SSC_IER_ENDRX_OFFSET   6
 
#define SSC_IER_ENDTX_SIZE   1
 
#define SSC_IER_ENDTX_OFFSET   2
 
#define SSC_IER_OVRUN_SIZE   1
 
#define SSC_IER_OVRUN_OFFSET   5
 
#define SSC_IER_RXBUFF_SIZE   1
 
#define SSC_IER_RXBUFF_OFFSET   7
 
#define SSC_IER_RXRDY_SIZE   1
 
#define SSC_IER_RXRDY_OFFSET   4
 
#define SSC_IER_RXSYN_SIZE   1
 
#define SSC_IER_RXSYN_OFFSET   11
 
#define SSC_IER_TXBUFE_SIZE   1
 
#define SSC_IER_TXBUFE_OFFSET   3
 
#define SSC_IER_TXEMPTY_SIZE   1
 
#define SSC_IER_TXEMPTY_OFFSET   1
 
#define SSC_IER_TXRDY_SIZE   1
 
#define SSC_IER_TXRDY_OFFSET   0
 
#define SSC_IER_TXSYN_SIZE   1
 
#define SSC_IER_TXSYN_OFFSET   10
 
#define SSC_IDR   0x00000048
 
#define SSC_IDR_CP0_SIZE   1
 
#define SSC_IDR_CP0_OFFSET   8
 
#define SSC_IDR_CP1_SIZE   1
 
#define SSC_IDR_CP1_OFFSET   9
 
#define SSC_IDR_ENDRX_SIZE   1
 
#define SSC_IDR_ENDRX_OFFSET   6
 
#define SSC_IDR_ENDTX_SIZE   1
 
#define SSC_IDR_ENDTX_OFFSET   2
 
#define SSC_IDR_OVRUN_SIZE   1
 
#define SSC_IDR_OVRUN_OFFSET   5
 
#define SSC_IDR_RXBUFF_SIZE   1
 
#define SSC_IDR_RXBUFF_OFFSET   7
 
#define SSC_IDR_RXRDY_SIZE   1
 
#define SSC_IDR_RXRDY_OFFSET   4
 
#define SSC_IDR_RXSYN_SIZE   1
 
#define SSC_IDR_RXSYN_OFFSET   11
 
#define SSC_IDR_TXBUFE_SIZE   1
 
#define SSC_IDR_TXBUFE_OFFSET   3
 
#define SSC_IDR_TXEMPTY_SIZE   1
 
#define SSC_IDR_TXEMPTY_OFFSET   1
 
#define SSC_IDR_TXRDY_SIZE   1
 
#define SSC_IDR_TXRDY_OFFSET   0
 
#define SSC_IDR_TXSYN_SIZE   1
 
#define SSC_IDR_TXSYN_OFFSET   10
 
#define SSC_IMR   0x0000004c
 
#define SSC_IMR_CP0_SIZE   1
 
#define SSC_IMR_CP0_OFFSET   8
 
#define SSC_IMR_CP1_SIZE   1
 
#define SSC_IMR_CP1_OFFSET   9
 
#define SSC_IMR_ENDRX_SIZE   1
 
#define SSC_IMR_ENDRX_OFFSET   6
 
#define SSC_IMR_ENDTX_SIZE   1
 
#define SSC_IMR_ENDTX_OFFSET   2
 
#define SSC_IMR_OVRUN_SIZE   1
 
#define SSC_IMR_OVRUN_OFFSET   5
 
#define SSC_IMR_RXBUFF_SIZE   1
 
#define SSC_IMR_RXBUFF_OFFSET   7
 
#define SSC_IMR_RXRDY_SIZE   1
 
#define SSC_IMR_RXRDY_OFFSET   4
 
#define SSC_IMR_RXSYN_SIZE   1
 
#define SSC_IMR_RXSYN_OFFSET   11
 
#define SSC_IMR_TXBUFE_SIZE   1
 
#define SSC_IMR_TXBUFE_OFFSET   3
 
#define SSC_IMR_TXEMPTY_SIZE   1
 
#define SSC_IMR_TXEMPTY_OFFSET   1
 
#define SSC_IMR_TXRDY_SIZE   1
 
#define SSC_IMR_TXRDY_OFFSET   0
 
#define SSC_IMR_TXSYN_SIZE   1
 
#define SSC_IMR_TXSYN_OFFSET   10
 
#define SSC_PDC_RPR   0x00000100
 
#define SSC_PDC_RCR   0x00000104
 
#define SSC_PDC_TPR   0x00000108
 
#define SSC_PDC_RNPR   0x00000110
 
#define SSC_PDC_RNCR   0x00000114
 
#define SSC_PDC_TCR   0x0000010c
 
#define SSC_PDC_TNPR   0x00000118
 
#define SSC_PDC_TNCR   0x0000011c
 
#define SSC_PDC_PTCR   0x00000120
 
#define SSC_PDC_PTCR_RXTDIS_SIZE   1
 
#define SSC_PDC_PTCR_RXTDIS_OFFSET   1
 
#define SSC_PDC_PTCR_RXTEN_SIZE   1
 
#define SSC_PDC_PTCR_RXTEN_OFFSET   0
 
#define SSC_PDC_PTCR_TXTDIS_SIZE   1
 
#define SSC_PDC_PTCR_TXTDIS_OFFSET   9
 
#define SSC_PDC_PTCR_TXTEN_SIZE   1
 
#define SSC_PDC_PTCR_TXTEN_OFFSET   8
 
#define SSC_PDC_PTSR   0x00000124
 
#define SSC_PDC_PTSR_RXTEN_SIZE   1
 
#define SSC_PDC_PTSR_RXTEN_OFFSET   0
 
#define SSC_PDC_PTSR_TXTEN_SIZE   1
 
#define SSC_PDC_PTSR_TXTEN_OFFSET   8
 
#define SSC_BIT(name)   (1 << SSC_##name##_OFFSET)
 
#define SSC_BF(name, value)
 
#define SSC_BFEXT(name, value)
 
#define SSC_BFINS(name, value, old)
 
#define ssc_readl(base, reg)   __raw_readl(base + SSC_##reg)
 
#define ssc_writel(base, reg, value)   __raw_writel((value), base + SSC_##reg)
 

Functions

struct ssc_device *__must_check ssc_request (unsigned int ssc_num)
 
void ssc_free (struct ssc_device *ssc)
 

Macro Definition Documentation

#define SSC_BF (   name,
  value 
)
Value:
(((value) & ((1 << SSC_##name##_SIZE) - 1)) \
<< SSC_##name##_OFFSET)

Definition at line 299 of file atmel-ssc.h.

#define SSC_BFEXT (   name,
  value 
)
Value:
(((value) >> SSC_##name##_OFFSET) \
& ((1 << SSC_##name##_SIZE) - 1))

Definition at line 302 of file atmel-ssc.h.

#define SSC_BFINS (   name,
  value,
  old 
)
Value:
(((old) & ~(((1 << SSC_##name##_SIZE) - 1) \
<< SSC_##name##_OFFSET)) | SSC_BF(name, value))

Definition at line 305 of file atmel-ssc.h.

#define SSC_BIT (   name)    (1 << SSC_##name##_OFFSET)

Definition at line 297 of file atmel-ssc.h.

#define SSC_CMR   0x00000004

Definition at line 36 of file atmel-ssc.h.

#define SSC_CMR_DIV_OFFSET   0

Definition at line 38 of file atmel-ssc.h.

#define SSC_CMR_DIV_SIZE   12

Definition at line 37 of file atmel-ssc.h.

#define SSC_CR   0x00000000

Definition at line 23 of file atmel-ssc.h.

#define SSC_CR_RXDIS_OFFSET   1

Definition at line 25 of file atmel-ssc.h.

#define SSC_CR_RXDIS_SIZE   1

Definition at line 24 of file atmel-ssc.h.

#define SSC_CR_RXEN_OFFSET   0

Definition at line 27 of file atmel-ssc.h.

#define SSC_CR_RXEN_SIZE   1

Definition at line 26 of file atmel-ssc.h.

#define SSC_CR_SWRST_OFFSET   15

Definition at line 29 of file atmel-ssc.h.

#define SSC_CR_SWRST_SIZE   1

Definition at line 28 of file atmel-ssc.h.

#define SSC_CR_TXDIS_OFFSET   9

Definition at line 31 of file atmel-ssc.h.

#define SSC_CR_TXDIS_SIZE   1

Definition at line 30 of file atmel-ssc.h.

#define SSC_CR_TXEN_OFFSET   8

Definition at line 33 of file atmel-ssc.h.

#define SSC_CR_TXEN_SIZE   1

Definition at line 32 of file atmel-ssc.h.

#define SSC_IDR   0x00000048

Definition at line 201 of file atmel-ssc.h.

#define SSC_IDR_CP0_OFFSET   8

Definition at line 203 of file atmel-ssc.h.

#define SSC_IDR_CP0_SIZE   1

Definition at line 202 of file atmel-ssc.h.

#define SSC_IDR_CP1_OFFSET   9

Definition at line 205 of file atmel-ssc.h.

#define SSC_IDR_CP1_SIZE   1

Definition at line 204 of file atmel-ssc.h.

#define SSC_IDR_ENDRX_OFFSET   6

Definition at line 207 of file atmel-ssc.h.

#define SSC_IDR_ENDRX_SIZE   1

Definition at line 206 of file atmel-ssc.h.

#define SSC_IDR_ENDTX_OFFSET   2

Definition at line 209 of file atmel-ssc.h.

#define SSC_IDR_ENDTX_SIZE   1

Definition at line 208 of file atmel-ssc.h.

#define SSC_IDR_OVRUN_OFFSET   5

Definition at line 211 of file atmel-ssc.h.

#define SSC_IDR_OVRUN_SIZE   1

Definition at line 210 of file atmel-ssc.h.

#define SSC_IDR_RXBUFF_OFFSET   7

Definition at line 213 of file atmel-ssc.h.

#define SSC_IDR_RXBUFF_SIZE   1

Definition at line 212 of file atmel-ssc.h.

#define SSC_IDR_RXRDY_OFFSET   4

Definition at line 215 of file atmel-ssc.h.

#define SSC_IDR_RXRDY_SIZE   1

Definition at line 214 of file atmel-ssc.h.

#define SSC_IDR_RXSYN_OFFSET   11

Definition at line 217 of file atmel-ssc.h.

#define SSC_IDR_RXSYN_SIZE   1

Definition at line 216 of file atmel-ssc.h.

#define SSC_IDR_TXBUFE_OFFSET   3

Definition at line 219 of file atmel-ssc.h.

#define SSC_IDR_TXBUFE_SIZE   1

Definition at line 218 of file atmel-ssc.h.

#define SSC_IDR_TXEMPTY_OFFSET   1

Definition at line 221 of file atmel-ssc.h.

#define SSC_IDR_TXEMPTY_SIZE   1

Definition at line 220 of file atmel-ssc.h.

#define SSC_IDR_TXRDY_OFFSET   0

Definition at line 223 of file atmel-ssc.h.

#define SSC_IDR_TXRDY_SIZE   1

Definition at line 222 of file atmel-ssc.h.

#define SSC_IDR_TXSYN_OFFSET   10

Definition at line 225 of file atmel-ssc.h.

#define SSC_IDR_TXSYN_SIZE   1

Definition at line 224 of file atmel-ssc.h.

#define SSC_IER   0x00000044

Definition at line 174 of file atmel-ssc.h.

#define SSC_IER_CP0_OFFSET   8

Definition at line 176 of file atmel-ssc.h.

#define SSC_IER_CP0_SIZE   1

Definition at line 175 of file atmel-ssc.h.

#define SSC_IER_CP1_OFFSET   9

Definition at line 178 of file atmel-ssc.h.

#define SSC_IER_CP1_SIZE   1

Definition at line 177 of file atmel-ssc.h.

#define SSC_IER_ENDRX_OFFSET   6

Definition at line 180 of file atmel-ssc.h.

#define SSC_IER_ENDRX_SIZE   1

Definition at line 179 of file atmel-ssc.h.

#define SSC_IER_ENDTX_OFFSET   2

Definition at line 182 of file atmel-ssc.h.

#define SSC_IER_ENDTX_SIZE   1

Definition at line 181 of file atmel-ssc.h.

#define SSC_IER_OVRUN_OFFSET   5

Definition at line 184 of file atmel-ssc.h.

#define SSC_IER_OVRUN_SIZE   1

Definition at line 183 of file atmel-ssc.h.

#define SSC_IER_RXBUFF_OFFSET   7

Definition at line 186 of file atmel-ssc.h.

#define SSC_IER_RXBUFF_SIZE   1

Definition at line 185 of file atmel-ssc.h.

#define SSC_IER_RXRDY_OFFSET   4

Definition at line 188 of file atmel-ssc.h.

#define SSC_IER_RXRDY_SIZE   1

Definition at line 187 of file atmel-ssc.h.

#define SSC_IER_RXSYN_OFFSET   11

Definition at line 190 of file atmel-ssc.h.

#define SSC_IER_RXSYN_SIZE   1

Definition at line 189 of file atmel-ssc.h.

#define SSC_IER_TXBUFE_OFFSET   3

Definition at line 192 of file atmel-ssc.h.

#define SSC_IER_TXBUFE_SIZE   1

Definition at line 191 of file atmel-ssc.h.

#define SSC_IER_TXEMPTY_OFFSET   1

Definition at line 194 of file atmel-ssc.h.

#define SSC_IER_TXEMPTY_SIZE   1

Definition at line 193 of file atmel-ssc.h.

#define SSC_IER_TXRDY_OFFSET   0

Definition at line 196 of file atmel-ssc.h.

#define SSC_IER_TXRDY_SIZE   1

Definition at line 195 of file atmel-ssc.h.

#define SSC_IER_TXSYN_OFFSET   10

Definition at line 198 of file atmel-ssc.h.

#define SSC_IER_TXSYN_SIZE   1

Definition at line 197 of file atmel-ssc.h.

#define SSC_IMR   0x0000004c

Definition at line 228 of file atmel-ssc.h.

#define SSC_IMR_CP0_OFFSET   8

Definition at line 230 of file atmel-ssc.h.

#define SSC_IMR_CP0_SIZE   1

Definition at line 229 of file atmel-ssc.h.

#define SSC_IMR_CP1_OFFSET   9

Definition at line 232 of file atmel-ssc.h.

#define SSC_IMR_CP1_SIZE   1

Definition at line 231 of file atmel-ssc.h.

#define SSC_IMR_ENDRX_OFFSET   6

Definition at line 234 of file atmel-ssc.h.

#define SSC_IMR_ENDRX_SIZE   1

Definition at line 233 of file atmel-ssc.h.

#define SSC_IMR_ENDTX_OFFSET   2

Definition at line 236 of file atmel-ssc.h.

#define SSC_IMR_ENDTX_SIZE   1

Definition at line 235 of file atmel-ssc.h.

#define SSC_IMR_OVRUN_OFFSET   5

Definition at line 238 of file atmel-ssc.h.

#define SSC_IMR_OVRUN_SIZE   1

Definition at line 237 of file atmel-ssc.h.

#define SSC_IMR_RXBUFF_OFFSET   7

Definition at line 240 of file atmel-ssc.h.

#define SSC_IMR_RXBUFF_SIZE   1

Definition at line 239 of file atmel-ssc.h.

#define SSC_IMR_RXRDY_OFFSET   4

Definition at line 242 of file atmel-ssc.h.

#define SSC_IMR_RXRDY_SIZE   1

Definition at line 241 of file atmel-ssc.h.

#define SSC_IMR_RXSYN_OFFSET   11

Definition at line 244 of file atmel-ssc.h.

#define SSC_IMR_RXSYN_SIZE   1

Definition at line 243 of file atmel-ssc.h.

#define SSC_IMR_TXBUFE_OFFSET   3

Definition at line 246 of file atmel-ssc.h.

#define SSC_IMR_TXBUFE_SIZE   1

Definition at line 245 of file atmel-ssc.h.

#define SSC_IMR_TXEMPTY_OFFSET   1

Definition at line 248 of file atmel-ssc.h.

#define SSC_IMR_TXEMPTY_SIZE   1

Definition at line 247 of file atmel-ssc.h.

#define SSC_IMR_TXRDY_OFFSET   0

Definition at line 250 of file atmel-ssc.h.

#define SSC_IMR_TXRDY_SIZE   1

Definition at line 249 of file atmel-ssc.h.

#define SSC_IMR_TXSYN_OFFSET   10

Definition at line 252 of file atmel-ssc.h.

#define SSC_IMR_TXSYN_SIZE   1

Definition at line 251 of file atmel-ssc.h.

#define SSC_PDC_PTCR   0x00000120

Definition at line 279 of file atmel-ssc.h.

#define SSC_PDC_PTCR_RXTDIS_OFFSET   1

Definition at line 281 of file atmel-ssc.h.

#define SSC_PDC_PTCR_RXTDIS_SIZE   1

Definition at line 280 of file atmel-ssc.h.

#define SSC_PDC_PTCR_RXTEN_OFFSET   0

Definition at line 283 of file atmel-ssc.h.

#define SSC_PDC_PTCR_RXTEN_SIZE   1

Definition at line 282 of file atmel-ssc.h.

#define SSC_PDC_PTCR_TXTDIS_OFFSET   9

Definition at line 285 of file atmel-ssc.h.

#define SSC_PDC_PTCR_TXTDIS_SIZE   1

Definition at line 284 of file atmel-ssc.h.

#define SSC_PDC_PTCR_TXTEN_OFFSET   8

Definition at line 287 of file atmel-ssc.h.

#define SSC_PDC_PTCR_TXTEN_SIZE   1

Definition at line 286 of file atmel-ssc.h.

#define SSC_PDC_PTSR   0x00000124

Definition at line 290 of file atmel-ssc.h.

#define SSC_PDC_PTSR_RXTEN_OFFSET   0

Definition at line 292 of file atmel-ssc.h.

#define SSC_PDC_PTSR_RXTEN_SIZE   1

Definition at line 291 of file atmel-ssc.h.

#define SSC_PDC_PTSR_TXTEN_OFFSET   8

Definition at line 294 of file atmel-ssc.h.

#define SSC_PDC_PTSR_TXTEN_SIZE   1

Definition at line 293 of file atmel-ssc.h.

#define SSC_PDC_RCR   0x00000104

Definition at line 258 of file atmel-ssc.h.

#define SSC_PDC_RNCR   0x00000114

Definition at line 267 of file atmel-ssc.h.

#define SSC_PDC_RNPR   0x00000110

Definition at line 264 of file atmel-ssc.h.

#define SSC_PDC_RPR   0x00000100

Definition at line 255 of file atmel-ssc.h.

#define SSC_PDC_TCR   0x0000010c

Definition at line 270 of file atmel-ssc.h.

#define SSC_PDC_TNCR   0x0000011c

Definition at line 276 of file atmel-ssc.h.

#define SSC_PDC_TNPR   0x00000118

Definition at line 273 of file atmel-ssc.h.

#define SSC_PDC_TPR   0x00000108

Definition at line 261 of file atmel-ssc.h.

#define SSC_RC0R   0x00000038

Definition at line 133 of file atmel-ssc.h.

#define SSC_RC0R_CP0_OFFSET   0

Definition at line 135 of file atmel-ssc.h.

#define SSC_RC0R_CP0_SIZE   16

Definition at line 134 of file atmel-ssc.h.

#define SSC_RC1R   0x0000003c

Definition at line 138 of file atmel-ssc.h.

#define SSC_RC1R_CP1_OFFSET   0

Definition at line 140 of file atmel-ssc.h.

#define SSC_RC1R_CP1_SIZE   16

Definition at line 139 of file atmel-ssc.h.

#define SSC_RCMR   0x00000010

Definition at line 41 of file atmel-ssc.h.

#define SSC_RCMR_CKG_OFFSET   6

Definition at line 43 of file atmel-ssc.h.

#define SSC_RCMR_CKG_SIZE   2

Definition at line 42 of file atmel-ssc.h.

#define SSC_RCMR_CKI_OFFSET   5

Definition at line 45 of file atmel-ssc.h.

#define SSC_RCMR_CKI_SIZE   1

Definition at line 44 of file atmel-ssc.h.

#define SSC_RCMR_CKO_OFFSET   2

Definition at line 47 of file atmel-ssc.h.

#define SSC_RCMR_CKO_SIZE   3

Definition at line 46 of file atmel-ssc.h.

#define SSC_RCMR_CKS_OFFSET   0

Definition at line 49 of file atmel-ssc.h.

#define SSC_RCMR_CKS_SIZE   2

Definition at line 48 of file atmel-ssc.h.

#define SSC_RCMR_PERIOD_OFFSET   24

Definition at line 51 of file atmel-ssc.h.

#define SSC_RCMR_PERIOD_SIZE   8

Definition at line 50 of file atmel-ssc.h.

#define SSC_RCMR_START_OFFSET   8

Definition at line 53 of file atmel-ssc.h.

#define SSC_RCMR_START_SIZE   4

Definition at line 52 of file atmel-ssc.h.

#define SSC_RCMR_STOP_OFFSET   12

Definition at line 55 of file atmel-ssc.h.

#define SSC_RCMR_STOP_SIZE   1

Definition at line 54 of file atmel-ssc.h.

#define SSC_RCMR_STTDLY_OFFSET   16

Definition at line 57 of file atmel-ssc.h.

#define SSC_RCMR_STTDLY_SIZE   8

Definition at line 56 of file atmel-ssc.h.

#define ssc_readl (   base,
  reg 
)    __raw_readl(base + SSC_##reg)

Definition at line 310 of file atmel-ssc.h.

#define SSC_RFMR   0x00000014

Definition at line 60 of file atmel-ssc.h.

#define SSC_RFMR_DATLEN_OFFSET   0

Definition at line 62 of file atmel-ssc.h.

#define SSC_RFMR_DATLEN_SIZE   5

Definition at line 61 of file atmel-ssc.h.

#define SSC_RFMR_DATNB_OFFSET   8

Definition at line 64 of file atmel-ssc.h.

#define SSC_RFMR_DATNB_SIZE   4

Definition at line 63 of file atmel-ssc.h.

#define SSC_RFMR_FSEDGE_OFFSET   24

Definition at line 66 of file atmel-ssc.h.

#define SSC_RFMR_FSEDGE_SIZE   1

Definition at line 65 of file atmel-ssc.h.

#define SSC_RFMR_FSLEN_OFFSET   16

Definition at line 68 of file atmel-ssc.h.

#define SSC_RFMR_FSLEN_SIZE   4

Definition at line 67 of file atmel-ssc.h.

#define SSC_RFMR_FSOS_OFFSET   20

Definition at line 70 of file atmel-ssc.h.

#define SSC_RFMR_FSOS_SIZE   4

Definition at line 69 of file atmel-ssc.h.

#define SSC_RFMR_LOOP_OFFSET   5

Definition at line 72 of file atmel-ssc.h.

#define SSC_RFMR_LOOP_SIZE   1

Definition at line 71 of file atmel-ssc.h.

#define SSC_RFMR_MSBF_OFFSET   7

Definition at line 74 of file atmel-ssc.h.

#define SSC_RFMR_MSBF_SIZE   1

Definition at line 73 of file atmel-ssc.h.

#define SSC_RHR   0x00000020

Definition at line 113 of file atmel-ssc.h.

#define SSC_RHR_RDAT_OFFSET   0

Definition at line 115 of file atmel-ssc.h.

#define SSC_RHR_RDAT_SIZE   32

Definition at line 114 of file atmel-ssc.h.

#define SSC_RSHR   0x00000030

Definition at line 123 of file atmel-ssc.h.

#define SSC_RSHR_RSDAT_OFFSET   0

Definition at line 125 of file atmel-ssc.h.

#define SSC_RSHR_RSDAT_SIZE   16

Definition at line 124 of file atmel-ssc.h.

#define SSC_SR   0x00000040

Definition at line 143 of file atmel-ssc.h.

#define SSC_SR_CP0_OFFSET   8

Definition at line 145 of file atmel-ssc.h.

#define SSC_SR_CP0_SIZE   1

Definition at line 144 of file atmel-ssc.h.

#define SSC_SR_CP1_OFFSET   9

Definition at line 147 of file atmel-ssc.h.

#define SSC_SR_CP1_SIZE   1

Definition at line 146 of file atmel-ssc.h.

#define SSC_SR_ENDRX_OFFSET   6

Definition at line 149 of file atmel-ssc.h.

#define SSC_SR_ENDRX_SIZE   1

Definition at line 148 of file atmel-ssc.h.

#define SSC_SR_ENDTX_OFFSET   2

Definition at line 151 of file atmel-ssc.h.

#define SSC_SR_ENDTX_SIZE   1

Definition at line 150 of file atmel-ssc.h.

#define SSC_SR_OVRUN_OFFSET   5

Definition at line 153 of file atmel-ssc.h.

#define SSC_SR_OVRUN_SIZE   1

Definition at line 152 of file atmel-ssc.h.

#define SSC_SR_RXBUFF_OFFSET   7

Definition at line 155 of file atmel-ssc.h.

#define SSC_SR_RXBUFF_SIZE   1

Definition at line 154 of file atmel-ssc.h.

#define SSC_SR_RXEN_OFFSET   17

Definition at line 157 of file atmel-ssc.h.

#define SSC_SR_RXEN_SIZE   1

Definition at line 156 of file atmel-ssc.h.

#define SSC_SR_RXRDY_OFFSET   4

Definition at line 159 of file atmel-ssc.h.

#define SSC_SR_RXRDY_SIZE   1

Definition at line 158 of file atmel-ssc.h.

#define SSC_SR_RXSYN_OFFSET   11

Definition at line 161 of file atmel-ssc.h.

#define SSC_SR_RXSYN_SIZE   1

Definition at line 160 of file atmel-ssc.h.

#define SSC_SR_TXBUFE_OFFSET   3

Definition at line 163 of file atmel-ssc.h.

#define SSC_SR_TXBUFE_SIZE   1

Definition at line 162 of file atmel-ssc.h.

#define SSC_SR_TXEMPTY_OFFSET   1

Definition at line 165 of file atmel-ssc.h.

#define SSC_SR_TXEMPTY_SIZE   1

Definition at line 164 of file atmel-ssc.h.

#define SSC_SR_TXEN_OFFSET   16

Definition at line 167 of file atmel-ssc.h.

#define SSC_SR_TXEN_SIZE   1

Definition at line 166 of file atmel-ssc.h.

#define SSC_SR_TXRDY_OFFSET   0

Definition at line 169 of file atmel-ssc.h.

#define SSC_SR_TXRDY_SIZE   1

Definition at line 168 of file atmel-ssc.h.

#define SSC_SR_TXSYN_OFFSET   10

Definition at line 171 of file atmel-ssc.h.

#define SSC_SR_TXSYN_SIZE   1

Definition at line 170 of file atmel-ssc.h.

#define SSC_TCMR   0x00000018

Definition at line 77 of file atmel-ssc.h.

#define SSC_TCMR_CKG_OFFSET   6

Definition at line 79 of file atmel-ssc.h.

#define SSC_TCMR_CKG_SIZE   2

Definition at line 78 of file atmel-ssc.h.

#define SSC_TCMR_CKI_OFFSET   5

Definition at line 81 of file atmel-ssc.h.

#define SSC_TCMR_CKI_SIZE   1

Definition at line 80 of file atmel-ssc.h.

#define SSC_TCMR_CKO_OFFSET   2

Definition at line 83 of file atmel-ssc.h.

#define SSC_TCMR_CKO_SIZE   3

Definition at line 82 of file atmel-ssc.h.

#define SSC_TCMR_CKS_OFFSET   0

Definition at line 85 of file atmel-ssc.h.

#define SSC_TCMR_CKS_SIZE   2

Definition at line 84 of file atmel-ssc.h.

#define SSC_TCMR_PERIOD_OFFSET   24

Definition at line 87 of file atmel-ssc.h.

#define SSC_TCMR_PERIOD_SIZE   8

Definition at line 86 of file atmel-ssc.h.

#define SSC_TCMR_START_OFFSET   8

Definition at line 89 of file atmel-ssc.h.

#define SSC_TCMR_START_SIZE   4

Definition at line 88 of file atmel-ssc.h.

#define SSC_TCMR_STTDLY_OFFSET   16

Definition at line 91 of file atmel-ssc.h.

#define SSC_TCMR_STTDLY_SIZE   8

Definition at line 90 of file atmel-ssc.h.

#define SSC_TFMR   0x0000001c

Definition at line 94 of file atmel-ssc.h.

#define SSC_TFMR_DATDEF_OFFSET   5

Definition at line 96 of file atmel-ssc.h.

#define SSC_TFMR_DATDEF_SIZE   1

Definition at line 95 of file atmel-ssc.h.

#define SSC_TFMR_DATLEN_OFFSET   0

Definition at line 98 of file atmel-ssc.h.

#define SSC_TFMR_DATLEN_SIZE   5

Definition at line 97 of file atmel-ssc.h.

#define SSC_TFMR_DATNB_OFFSET   8

Definition at line 100 of file atmel-ssc.h.

#define SSC_TFMR_DATNB_SIZE   4

Definition at line 99 of file atmel-ssc.h.

#define SSC_TFMR_FSDEN_OFFSET   23

Definition at line 102 of file atmel-ssc.h.

#define SSC_TFMR_FSDEN_SIZE   1

Definition at line 101 of file atmel-ssc.h.

#define SSC_TFMR_FSEDGE_OFFSET   24

Definition at line 104 of file atmel-ssc.h.

#define SSC_TFMR_FSEDGE_SIZE   1

Definition at line 103 of file atmel-ssc.h.

#define SSC_TFMR_FSLEN_OFFSET   16

Definition at line 106 of file atmel-ssc.h.

#define SSC_TFMR_FSLEN_SIZE   4

Definition at line 105 of file atmel-ssc.h.

#define SSC_TFMR_FSOS_OFFSET   20

Definition at line 108 of file atmel-ssc.h.

#define SSC_TFMR_FSOS_SIZE   3

Definition at line 107 of file atmel-ssc.h.

#define SSC_TFMR_MSBF_OFFSET   7

Definition at line 110 of file atmel-ssc.h.

#define SSC_TFMR_MSBF_SIZE   1

Definition at line 109 of file atmel-ssc.h.

#define SSC_THR   0x00000024

Definition at line 118 of file atmel-ssc.h.

#define SSC_THR_TDAT_OFFSET   0

Definition at line 120 of file atmel-ssc.h.

#define SSC_THR_TDAT_SIZE   32

Definition at line 119 of file atmel-ssc.h.

#define SSC_TSHR   0x00000034

Definition at line 128 of file atmel-ssc.h.

#define SSC_TSHR_RSDAT_OFFSET   0

Definition at line 130 of file atmel-ssc.h.

#define SSC_TSHR_TSDAT_SIZE   16

Definition at line 129 of file atmel-ssc.h.

#define ssc_writel (   base,
  reg,
  value 
)    __raw_writel((value), base + SSC_##reg)

Definition at line 311 of file atmel-ssc.h.

Function Documentation

void ssc_free ( struct ssc_device ssc)

Definition at line 58 of file atmel-ssc.c.

struct ssc_device* __must_check ssc_request ( unsigned int  ssc_num)
read

Definition at line 25 of file atmel-ssc.c.