Linux Kernel
3.7.1
|
Go to the source code of this file.
Data Structures | |
union | ce_pe_dma_cfg |
union | ce_ring_size |
union | ce_ring_contol |
union | ce_io_threshold |
union | ce_part_ring_size |
struct | gd_ctl_len |
struct | ce_gd |
struct | sd_ctl |
struct | ce_sd |
union | ce_pd_ctl |
union | ce_pd_ctl_len |
struct | ce_pd |
Functions | |
union ce_pe_dma_cfg | __attribute__ ((packed)) |
Variables | |
struct { | |
u32 rsv:7 | |
u32 dir_host:1 | |
u32 rsv1:2 | |
u32 bo_td_en:1 | |
u32 dis_pdr_upd:1 | |
u32 bo_sgpd_en:1 | |
u32 bo_data_en:1 | |
u32 bo_sa_en:1 | |
u32 bo_pd_en:1 | |
u32 rsv2:4 | |
u32 dynamic_sa_en:1 | |
u32 pdr_mode:2 | |
u32 pe_mode:1 | |
u32 rsv3:5 | |
u32 reset_sg:1 | |
u32 reset_pdr:1 | |
u32 reset_pe:1 | |
} | bf |
u32 | w |
u32 | len |
u32 | done |
u32 | ready |
u32 | ptr |
struct gd_ctl_len | ctl_len |
u32 | ctl |
u32 | rdy |
union ce_pd_ctl | pd_ctl |
u32 | src |
u32 | dest |
u32 | sa |
u32 | sa_len |
union ce_pd_ctl_len | pd_ctl_len |
#define CRYPTO4XX_BYTE_ORDER_CFG 0x000600d8 |
Definition at line 99 of file crypto4xx_reg_def.h.
#define CRYPTO4XX_CTRL_STAT 0x00000000 |
Definition at line 25 of file crypto4xx_reg_def.h.
#define CRYPTO4XX_DATA_IN 0x00018000 |
Definition at line 68 of file crypto4xx_reg_def.h.
#define CRYPTO4XX_DATA_OUT 0x0001c000 |
Definition at line 69 of file crypto4xx_reg_def.h.
#define CRYPTO4XX_DESCRIPTOR 0x00000000 |
AMCC SoC PPC4xx Crypto Driver
Copyright (c) 2008 Applied Micro Circuits Corporation. All rights reserved. James Hsiao jhsia o@am cc.co m
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
This filr defines the register set for Security Subsystem
Definition at line 24 of file crypto4xx_reg_def.h.
#define CRYPTO4XX_DEST 0x00000008 |
Definition at line 27 of file crypto4xx_reg_def.h.
#define CRYPTO4XX_DEVICE_CTRL 0x00060080 |
Definition at line 91 of file crypto4xx_reg_def.h.
#define CRYPTO4XX_DEVICE_ID 0x00060084 |
Definition at line 92 of file crypto4xx_reg_def.h.
#define CRYPTO4XX_DEVICE_INFO 0x00060088 |
Definition at line 93 of file crypto4xx_reg_def.h.
#define CRYPTO4XX_DMA_CFG 0x000600d4 |
Definition at line 98 of file crypto4xx_reg_def.h.
#define CRYPTO4XX_DMA_CFG_OFFSET 0x40 |
Generic Security Association (SA) with all possible fields. These will never likely used except for reference purpose. These structure format can be not changed as the hardware expects them to be layout as defined. Field can be removed or reduced but ordering can not be changed.
Definition at line 145 of file crypto4xx_reg_def.h.
#define CRYPTO4XX_DMA_USER_CMD 0x0006009C |
Definition at line 96 of file crypto4xx_reg_def.h.
#define CRYPTO4XX_DMA_USER_DEST 0x00060098 |
Definition at line 95 of file crypto4xx_reg_def.h.
#define CRYPTO4XX_DMA_USER_SRC 0x00060094 |
Definition at line 94 of file crypto4xx_reg_def.h.
#define CRYPTO4XX_ENDIAN_CFG 0x000600d8 |
Definition at line 100 of file crypto4xx_reg_def.h.
#define CRYPTO4XX_EXT_RING_STAT 0x0000005c |
Definition at line 39 of file crypto4xx_reg_def.h.
#define CRYPTO4XX_GATH_RING_BASE 0x00000064 |
Definition at line 41 of file crypto4xx_reg_def.h.
#define CRYPTO4XX_GATH_RING_BASE_UADDR 0x000000A0 |
Definition at line 51 of file crypto4xx_reg_def.h.
#define CRYPTO4XX_GATHER_RING_BASE_OFFSET 0x64 |
Definition at line 204 of file crypto4xx_reg_def.h.
#define CRYPTO4XX_INT_CFG 0x000500ac |
Definition at line 86 of file crypto4xx_reg_def.h.
#define CRYPTO4XX_INT_CLR 0x000500a4 |
Definition at line 73 of file crypto4xx_reg_def.h.
#define CRYPTO4XX_INT_DESCR_CNT 0x000500b4 |
Definition at line 88 of file crypto4xx_reg_def.h.
#define CRYPTO4XX_INT_DESCR_RD 0x000500b0 |
Definition at line 87 of file crypto4xx_reg_def.h.
#define CRYPTO4XX_INT_EN 0x000500a8 |
Definition at line 74 of file crypto4xx_reg_def.h.
#define CRYPTO4XX_INT_ERROR 0x00030258 |
Definition at line 84 of file crypto4xx_reg_def.h.
#define CRYPTO4XX_INT_MA_RD_ERR 0x00010000 |
Definition at line 79 of file crypto4xx_reg_def.h.
#define CRYPTO4XX_INT_MA_WR_ERR 0x00020000 |
Definition at line 78 of file crypto4xx_reg_def.h.
#define CRYPTO4XX_INT_MASK_STAT 0x000500a4 |
Definition at line 72 of file crypto4xx_reg_def.h.
#define CRYPTO4XX_INT_MASTER_ERR 0x00000008 |
Definition at line 83 of file crypto4xx_reg_def.h.
#define CRYPTO4XX_INT_PDR_DONE 0x00008000 |
Definition at line 77 of file crypto4xx_reg_def.h.
#define CRYPTO4XX_INT_PE_ERR 0x00000200 |
Definition at line 80 of file crypto4xx_reg_def.h.
#define CRYPTO4XX_INT_PKA 0x00000002 |
Definition at line 76 of file crypto4xx_reg_def.h.
#define CRYPTO4XX_INT_RING_STAT 0x00000058 |
Definition at line 38 of file crypto4xx_reg_def.h.
#define CRYPTO4XX_INT_SLAVE_ERR 0x00000010 |
Definition at line 82 of file crypto4xx_reg_def.h.
#define CRYPTO4XX_INT_TIMEOUT_CNT 0x000500b8 |
Definition at line 89 of file crypto4xx_reg_def.h.
#define CRYPTO4XX_INT_UNMASK_STAT 0x000500a0 |
Definition at line 71 of file crypto4xx_reg_def.h.
#define CRYPTO4XX_INT_USER_DMA_ERR 0x00000040 |
Definition at line 81 of file crypto4xx_reg_def.h.
#define CRYPTO4XX_IO_THRESHOLD 0x00000060 |
Definition at line 40 of file crypto4xx_reg_def.h.
#define CRYPTO4XX_IO_THRESHOLD_OFFSET 0x60 |
Definition at line 193 of file crypto4xx_reg_def.h.
#define CRYPTO4XX_LENGTH 0x00000014 |
Definition at line 30 of file crypto4xx_reg_def.h.
#define CRYPTO4XX_PART_RING_CFG 0x00000070 |
Definition at line 44 of file crypto4xx_reg_def.h.
#define CRYPTO4XX_PART_RING_SIZE 0x0000006c |
Definition at line 43 of file crypto4xx_reg_def.h.
#define CRYPTO4XX_PDR_BASE 0x00000048 |
Definition at line 34 of file crypto4xx_reg_def.h.
#define CRYPTO4XX_PDR_BASE_OFFSET 0x48 |
Definition at line 169 of file crypto4xx_reg_def.h.
#define CRYPTO4XX_PDR_BASE_UADDR 0x00000080 |
Definition at line 46 of file crypto4xx_reg_def.h.
#define CRYPTO4XX_PE_DMA_CFG 0x00000040 |
Definition at line 32 of file crypto4xx_reg_def.h.
#define CRYPTO4XX_PE_DMA_STAT 0x00000044 |
Definition at line 33 of file crypto4xx_reg_def.h.
#define CRYPTO4XX_PKT_DEST_UADDR 0x0000008c |
Definition at line 49 of file crypto4xx_reg_def.h.
#define CRYPTO4XX_PKT_SRC_UADDR 0x00000088 |
Definition at line 48 of file crypto4xx_reg_def.h.
#define CRYPTO4XX_PRNG_CTRL 0x00070004 |
Definition at line 103 of file crypto4xx_reg_def.h.
#define CRYPTO4XX_PRNG_LFSR_H 0x00070034 |
Definition at line 113 of file crypto4xx_reg_def.h.
#define CRYPTO4XX_PRNG_LFSR_L 0x00070030 |
Definition at line 112 of file crypto4xx_reg_def.h.
#define CRYPTO4XX_PRNG_RES_0 0x00070020 |
Definition at line 107 of file crypto4xx_reg_def.h.
#define CRYPTO4XX_PRNG_RES_1 0x00070024 |
Definition at line 108 of file crypto4xx_reg_def.h.
#define CRYPTO4XX_PRNG_RES_2 0x00070028 |
Definition at line 109 of file crypto4xx_reg_def.h.
#define CRYPTO4XX_PRNG_RES_3 0x0007002C |
Definition at line 110 of file crypto4xx_reg_def.h.
#define CRYPTO4XX_PRNG_SEED_H 0x0007000c |
Definition at line 105 of file crypto4xx_reg_def.h.
#define CRYPTO4XX_PRNG_SEED_L 0x00070008 |
Definition at line 104 of file crypto4xx_reg_def.h.
#define CRYPTO4XX_PRNG_STAT 0x00070000 |
Definition at line 102 of file crypto4xx_reg_def.h.
#define CRYPTO4XX_RDR_BASE 0x0000004c |
Definition at line 35 of file crypto4xx_reg_def.h.
#define CRYPTO4XX_RDR_BASE_OFFSET 0x4c |
Definition at line 170 of file crypto4xx_reg_def.h.
#define CRYPTO4XX_RDR_BASE_UADDR 0x00000084 |
Definition at line 47 of file crypto4xx_reg_def.h.
#define CRYPTO4XX_RING_CONTROL_OFFSET 0x54 |
Definition at line 181 of file crypto4xx_reg_def.h.
#define CRYPTO4XX_RING_CTRL 0x00000054 |
Definition at line 37 of file crypto4xx_reg_def.h.
#define CRYPTO4XX_RING_SIZE 0x00000050 |
Definition at line 36 of file crypto4xx_reg_def.h.
#define CRYPTO4XX_RING_SIZE_OFFSET 0x50 |
Definition at line 171 of file crypto4xx_reg_def.h.
#define CRYPTO4XX_SA 0x0000000C |
Definition at line 28 of file crypto4xx_reg_def.h.
#define CRYPTO4XX_SA_CMD_0 0x00010600 |
Definition at line 57 of file crypto4xx_reg_def.h.
#define CRYPTO4XX_SA_CMD_1 0x00010604 |
Definition at line 58 of file crypto4xx_reg_def.h.
#define CRYPTO4XX_SA_LENGTH 0x00000010 |
Definition at line 29 of file crypto4xx_reg_def.h.
#define CRYPTO4XX_SA_UADDR 0x00000090 |
Definition at line 50 of file crypto4xx_reg_def.h.
#define CRYPTO4XX_SCAT_RING_BASE 0x00000068 |
Definition at line 42 of file crypto4xx_reg_def.h.
#define CRYPTO4XX_SCAT_RING_BASE_UADDR 0x000000A4 |
Definition at line 52 of file crypto4xx_reg_def.h.
#define CRYPTO4XX_SCATTER_RING_BASE_OFFSET 0x68 |
Definition at line 205 of file crypto4xx_reg_def.h.
#define CRYPTO4XX_SEQ_MASK_RD 0x0000040C |
Definition at line 55 of file crypto4xx_reg_def.h.
#define CRYPTO4XX_SEQ_RD 0x00000408 |
Definition at line 54 of file crypto4xx_reg_def.h.
#define CRYPTO4XX_SOURCE 0x00000004 |
Definition at line 26 of file crypto4xx_reg_def.h.
#define CRYPTO4XX_STATE_HASH_BYTE_CNT_0 0x00010710 |
Definition at line 62 of file crypto4xx_reg_def.h.
#define CRYPTO4XX_STATE_HASH_BYTE_CNT_1 0x00010714 |
Definition at line 63 of file crypto4xx_reg_def.h.
#define CRYPTO4XX_STATE_IDIGEST_0 0x00010718 |
Definition at line 65 of file crypto4xx_reg_def.h.
#define CRYPTO4XX_STATE_IDIGEST_1 0x0001071c |
Definition at line 66 of file crypto4xx_reg_def.h.
#define CRYPTO4XX_STATE_IV 0x00010700 |
Definition at line 61 of file crypto4xx_reg_def.h.
#define CRYPTO4XX_STATE_PTR 0x000106dc |
Definition at line 60 of file crypto4xx_reg_def.h.
#define MAX_BURST_SIZE_128 2 |
Definition at line 217 of file crypto4xx_reg_def.h.
#define MAX_BURST_SIZE_256 3 |
Definition at line 218 of file crypto4xx_reg_def.h.
#define MAX_BURST_SIZE_32 0 |
Definition at line 215 of file crypto4xx_reg_def.h.
#define MAX_BURST_SIZE_64 1 |
Definition at line 216 of file crypto4xx_reg_def.h.
#define PD_PAD_CTL_128 0x40 |
Definition at line 246 of file crypto4xx_reg_def.h.
#define PD_PAD_CTL_256 0x80 |
Definition at line 247 of file crypto4xx_reg_def.h.
#define PD_PAD_CTL_32 0x10 |
Definition at line 244 of file crypto4xx_reg_def.h.
#define PD_PAD_CTL_64 0x20 |
Definition at line 245 of file crypto4xx_reg_def.h.
#define PPC4XX_BYTE_ORDER 0x22222 |
Definition at line 124 of file crypto4xx_reg_def.h.
#define PPC4XX_CTX_DONE_INT 0x2000 |
Definition at line 122 of file crypto4xx_reg_def.h.
#define PPC4XX_DC_3DES_EN 1 |
Definition at line 127 of file crypto4xx_reg_def.h.
#define PPC4XX_GDR_SIZE PPC4XX_NUM_GD |
Definition at line 137 of file crypto4xx_reg_def.h.
#define PPC4XX_INPUT_THRESHOLD 2 |
Definition at line 120 of file crypto4xx_reg_def.h.
#define PPC4XX_INT_CFG 1 |
Definition at line 130 of file crypto4xx_reg_def.h.
#define PPC4XX_INT_DESCR_CNT 4 |
Definition at line 128 of file crypto4xx_reg_def.h.
#define PPC4XX_INT_TIMEOUT_CNT 0 |
Definition at line 129 of file crypto4xx_reg_def.h.
#define PPC4XX_INTERRUPT_CLR 0x3ffff |
Definition at line 125 of file crypto4xx_reg_def.h.
#define PPC4XX_OUTPUT_THRESHOLD 2 |
Definition at line 119 of file crypto4xx_reg_def.h.
#define PPC4XX_PD_DONE_INT 0x8000 |
Definition at line 123 of file crypto4xx_reg_def.h.
#define PPC4XX_PD_SIZE 6 |
Definition at line 121 of file crypto4xx_reg_def.h.
#define PPC4XX_PDR_POLL 0x3ff |
Initialize CRYPTO ENGINE registers, and memory bases.
Definition at line 118 of file crypto4xx_reg_def.h.
#define PPC4XX_PRNG_CTRL_AUTO_EN 0x3 |
Definition at line 126 of file crypto4xx_reg_def.h.
#define PPC4XX_RING_POLL 100 |
Definition at line 135 of file crypto4xx_reg_def.h.
#define PPC4XX_RING_RETRY 100 |
all follow define are ad hoc
Definition at line 134 of file crypto4xx_reg_def.h.
#define PPC4XX_SDR_SIZE PPC4XX_NUM_SD |
Definition at line 136 of file crypto4xx_reg_def.h.
|
read |
Definition at line 171 of file esd_usb2.c.
struct { ... } bf |
u32 bo_data_en |
Definition at line 175 of file crypto4xx_reg_def.h.
u32 bo_pd_en |
Definition at line 177 of file crypto4xx_reg_def.h.
u32 bo_sa_en |
Definition at line 176 of file crypto4xx_reg_def.h.
u32 bo_sgpd_en |
Definition at line 174 of file crypto4xx_reg_def.h.
u32 bo_td_en |
Definition at line 172 of file crypto4xx_reg_def.h.
u32 bypass |
Definition at line 275 of file crypto4xx_reg_def.h.
u32 cached_sa |
Definition at line 268 of file crypto4xx_reg_def.h.
Definition at line 193 of file crypto4xx_reg_def.h.
Definition at line 238 of file crypto4xx_reg_def.h.
struct gd_ctl_len ctl_len |
Definition at line 233 of file crypto4xx_reg_def.h.
u32 dest |
Definition at line 286 of file crypto4xx_reg_def.h.
u32 dir_host |
Definition at line 170 of file crypto4xx_reg_def.h.
u32 dis_pdr_upd |
Definition at line 173 of file crypto4xx_reg_def.h.
u32 done |
Definition at line 229 of file crypto4xx_reg_def.h.
u32 dynamic_sa_en |
Definition at line 179 of file crypto4xx_reg_def.h.
u32 gdr_size |
Definition at line 216 of file crypto4xx_reg_def.h.
u32 hash_final |
Definition at line 269 of file crypto4xx_reg_def.h.
u32 host_ready |
Definition at line 273 of file crypto4xx_reg_def.h.
u32 init_arc4 |
Definition at line 270 of file crypto4xx_reg_def.h.
u32 input_threshold |
Definition at line 207 of file crypto4xx_reg_def.h.
u32 len |
Definition at line 227 of file crypto4xx_reg_def.h.
u32 next_hdr |
Definition at line 266 of file crypto4xx_reg_def.h.
u32 output_threshold |
Definition at line 205 of file crypto4xx_reg_def.h.
union ce_pd_ctl pd_ctl |
Definition at line 284 of file crypto4xx_reg_def.h.
union ce_pd_ctl_len pd_ctl_len |
Definition at line 289 of file crypto4xx_reg_def.h.
u32 pd_pad_ctl |
Definition at line 264 of file crypto4xx_reg_def.h.
u32 pdr_mode |
Definition at line 180 of file crypto4xx_reg_def.h.
u32 pe_done |
Definition at line 272 of file crypto4xx_reg_def.h.
u32 pe_mode |
Definition at line 181 of file crypto4xx_reg_def.h.
u32 pkt_len |
Definition at line 279 of file crypto4xx_reg_def.h.
u32 ptr |
Definition at line 232 of file crypto4xx_reg_def.h.
u32 rdy |
Definition at line 240 of file crypto4xx_reg_def.h.
should either be ready |
for that or the caller should ensure that stays online until this function completes.
CONTEXT: Might sleep.
RETURNS: -ENOENT if
Definition at line 230 of file crypto4xx_reg_def.h.
u32 reset_pdr |
Definition at line 184 of file crypto4xx_reg_def.h.
u32 reset_pe |
Definition at line 185 of file crypto4xx_reg_def.h.
u32 reset_sg |
Definition at line 183 of file crypto4xx_reg_def.h.
u32 ring_offset |
Definition at line 181 of file crypto4xx_reg_def.h.
u32 ring_poll_divisor |
Definition at line 197 of file crypto4xx_reg_def.h.
u32 ring_retry_divisor |
Definition at line 195 of file crypto4xx_reg_def.h.
u32 ring_size |
Definition at line 183 of file crypto4xx_reg_def.h.
u32 rsv |
Definition at line 169 of file crypto4xx_reg_def.h.
u32 rsv1 |
Definition at line 171 of file crypto4xx_reg_def.h.
u32 rsv2 |
Definition at line 178 of file crypto4xx_reg_def.h.
u32 rsv3 |
Definition at line 182 of file crypto4xx_reg_def.h.
u32 sa |
Definition at line 287 of file crypto4xx_reg_def.h.
u32 sa_len |
Definition at line 288 of file crypto4xx_reg_def.h.
u32 sdr_size |
Definition at line 215 of file crypto4xx_reg_def.h.
Definition at line 285 of file crypto4xx_reg_def.h.
Definition at line 265 of file crypto4xx_reg_def.h.
u32 w |
Definition at line 187 of file crypto4xx_reg_def.h.