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

Go to the source code of this file.

Data Structures

struct  talitos_ptr
 
struct  talitos_desc
 
struct  talitos_request
 
struct  talitos_channel
 
struct  talitos_private
 

Macros

#define TALITOS_TIMEOUT   100000
 
#define TALITOS_MAX_DATA_LEN   65535
 
#define DESC_TYPE(desc_hdr)   ((be32_to_cpu(desc_hdr) >> 3) & 0x1f)
 
#define PRIMARY_EU(desc_hdr)   ((be32_to_cpu(desc_hdr) >> 28) & 0xf)
 
#define SECONDARY_EU(desc_hdr)   ((be32_to_cpu(desc_hdr) >> 16) & 0xf)
 
#define TALITOS_FTR_SRC_LINK_TBL_LEN_INCLUDES_EXTENT   0x00000001
 
#define TALITOS_FTR_HW_AUTH_CHECK   0x00000002
 
#define TALITOS_FTR_SHA224_HWINIT   0x00000004
 
#define TALITOS_FTR_HMAC_OK   0x00000008
 
#define TALITOS_MCR   0x1030 /* master control register */
 
#define TALITOS_MCR_RCA0   (1 << 15) /* remap channel 0 */
 
#define TALITOS_MCR_RCA1   (1 << 14) /* remap channel 1 */
 
#define TALITOS_MCR_RCA2   (1 << 13) /* remap channel 2 */
 
#define TALITOS_MCR_RCA3   (1 << 12) /* remap channel 3 */
 
#define TALITOS_MCR_SWR   0x1 /* s/w reset */
 
#define TALITOS_MCR_LO   0x1034
 
#define TALITOS_IMR   0x1008 /* interrupt mask register */
 
#define TALITOS_IMR_INIT   0x100ff /* enable channel IRQs */
 
#define TALITOS_IMR_DONE   0x00055 /* done IRQs */
 
#define TALITOS_IMR_LO   0x100C
 
#define TALITOS_IMR_LO_INIT   0x20000 /* allow RNGU error IRQs */
 
#define TALITOS_ISR   0x1010 /* interrupt status register */
 
#define TALITOS_ISR_4CHERR   0xaa /* 4 channel errors mask */
 
#define TALITOS_ISR_4CHDONE   0x55 /* 4 channel done mask */
 
#define TALITOS_ISR_CH_0_2_ERR   0x22 /* channels 0, 2 errors mask */
 
#define TALITOS_ISR_CH_0_2_DONE   0x11 /* channels 0, 2 done mask */
 
#define TALITOS_ISR_CH_1_3_ERR   0x88 /* channels 1, 3 errors mask */
 
#define TALITOS_ISR_CH_1_3_DONE   0x44 /* channels 1, 3 done mask */
 
#define TALITOS_ISR_LO   0x1014
 
#define TALITOS_ICR   0x1018 /* interrupt clear register */
 
#define TALITOS_ICR_LO   0x101C
 
#define TALITOS_CH_BASE_OFFSET   0x1000 /* default channel map base */
 
#define TALITOS_CH_STRIDE   0x100
 
#define TALITOS_CCCR   0x8
 
#define TALITOS_CCCR_CONT   0x2 /* channel continue */
 
#define TALITOS_CCCR_RESET   0x1 /* channel reset */
 
#define TALITOS_CCCR_LO   0xc
 
#define TALITOS_CCCR_LO_IWSE   0x80 /* chan. ICCR writeback enab. */
 
#define TALITOS_CCCR_LO_EAE   0x20 /* extended address enable */
 
#define TALITOS_CCCR_LO_CDWE   0x10 /* chan. done writeback enab. */
 
#define TALITOS_CCCR_LO_NT   0x4 /* notification type */
 
#define TALITOS_CCCR_LO_CDIE   0x2 /* channel done IRQ enable */
 
#define TALITOS_CCPSR   0x10
 
#define TALITOS_CCPSR_LO   0x14
 
#define TALITOS_CCPSR_LO_DOF   0x8000 /* double FF write oflow error */
 
#define TALITOS_CCPSR_LO_SOF   0x4000 /* single FF write oflow error */
 
#define TALITOS_CCPSR_LO_MDTE   0x2000 /* master data transfer error */
 
#define TALITOS_CCPSR_LO_SGDLZ   0x1000 /* s/g data len zero error */
 
#define TALITOS_CCPSR_LO_FPZ   0x0800 /* fetch ptr zero error */
 
