13#define PKE_NON_SPECIAL_VAL 0xA5C36987
14#define PKE_START0_CODE 0xAA5
15#define PKE_START1_CODE 0xA5A
16#define PKE_BATCH_START_CODE 0x5AA
17#define PKE_INT_NOMASK_FINISH_EFFECTIVE_CODE 0x5
18#define PKE_INT_NOMASK_FINISH_INVALID_CODE 0xA
19#define PKE_ALARM_STATUS_EFFECTIVE_CODE 0x5
20#define PKE_ALARM_STATUS_INVALID_CODE 0xA
21#define PKE_ALARM_STATUS_CLEAN_CODE 0x6B4A89C6
22#define DEFAULT_MASK_CODE 0xE69BC3A7
23#define PKE_DRAM_BLOCK_LENGTH 32
24#define ALIGNED_TO_WORK_LEN_IN_BYTE 8
25#define PKE_MONT_PARAM_LEN 2
26#define PKE_FAIL_FLAG_CNT 0xB
27#define PKE_MONT_BIT_LEN 64
30#define PKE_WORK_LEN (0x00)
31#define PKE_INSTR0 (0x04)
32#define PKE_INSTR1 (0x08)
33#define PKE_INSTR_ADDR_LOW (0x0c)
34#define PKE_INSTR_ADDR_HIG (0x10)
35#define PKE_INSTR_LEN (0x14)
36#define PKE_MASK_RNG_CFG (0x18)
37#define PKE_MONT_PARA0 (0x20)
38#define PKE_MONT_PARA1 (0x24)
39#define PKE_INSTR_RDY (0x44)
40#define PKE_BUSY (0x48)
41#define PKE_NOISE_EN (0x4c)
42#define PKE_START (0x40)
43#define PKE_INT_ENABLE (0x80)
44#define PKE_INT_NOMASK_STATUS (0x84)
45#define PKE_ALARM_STATUS (0x8c)
46#define PKE_FAILURE_FLAG (0x90)
47#define PKE_DRAM_CLR (0xc0)
48#define PKE_DRAM_MASK (0xf0)
49#define PKE_LOCK_CTRL (0x810)
50#define PKE_LOCK_STATUS (0x814)
51#define PKE_DRAM_BASE (0x1000)
57#define MAX_RAM_SECTION 127
58#define OPCODE_OFFSET 0
Definition hal_pke_reg.h:121
unsigned int reserved_0
Definition hal_pke_reg.h:125
unsigned int alarm_int
Definition hal_pke_reg.h:124
unsigned int u32
Definition hal_pke_reg.h:129
Definition hal_pke_reg.h:171
unsigned int pke_busy
Definition hal_pke_reg.h:174
unsigned int u32
Definition hal_pke_reg.h:179
unsigned int reserved_0
Definition hal_pke_reg.h:175
Definition hal_pke_reg.h:183
unsigned int dram_clr
Definition hal_pke_reg.h:186
unsigned int reserved_0
Definition hal_pke_reg.h:187
unsigned int u32
Definition hal_pke_reg.h:191
Definition hal_pke_reg.h:133
unsigned int pke_failure_flag
Definition hal_pke_reg.h:136
unsigned int u32
Definition hal_pke_reg.h:141
unsigned int reserved_0
Definition hal_pke_reg.h:137
Definition hal_pke_reg.h:207
unsigned int reserved_0
Definition hal_pke_reg.h:213
unsigned int instr1_rdy
Definition hal_pke_reg.h:211
unsigned int batch_instr_rdy
Definition hal_pke_reg.h:212
unsigned int instr0_rdy
Definition hal_pke_reg.h:210
unsigned int u32
Definition hal_pke_reg.h:217
Definition hal_pke_reg.h:145
unsigned int u32
Definition hal_pke_reg.h:153
unsigned int reserved_0
Definition hal_pke_reg.h:149
unsigned int finish_int_enable
Definition hal_pke_reg.h:148
Definition hal_pke_reg.h:109
unsigned int u32
Definition hal_pke_reg.h:117
unsigned int finish_int_nomask
Definition hal_pke_reg.h:112
unsigned int reserved_0
Definition hal_pke_reg.h:113
Definition hal_pke_reg.h:69
unsigned int pke_lock_type
Definition hal_pke_reg.h:73
unsigned int pke_lock
Definition hal_pke_reg.h:72
unsigned int reserved_0
Definition hal_pke_reg.h:74
unsigned int u32
Definition hal_pke_reg.h:77
Definition hal_pke_reg.h:81
unsigned int reserved_0
Definition hal_pke_reg.h:86
unsigned int u32
Definition hal_pke_reg.h:93
unsigned int pke_lock_stat
Definition hal_pke_reg.h:89
unsigned int reserved_1
Definition hal_pke_reg.h:88
unsigned int pke_lock_busy
Definition hal_pke_reg.h:84
unsigned int pke_lock_cnt
Definition hal_pke_reg.h:87
unsigned int reserved_2
Definition hal_pke_reg.h:90
unsigned int pke_unlock_fail
Definition hal_pke_reg.h:85
Definition hal_pke_reg.h:195
unsigned int reserved_0
Definition hal_pke_reg.h:199
unsigned int mask_rng_cfg
Definition hal_pke_reg.h:198
unsigned int u32
Definition hal_pke_reg.h:203
Definition hal_pke_reg.h:97
unsigned int noise_en
Definition hal_pke_reg.h:100
unsigned int reserved_0
Definition hal_pke_reg.h:101
unsigned int u32
Definition hal_pke_reg.h:105
Definition hal_pke_reg.h:157
unsigned int pke_start0
Definition hal_pke_reg.h:160
unsigned int pke_start1
Definition hal_pke_reg.h:161
unsigned int u32
Definition hal_pke_reg.h:167
unsigned int pke_batch_start
Definition hal_pke_reg.h:162
unsigned int reserved_0
Definition hal_pke_reg.h:163