#define TALITOS_CCPSR_LO_IDH   0x0400 /* illegal desc hdr error */
 
#define TALITOS_CCPSR_LO_IEU   0x0200 /* invalid EU error */
 
#define TALITOS_CCPSR_LO_EU   0x0100 /* EU error detected */
 
#define TALITOS_CCPSR_LO_GB   0x0080 /* gather boundary error */
 
#define TALITOS_CCPSR_LO_GRL   0x0040 /* gather return/length error */
 
#define TALITOS_CCPSR_LO_SB   0x0020 /* scatter boundary error */
 
#define TALITOS_CCPSR_LO_SRL   0x0010 /* scatter return/length error */
 
#define TALITOS_FF   0x48
 
#define TALITOS_FF_LO   0x4c
 
#define TALITOS_CDPR   0x40
 
#define TALITOS_CDPR_LO   0x44
 
#define TALITOS_DESCBUF   0x80
 
#define TALITOS_DESCBUF_LO   0x84
 
#define TALITOS_GATHER   0xc0
 
#define TALITOS_GATHER_LO   0xc4
 
#define TALITOS_SCATTER   0xe0
 
#define TALITOS_SCATTER_LO   0xe4
 
#define TALITOS_DEUISR   0x2030 /* DES unit */
 
#define TALITOS_DEUISR_LO   0x2034
 
#define TALITOS_AESUISR   0x4030 /* AES unit */
 
#define TALITOS_AESUISR_LO   0x4034
 
#define TALITOS_MDEUISR   0x6030 /* message digest unit */
 
#define TALITOS_MDEUISR_LO   0x6034
 
#define TALITOS_MDEUICR   0x6038 /* interrupt control */
 
#define TALITOS_MDEUICR_LO   0x603c
 
#define TALITOS_MDEUICR_LO_ICE   0x4000 /* integrity check IRQ enable */
 
#define TALITOS_AFEUISR   0x8030 /* arc4 unit */
 
#define TALITOS_AFEUISR_LO   0x8034
 
#define TALITOS_RNGUISR   0xa030 /* random number unit */
 
#define TALITOS_RNGUISR_LO   0xa034
 
#define TALITOS_RNGUSR   0xa028 /* rng status */
 
#define TALITOS_RNGUSR_LO   0xa02c
 
#define TALITOS_RNGUSR_LO_RD   0x1 /* reset done */
 
#define TALITOS_RNGUSR_LO_OFL   0xff0000/* output FIFO length */
 
#define TALITOS_RNGUDSR   0xa010 /* data size */
 
#define TALITOS_RNGUDSR_LO   0xa014
 
#define TALITOS_RNGU_FIFO   0xa800 /* output FIFO */
 
#define TALITOS_RNGU_FIFO_LO   0xa804 /* output FIFO */
 
#define TALITOS_RNGURCR   0xa018 /* reset control */
 
#define TALITOS_RNGURCR_LO   0xa01c
 
#define TALITOS_RNGURCR_LO_SR   0x1 /* software reset */
 
#define TALITOS_PKEUISR   0xc030 /* public key unit */
 
#define TALITOS_PKEUISR_LO   0xc034
 
#define TALITOS_KEUISR   0xe030 /* kasumi unit */
 
#define TALITOS_KEUISR_LO   0xe034
 
#define TALITOS_CRCUISR   0xf030 /* cyclic redundancy check unit*/
 
#define TALITOS_CRCUISR_LO   0xf034
 
#define TALITOS_MDEU_CONTEXT_SIZE_MD5_SHA1_SHA256   0x28
 
#define TALITOS_MDEU_CONTEXT_SIZE_SHA384_SHA512   0x48
 
#define DESC_HDR_DONE   cpu_to_be32(0xff000000)
 
#define DESC_HDR_LO_ICCR1_MASK   cpu_to_be32(0x00180000)
 
#define DESC_HDR_LO_ICCR1_PASS   cpu_to_be32(0x00080000)
 
#define DESC_HDR_LO_ICCR1_FAIL   cpu_to_be32(0x00100000)
 
#define DESC_HDR_SEL0_MASK   cpu_to_be32(0xf0000000)
 
#define DESC_HDR_SEL0_AFEU   cpu_to_be32(0x10000000)
 
#define DESC_HDR_SEL0_DEU   cpu_to_be32(0x20000000)
 
#define DESC_HDR_SEL0_MDEUA   cpu_to_be32(0x30000000)
 
#define DESC_HDR_SEL0_MDEUB   cpu_to_be32(0xb0000000)
 
#define DESC_HDR_SEL0_RNG   cpu_to_be32(0x40000000)
 
#define DESC_HDR_SEL0_PKEU   cpu_to_be32(0x50000000)
 
#define DESC_HDR_SEL0_AESU   cpu_to_be32(0x60000000)
 
#define DESC_HDR_SEL0_KEU   cpu_to_be32(0x70000000)
 
#define DESC_HDR_SEL0_CRCU   cpu_to_be32(0x80000000)
 
#define DESC_HDR_MODE0_ENCRYPT   cpu_to_be32(0x00100000)
 
#define DESC_HDR_MODE0_AESU_CBC   cpu_to_be32(0x00200000)
 
#define DESC_HDR_MODE0_DEU_CBC   cpu_to_be32(0x00400000)
 
#define DESC_HDR_MODE0_DEU_3DES   cpu_to_be32(0x00200000)
 
#define DESC_HDR_MODE0_MDEU_CONT   cpu_to_be32(0x08000000)
 
#define DESC_HDR_MODE0_MDEU_INIT   cpu_to_be32(0x01000000)
 
#define DESC_HDR_MODE0_MDEU_HMAC   cpu_to_be32(0x00800000)
 
#define DESC_HDR_MODE0_MDEU_PAD   cpu_to_be32(0x00400000)
 
#define DESC_HDR_MODE0_MDEU_SHA224   cpu_to_be32(0x00300000)
 
#define DESC_HDR_MODE0_MDEU_MD5   cpu_to_be32(0x00200000)
 
#define DESC_HDR_MODE0_MDEU_SHA256   cpu_to_be32(0x00100000)
 
#define DESC_HDR_MODE0_MDEU_SHA1   cpu_to_be32(0x00000000)
 
#define DESC_HDR_MODE0_MDEUB_SHA384   cpu_to_be32(0x00000000)
 
#define DESC_HDR_MODE0_MDEUB_SHA512   cpu_to_be32(0x00200000)
 
#define DESC_HDR_MODE0_MDEU_MD5_HMAC
 
#define DESC_HDR_MODE0_MDEU_SHA256_HMAC
 
#define DESC_HDR_MODE0_MDEU_SHA1_HMAC
 
#define DESC_HDR_SEL1_MASK   cpu_to_be32(0x000f0000)
 
#define DESC_HDR_SEL1_MDEUA   cpu_to_be32(0x00030000)
 
#define DESC_HDR_SEL1_MDEUB   cpu_to_be32(0x000b0000)
 
#define DESC_HDR_SEL1_CRCU   cpu_to_be32(0x00080000)
 
#define DESC_HDR_MODE1_MDEU_CICV   cpu_to_be32(0x00004000)
 
#define DESC_HDR_MODE1_MDEU_INIT   cpu_to_be32(0x00001000)
 
#define DESC_HDR_MODE1_MDEU_HMAC   cpu_to_be32(0x00000800)
 
#define DESC_HDR_MODE1_MDEU_PAD   cpu_to_be32(0x00000400)
 
#define DESC_HDR_MODE1_MDEU_SHA224   cpu_to_be32(0x00000300)
 
#define DESC_HDR_MODE1_MDEU_MD5   cpu_to_be32(0x00000200)
 
#define DESC_HDR_MODE1_MDEU_SHA256   cpu_to_be32(0x00000100)
 
#define DESC_HDR_MODE1_MDEU_SHA1   cpu_to_be32(0x00000000)
 
#define DESC_HDR_MODE1_MDEUB_SHA384   cpu_to_be32(0x00000000)
 
#define DESC_HDR_MODE1_MDEUB_SHA512   cpu_to_be32(0x00000200)
 
#define DESC_HDR_MODE1_MDEU_MD5_HMAC
 
#define DESC_HDR_MODE1_MDEU_SHA256_HMAC
 
#define DESC_HDR_MODE1_MDEU_SHA1_HMAC
 
#define DESC_HDR_MODE1_MDEU_SHA224_HMAC
 
#define DESC_HDR_MODE1_MDEUB_SHA384_HMAC
 
#define DESC_HDR_MODE1_MDEUB_SHA512_HMAC
 
#define DESC_HDR_DIR_INBOUND   cpu_to_be32(0x00000002)
 
#define DESC_HDR_DONE_NOTIFY   cpu_to_be32(0x00000001)
 
#define DESC_HDR_TYPE_AESU_CTR_NONSNOOP   cpu_to_be32(0 << 3)
 
#define DESC_HDR_TYPE_IPSEC_ESP   cpu_to_be32(1 << 3)
 
#define DESC_HDR_TYPE_COMMON_NONSNOOP_NO_AFEU   cpu_to_be32(2 << 3)
 
#define DESC_HDR_TYPE_HMAC_SNOOP_NO_AFEU   cpu_to_be32(4 << 3)
 
#define DESC_PTR_LNKTBL_JUMP   0x80
 
#define DESC_PTR_LNKTBL_RETURN   0x02
 
#define DESC_PTR_LNKTBL_NEXT   0x01
 

Functions

int talitos_submit (struct device *dev, int ch, struct talitos_desc *desc, void(*callback)(struct device *dev, struct talitos_desc *desc, void *context, int error), void *context)
 

Macro Definition Documentation

#define DESC_HDR_DIR_INBOUND   cpu_to_be32(0x00000002)

Definition at line 337 of file talitos.h.

#define DESC_HDR_DONE   cpu_to_be32(0xff000000)

Definition at line 267 of file talitos.h.

#define DESC_HDR_DONE_NOTIFY   cpu_to_be32(0x00000001)

Definition at line 340 of file talitos.h.

#define DESC_HDR_LO_ICCR1_FAIL   cpu_to_be32(0x00100000)

Definition at line 270 of file talitos.h.

#define DESC_HDR_LO_ICCR1_MASK   cpu_to_be32(0x00180000)

Definition at line 268 of file talitos.h.

#define DESC_HDR_LO_ICCR1_PASS   cpu_to_be32(0x00080000)

Definition at line 269 of file talitos.h.

#define DESC_HDR_MODE0_AESU_CBC   cpu_to_be32(0x00200000)

Definition at line 286 of file talitos.h.

#define DESC_HDR_MODE0_DEU_3DES   cpu_to_be32(0x00200000)

Definition at line 288 of file talitos.h.

#define DESC_HDR_MODE0_DEU_CBC   cpu_to_be32(0x00400000)

Definition at line 287 of file talitos.h.

#define DESC_HDR_MODE0_ENCRYPT   cpu_to_be32(0x00100000)

Definition at line 285 of file talitos.h.

#define DESC_HDR_MODE0_MDEU_CONT   cpu_to_be32(0x08000000)

Definition at line 289 of file talitos.h.

#define DESC_HDR_MODE0_MDEU_HMAC   cpu_to_be32(0x00800000)

Definition at line 291 of file talitos.h.

#define DESC_HDR_MODE0_MDEU_INIT   cpu_to_be32(0x01000000)

Definition at line 290 of file talitos.h.

#define DESC_HDR_MODE0_MDEU_MD5   cpu_to_be32(0x00200000)

Definition at line 294 of file talitos.h.

#define DESC_HDR_MODE0_MDEU_MD5_HMAC
Value:
DESC_HDR_MODE0_MDEU_HMAC)

Definition at line 299 of file talitos.h.

#define DESC_HDR_MODE0_MDEU_PAD   cpu_to_be32(0x00400000)

Definition at line 292 of file talitos.h.

#define DESC_HDR_MODE0_MDEU_SHA1   cpu_to_be32(0x00000000)

Definition at line 296 of file talitos.h.

#define DESC_HDR_MODE0_MDEU_SHA1_HMAC
Value:
DESC_HDR_MODE0_MDEU_HMAC)

Definition at line 303 of file talitos.h.

#define DESC_HDR_MODE0_MDEU_SHA224   cpu_to_be32(0x00300000)

Definition at line 293 of file talitos.h.

#define DESC_HDR_MODE0_MDEU_SHA256   cpu_to_be32(0x00100000)

Definition at line 295 of file talitos.h.

#define DESC_HDR_MODE0_MDEU_SHA256_HMAC
Value:
DESC_HDR_MODE0_MDEU_HMAC)

Definition at line 301 of file talitos.h.

#define DESC_HDR_MODE0_MDEUB_SHA384   cpu_to_be32(0x00000000)

Definition at line 297 of file talitos.h.

#define DESC_HDR_MODE0_MDEUB_SHA512   cpu_to_be32(0x00200000)

Definition at line 298 of file talitos.h.

#define DESC_HDR_MODE1_MDEU_CICV   cpu_to_be32(0x00004000)

Definition at line 313 of file talitos.h.

#define DESC_HDR_MODE1_MDEU_HMAC   cpu_to_be32(0x00000800)

Definition at line 315 of file talitos.h.

#define DESC_HDR_MODE1_MDEU_INIT   cpu_to_be32(0x00001000)

Definition at line 314 of file talitos.h.

#define DESC_HDR_MODE1_MDEU_MD5   cpu_to_be32(0x00000200)

Definition at line 318 of file talitos.h.

#define DESC_HDR_MODE1_MDEU_MD5_HMAC
Value:
DESC_HDR_MODE1_MDEU_HMAC)

Definition at line 323 of file talitos.h.

#define DESC_HDR_MODE1_MDEU_PAD   cpu_to_be32(0x00000400)

Definition at line 316 of file talitos.h.

#define DESC_HDR_MODE1_MDEU_SHA1   cpu_to_be32(0x00000000)

Definition at line 320 of file talitos.h.

#define DESC_HDR_MODE1_MDEU_SHA1_HMAC
Value:
DESC_HDR_MODE1_MDEU_HMAC)

Definition at line 327 of file talitos.h.

#define DESC_HDR_MODE1_MDEU_SHA224   cpu_to_be32(0x00000300)

Definition at line 317 of file talitos.h.

#define DESC_HDR_MODE1_MDEU_SHA224_HMAC
Value:
DESC_HDR_MODE1_MDEU_HMAC)

Definition at line 329 of file talitos.h.

#define DESC_HDR_MODE1_MDEU_SHA256   cpu_to_be32(0x00000100)

Definition at line 319 of file talitos.h.

#define DESC_HDR_MODE1_MDEU_SHA256_HMAC
Value:
DESC_HDR_MODE1_MDEU_HMAC)

Definition at line 325 of file talitos.h.

#define DESC_HDR_MODE1_MDEUB_SHA384   cpu_to_be32(0x00000000)

Definition at line 321 of file talitos.h.

#define DESC_HDR_MODE1_MDEUB_SHA384_HMAC
Value:
DESC_HDR_MODE1_MDEU_HMAC)

Definition at line 331 of file talitos.h.

#define DESC_HDR_MODE1_MDEUB_SHA512   cpu_to_be32(0x00000200)

Definition at line 322 of file talitos.h.

#define DESC_HDR_MODE1_MDEUB_SHA512_HMAC
Value:
DESC_HDR_MODE1_MDEU_HMAC)

Definition at line 333 of file talitos.h.

#define DESC_HDR_SEL0_AESU   cpu_to_be32(0x60000000)

Definition at line 280 of file talitos.h.

#define DESC_HDR_SEL0_AFEU   cpu_to_be32(0x10000000)

Definition at line 274 of file talitos.h.

#define DESC_HDR_SEL0_CRCU   cpu_to_be32(0x80000000)

Definition at line 282 of file talitos.h.

#define DESC_HDR_SEL0_DEU   cpu_to_be32(0x20000000)

Definition at line 275 of file talitos.h.

#define DESC_HDR_SEL0_KEU   cpu_to_be32(0x70000000)

Definition at line 281 of file talitos.h.

#define DESC_HDR_SEL0_MASK   cpu_to_be32(0xf0000000)

Definition at line 273 of file talitos.h.

#define DESC_HDR_SEL0_MDEUA   cpu_to_be32(0x30000000)

Definition at line 276 of file talitos.h.

#define DESC_HDR_SEL0_MDEUB   cpu_to_be32(0xb0000000)

Definition at line 277 of file talitos.h.

#define DESC_HDR_SEL0_PKEU   cpu_to_be32(0x50000000)

Definition at line 279 of file talitos.h.

#define DESC_HDR_SEL0_RNG   cpu_to_be32(0x40000000)

Definition at line 278 of file talitos.h.

#define DESC_HDR_SEL1_CRCU   cpu_to_be32(0x00080000)

Definition at line 310 of file talitos.h.

#define DESC_HDR_SEL1_MASK   cpu_to_be32(0x000f0000)

Definition at line 307 of file talitos.h.

#define DESC_HDR_SEL1_MDEUA   cpu_to_be32(0x00030000)

Definition at line 308 of file talitos.h.

#define DESC_HDR_SEL1_MDEUB   cpu_to_be32(0x000b0000)

Definition at line 309 of file talitos.h.

#define DESC_HDR_TYPE_AESU_CTR_NONSNOOP   cpu_to_be32(0 << 3)

Definition at line 343 of file talitos.h.

#define DESC_HDR_TYPE_COMMON_NONSNOOP_NO_AFEU   cpu_to_be32(2 << 3)

Definition at line 345 of file talitos.h.

#define DESC_HDR_TYPE_HMAC_SNOOP_NO_AFEU   cpu_to_be32(4 << 3)

Definition at line 346 of file talitos.h.

#define DESC_HDR_TYPE_IPSEC_ESP   cpu_to_be32(1 << 3)

Definition at line 344 of file talitos.h.

#define DESC_PTR_LNKTBL_JUMP   0x80

Definition at line 349 of file talitos.h.

#define DESC_PTR_LNKTBL_NEXT   0x01

Definition at line 351 of file talitos.h.

#define DESC_PTR_LNKTBL_RETURN   0x02

Definition at line 350 of file talitos.h.

#define DESC_TYPE (   desc_hdr)    ((be32_to_cpu(desc_hdr) >> 3) & 0x1f)

Definition at line 34 of file talitos.h.

#define PRIMARY_EU (   desc_hdr)    ((be32_to_cpu(desc_hdr) >> 28) & 0xf)

Definition at line 35 of file talitos.h.

#define SECONDARY_EU (   desc_hdr)    ((be32_to_cpu(desc_hdr) >> 16) & 0xf)

Definition at line 36 of file talitos.h.

#define TALITOS_AESUISR   0x4030 /* AES unit */

Definition at line 230 of file talitos.h.

#define TALITOS_AESUISR_LO   0x4034

Definition at line 231 of file talitos.h.

#define TALITOS_AFEUISR   0x8030 /* arc4 unit */

Definition at line 237 of file talitos.h.

#define TALITOS_AFEUISR_LO   0x8034

Definition at line 238 of file talitos.h.

#define TALITOS_CCCR   0x8

Definition at line 181 of file talitos.h.

#define TALITOS_CCCR_CONT   0x2 /* channel continue */

Definition at line 182 of file talitos.h.

#define TALITOS_CCCR_LO   0xc

Definition at line 184 of file talitos.h.

#define TALITOS_CCCR_LO_CDIE   0x2 /* channel done IRQ enable */

Definition at line 189 of file talitos.h.

#define TALITOS_CCCR_LO_CDWE   0x10 /* chan. done writeback enab. */

Definition at line 187 of file talitos.h.

#define TALITOS_CCCR_LO_EAE   0x20 /* extended address enable */

Definition at line 186 of file talitos.h.

#define TALITOS_CCCR_LO_IWSE   0x80 /* chan. ICCR writeback enab. */

Definition at line 185 of file talitos.h.

#define TALITOS_CCCR_LO_NT   0x4 /* notification type */

Definition at line 188 of file talitos.h.

#define TALITOS_CCCR_RESET   0x1 /* channel reset */

Definition at line 183 of file talitos.h.

#define TALITOS_CCPSR   0x10

Definition at line 192 of file talitos.h.

#define TALITOS_CCPSR_LO   0x14

Definition at line 193 of file talitos.h.

#define TALITOS_CCPSR_LO_DOF   0x8000 /* double FF write oflow error */

Definition at line 194 of file talitos.h.

#define TALITOS_CCPSR_LO_EU   0x0100 /* EU error detected */

Definition at line 201 of file talitos.h.

#define TALITOS_CCPSR_LO_FPZ   0x0800 /* fetch ptr zero error */

Definition at line 198 of file talitos.h.

#define TALITOS_CCPSR_LO_GB   0x0080 /* gather boundary error */

Definition at line 202 of file talitos.h.

#define TALITOS_CCPSR_LO_GRL   0x0040 /* gather return/length error */

Definition at line 203 of file talitos.h.

#define TALITOS_CCPSR_LO_IDH   0x0400 /* illegal desc hdr error */

Definition at line 199 of file talitos.h.

#define TALITOS_CCPSR_LO_IEU   0x0200 /* invalid EU error */

Definition at line 200 of file talitos.h.

#define TALITOS_CCPSR_LO_MDTE   0x2000 /* master data transfer error */

Definition at line 196 of file talitos.h.

#define TALITOS_CCPSR_LO_SB   0x0020 /* scatter boundary error */

Definition at line 204 of file talitos.h.

#define TALITOS_CCPSR_LO_SGDLZ   0x1000 /* s/g data len zero error */

Definition at line 197 of file talitos.h.

#define TALITOS_CCPSR_LO_SOF   0x4000 /* single FF write oflow error */

Definition at line 195 of file talitos.h.

#define TALITOS_CCPSR_LO_SRL   0x0010 /* scatter return/length error */

Definition at line 205 of file talitos.h.

#define TALITOS_CDPR   0x40

Definition at line 212 of file talitos.h.

#define TALITOS_CDPR_LO   0x44

Definition at line 213 of file talitos.h.

#define TALITOS_CH_BASE_OFFSET   0x1000 /* default channel map base */

Definition at line 177 of file talitos.h.

#define TALITOS_CH_STRIDE   0x100

Definition at line 178 of file talitos.h.

#define TALITOS_CRCUISR   0xf030 /* cyclic redundancy check unit*/

Definition at line 256 of file talitos.h.

#define TALITOS_CRCUISR_LO   0xf034

Definition at line 257 of file talitos.h.

#define TALITOS_DESCBUF   0x80

Definition at line 216 of file talitos.h.

#define TALITOS_DESCBUF_LO   0x84

Definition at line 217 of file talitos.h.

#define TALITOS_DEUISR   0x2030 /* DES unit */

Definition at line 228 of file talitos.h.

#define TALITOS_DEUISR_LO   0x2034

Definition at line 229 of file talitos.h.

#define TALITOS_FF   0x48

Definition at line 208 of file talitos.h.

#define TALITOS_FF_LO   0x4c

Definition at line 209 of file talitos.h.

#define TALITOS_FTR_HMAC_OK   0x00000008

Definition at line 146 of file talitos.h.

#define TALITOS_FTR_HW_AUTH_CHECK   0x00000002

Definition at line 144 of file talitos.h.

#define TALITOS_FTR_SHA224_HWINIT   0x00000004

Definition at line 145 of file talitos.h.

#define TALITOS_FTR_SRC_LINK_TBL_LEN_INCLUDES_EXTENT   0x00000001

Definition at line 143 of file talitos.h.

#define TALITOS_GATHER   0xc0

Definition at line 220 of file talitos.h.

#define TALITOS_GATHER_LO   0xc4

Definition at line 221 of file talitos.h.

#define TALITOS_ICR   0x1018 /* interrupt clear register */

Definition at line 173 of file talitos.h.

#define TALITOS_ICR_LO   0x101C

Definition at line 174 of file talitos.h.

#define TALITOS_IMR   0x1008 /* interrupt mask register */

Definition at line 160 of file talitos.h.

#define TALITOS_IMR_DONE   0x00055 /* done IRQs */

Definition at line 162 of file talitos.h.

#define TALITOS_IMR_INIT   0x100ff /* enable channel IRQs */

Definition at line 161 of file talitos.h.

#define TALITOS_IMR_LO   0x100C

Definition at line 163 of file talitos.h.

#define TALITOS_IMR_LO_INIT   0x20000 /* allow RNGU error IRQs */

Definition at line 164 of file talitos.h.

#define TALITOS_ISR   0x1010 /* interrupt status register */

Definition at line 165 of file talitos.h.

#define TALITOS_ISR_4CHDONE   0x55 /* 4 channel done mask */

Definition at line 167 of file talitos.h.

#define TALITOS_ISR_4CHERR   0xaa /* 4 channel errors mask */

Definition at line 166 of file talitos.h.

#define TALITOS_ISR_CH_0_2_DONE   0x11 /* channels 0, 2 done mask */

Definition at line 169 of file talitos.h.

#define TALITOS_ISR_CH_0_2_ERR   0x22 /* channels 0, 2 errors mask */

Definition at line 168 of file talitos.h.

#define TALITOS_ISR_CH_1_3_DONE   0x44 /* channels 1, 3 done mask */

Definition at line 171 of file talitos.h.

#define TALITOS_ISR_CH_1_3_ERR   0x88 /* channels 1, 3 errors mask */

Definition at line 170 of file talitos.h.

#define TALITOS_ISR_LO   0x1014

Definition at line 172 of file talitos.h.

#define TALITOS_KEUISR   0xe030 /* kasumi unit */

Definition at line 254 of file talitos.h.

#define TALITOS_KEUISR_LO   0xe034

Definition at line 255 of file talitos.h.

#define TALITOS_MAX_DATA_LEN   65535

Definition at line 32 of file talitos.h.

#define TALITOS_MCR   0x1030 /* master control register */

Definition at line 153 of file talitos.h.

#define TALITOS_MCR_LO   0x1034

Definition at line 159 of file talitos.h.

#define TALITOS_MCR_RCA0   (1 << 15) /* remap channel 0 */

Definition at line 154 of file talitos.h.

#define TALITOS_MCR_RCA1   (1 << 14) /* remap channel 1 */

Definition at line 155 of file talitos.h.

#define TALITOS_MCR_RCA2   (1 << 13) /* remap channel 2 */

Definition at line 156 of file talitos.h.

#define TALITOS_MCR_RCA3   (1 << 12) /* remap channel 3 */

Definition at line 157 of file talitos.h.

#define TALITOS_MCR_SWR   0x1 /* s/w reset */

Definition at line 158 of file talitos.h.

#define TALITOS_MDEU_CONTEXT_SIZE_MD5_SHA1_SHA256   0x28

Definition at line 259 of file talitos.h.

#define TALITOS_MDEU_CONTEXT_SIZE_SHA384_SHA512   0x48

Definition at line 260 of file talitos.h.

#define TALITOS_MDEUICR   0x6038 /* interrupt control */

Definition at line 234 of file talitos.h.

#define TALITOS_MDEUICR_LO   0x603c

Definition at line 235 of file talitos.h.

#define TALITOS_MDEUICR_LO_ICE   0x4000 /* integrity check IRQ enable */

Definition at line 236 of file talitos.h.

#define TALITOS_MDEUISR   0x6030 /* message digest unit */

Definition at line 232 of file talitos.h.

#define TALITOS_MDEUISR_LO   0x6034

Definition at line 233 of file talitos.h.

#define TALITOS_PKEUISR   0xc030 /* public key unit */

Definition at line 252 of file talitos.h.

#define TALITOS_PKEUISR_LO   0xc034

Definition at line 253 of file talitos.h.

#define TALITOS_RNGU_FIFO   0xa800 /* output FIFO */

Definition at line 247 of file talitos.h.

#define TALITOS_RNGU_FIFO_LO   0xa804 /* output FIFO */

Definition at line 248 of file talitos.h.

#define TALITOS_RNGUDSR   0xa010 /* data size */

Definition at line 245 of file talitos.h.

#define TALITOS_RNGUDSR_LO   0xa014

Definition at line 246 of file talitos.h.

#define TALITOS_RNGUISR   0xa030 /* random number unit */

Definition at line 239 of file talitos.h.

#define TALITOS_RNGUISR_LO   0xa034

Definition at line 240 of file talitos.h.

#define TALITOS_RNGURCR   0xa018 /* reset control */

Definition at line 249 of file talitos.h.

#define TALITOS_RNGURCR_LO   0xa01c

Definition at line 250 of file talitos.h.

#define TALITOS_RNGURCR_LO_SR   0x1 /* software reset */

Definition at line 251 of file talitos.h.

#define TALITOS_RNGUSR   0xa028 /* rng status */

Definition at line 241 of file talitos.h.

#define TALITOS_RNGUSR_LO   0xa02c

Definition at line 242 of file talitos.h.

#define TALITOS_RNGUSR_LO_OFL   0xff0000/* output FIFO length */

Definition at line 244 of file talitos.h.

#define TALITOS_RNGUSR_LO_RD   0x1 /* reset done */

Definition at line 243 of file talitos.h.

#define TALITOS_SCATTER   0xe0

Definition at line 224 of file talitos.h.

#define TALITOS_SCATTER_LO   0xe4

Definition at line 225 of file talitos.h.

#define TALITOS_TIMEOUT   100000

Definition at line 31 of file talitos.h.

Function Documentation

int talitos_submit ( struct device dev,
int  ch,
struct talitos_desc desc,
void(*)(struct device *dev, struct talitos_desc *desc, void *context, int error callback,
void context 
)

talitos_submit - submits a descriptor to the device for processing : the SEC device to be used : the SEC device channel to be used : the descriptor to be processed by the device : whom to call when processing is complete : a handle for use by caller (optional)

desc must contain valid dma-mapped (bus physical) address pointers. callback must check err and feedback in descriptor header for device processing status.

Definition at line 196 of file talitos.c.