WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
载入中...
搜索中...
未找到
hal_klad_reg.h
浏览该文件的文档.
1
9#ifndef HAL_KLAD_REG_H
10#define HAL_KLAD_REG_H
11
12#define KEY_SIZE_64_BIT 8
13#define KEY_SIZE_128_BIT 16
14#define KEY_SIZE_192_BIT 24
15#define KEY_SIZE_256_BIT 32
16#define SBRK_DISABLE_VAL 0x5
17#define ABRK_DISABLE_VAL 0x5
18
19#define KEY_SIZE_64_BIT_REG_VAL 0x0
20#define KEY_SIZE_128_BIT_REG_VAL 0x1
21#define KEY_SIZE_192_BIT_REG_VAL 0x2
22#define KEY_SIZE_256_BIT_REG_VAL 0x3
23#define KLAD_LOCK_REG_CONFIG_VALUE 1
24#define KLAD_UNLOCK_REG_CONFIG_VALUE 1
25#define KLAD_INVALID_HANDLE_INDEX (-1)
26
27/*
28 * keyload
29 */
30#define KLAD_REG_OFFSET (0x00001000)
31
32#define KL_DATA_IN_0 (KLAD_REG_OFFSET + 0x000)
33#define KL_DATA_IN_1 (KLAD_REG_OFFSET + 0x004)
34#define KL_DATA_IN_2 (KLAD_REG_OFFSET + 0x008)
35#define KL_DATA_IN_3 (KLAD_REG_OFFSET + 0x00c)
36#define KL_DATA_IN(n) (KLAD_REG_OFFSET + 0x000 + ((n) * 0x4)) /* n 0~3 */
37#define KL_KEY_ADDR (KLAD_REG_OFFSET + 0x010)
38#define KL_KEY_CFG (KLAD_REG_OFFSET + 0x014)
39#define KL_KEY_SEC_CFG (KLAD_REG_OFFSET + 0x018)
40#define KL_STATE (KLAD_REG_OFFSET + 0x030)
41#define KL_CRC (KLAD_REG_OFFSET + 0x034)
42#define KL_ERROR (KLAD_REG_OFFSET + 0x038)
43#define KC_ERROR (KLAD_REG_OFFSET + 0x03c)
44#define KL_INT_EN (KLAD_REG_OFFSET + 0x040)
45#define KL_INT_RAW (KLAD_REG_OFFSET + 0x044)
46#define KL_INT (KLAD_REG_OFFSET + 0x048)
47#define SBRK_DISABLE (KLAD_REG_OFFSET + 0x060)
48#define ABRK_DISABLE (KLAD_REG_OFFSET + 0x064)
49#define KL_RK_GEN_STATUS (KLAD_REG_OFFSET + 0x070)
50#define KL_LOCK_CTRL (KLAD_REG_OFFSET + 0x074)
51#define KL_UNLOCK_CTRL (KLAD_REG_OFFSET + 0x078)
52#define KL_COM_LOCK_INFO (KLAD_REG_OFFSET + 0x07c)
53#define KL_COM_LOCK_STATUS (KLAD_REG_OFFSET + 0x080)
54#define KL_COM_CTRL (KLAD_REG_OFFSET + 0x084)
55#define KL_COM_STATUS (KLAD_REG_OFFSET + 0x088)
56#define KL_CLR_CTRL (KLAD_REG_OFFSET + 0x438)
57#define KL_ALARM_INFO (KLAD_REG_OFFSET + 0x600)
58
59/*
60 klad attach kslot type
61*/
62#define ATTACH_FLASH 2
63#define ATTACH_MCIPHER 3
64#define ATTACH_HMAC 4
65
66/*
67 klad data in reg num
68*/
69#define KALD_DATA_IN_REG_NUM 4
70
71/*
72 pbkdf2_key_config
73*/
74#define KDF_SW_GEN 3
75#define KDF_USD 4
76#define KDF_SBRK 5
77#define KDF_ABRK 6
78#define KDF_ODRK0 7
79#define KDF_ODRK1 8
80#define KDF_RDRK 9
81#define KDF_MDRK0 10
82#define KDF_FDRK 11
83#define KDF_MDRK1 12
84#define KDF_DRK 13
85#define KDF_MDRK2 14
86#define KDF_MDRK3 15
87#define KDF_SBRK2 16
88#define KDF_ABRK2 17
89#define KDF_PSK 18
90#define KDF_ABRK_REE 20
91#define KDF_RDRK_REE 22
92
93#define KLAD_KEY_TYPE_SBRK0 0x0
94#define KLAD_KEY_TYPE_SBRK1 0x1
95#define KLAD_KEY_TYPE_SBRK2 0x10
96#define KLAD_KEY_TYPE_ABRK0 0x2
97#define KLAD_KEY_TYPE_ABRK1 0x3
98#define KLAD_KEY_TYPE_ABRK2 0x11
99#define KLAD_KEY_TYPE_DRK0 0xc
100#define KLAD_KEY_TYPE_DRK1 0xd
101#define KLAD_KEY_TYPE_RDRK0 0xe
102#define KLAD_KEY_TYPE_RDRK1 0xf
103#define KLAD_KEY_TYPE_PSK 0x12
104#define KLAD_KEY_TYPE_FDRK0 0x4
105#define KLAD_KEY_TYPE_ODRK0 0x5
106#define KLAD_KEY_TYPE_OARK0 0x6
107#define KLAD_KEY_TYPE_ODRK1 0x7
108#define KLAD_KEY_TYPE_MDRK0 0x8
109#define KLAD_KEY_TYPE_ABRK_REE 0x15
110#define KLAD_KEY_TYPE_RDRK_REE 0x17
111
112#define KDF_FUNC_JTAG 0x13
113#define KDF_TEE_JTAG 0x14
114#define KDF_DFT_JTAG 0x15
115
116#define KLAD_DEST_TYPE_INVALID 0
117#define KLAD_DEST_TYPE_MCIPHER 1
118#define KLAD_DEST_TYPE_AI_AUDIO 4
119#define KLAD_DEST_TYPE_AI_NPU 5
120#define KLAD_DEST_TYPE_FLASH 7
121#define KLAD_UNLOCK_STATUS 0x0
122
123#define KLAD_DEST_TYPE_INVALID_KSLOT 0xffffffff
124#define KLAD_CLEAR_KEY_INVALID_HMAC 0xff
125
126#define CLEAR_HMAC_KEY_BLOCK_SIZE_512 64
127#define CLEAR_HMAC_KEY_BLOCK_SIZE_1024 128
128#define CLEAR_HMAC_KEY_CAL_CNT_512 4
129#define CLEAR_HMAC_KEY_CAL_CNT_1024 8
130#define BYTE_TO_BITS 8
131#define HKL_KEY_LEN 16
132#define HKL_KEY_LEN_32 32
133
134#define KLAD_CHANNEL_MAX_SUPPORT 1
135
136/* define the union hkl_lock_ctrl */
137typedef union {
138 /* define the struct bits */
139 struct {
140 unsigned int kl_lock : 1; /* [0] */
141 unsigned int reserved_0 : 3; /* [3..1] */
142 unsigned int kl_lock_num : 3; /* [6..4] */
143 unsigned int reserved_1 : 25; /* [31..7] */
144 } bits;
145
146 /* define an unsigned member */
147 unsigned int u32;
149
150/* define the union hkl_com_lock_info */
151typedef union {
152 /* define the struct bits */
153 struct {
154 unsigned int kl_com_lock_busy : 2; /* [1..0] */
155 unsigned int kl_com_lock_fail : 2; /* [3..2] */
156 unsigned int kl_com_unlock_fail : 2; /* [5..4] */
157 unsigned int reserved_0 : 2; /* [7..6] */
158 unsigned int kl_com_lock_num : 3; /* [10..8] */
159 unsigned int reserved_1 : 21; /* [31..11] */
160 } bits;
161
162 /* define an unsigned member */
163 unsigned int u32;
165
166/* Define the union U_KL_COM_LOCK_STATUS */
167typedef union {
168 /* Define the struct bits */
169 struct {
170 unsigned int kl_com_lock_stat : 8; /* [7..0] */
171 unsigned int reserved_0 : 24; /* [31..8] */
172 } bits;
173
174 /* Define an unsigned member */
175 unsigned int u32;
177
178/* define the union hkl_unlock_ctrl */
179typedef union {
180 /* define the struct bits */
181 struct {
182 unsigned int kl_unlock : 1; /* [0] */
183 unsigned int reserved_0 : 3; /* [3..1] */
184 unsigned int kl_unlock_num : 3; /* [6..4] */
185 unsigned int reserved_1 : 1; /* [7] */
186 unsigned int kl_com_unlock_num : 3; /* [10..8] */
187 unsigned int reserved_2 : 21; /* [31..11] */
188 } bits;
189
190 /* define an unsigned member */
191 unsigned int u32;
193
194/* Define the union KL_COM_CTRL */
195typedef union {
196 /* Define the struct bits */
197 struct {
198 unsigned int kl_com_start : 1; /* [0] */
199 unsigned int kl_com_level_sel : 3; /* [3..1] */
200 unsigned int kl_com_alg_sel : 2; /* [5..4] */
201 unsigned int kl_com_key_size : 2; /* [7..6] */
202 unsigned int rk_choose : 5; /* [12..8] */
203 unsigned int reserved_1 : 19; /* [31..13] */
204 } bits;
205
206 /* Define an unsigned member */
207 unsigned int u32;
209
210/* Define the union U_KL_COM_STATUS */
211typedef union {
212 /* Define the struct bits */
213 struct {
214 unsigned int kl_com_rk_rdy : 1; /* [0] */
215 unsigned int kl_com_lv1_rdy : 1; /* [1] */
216 unsigned int reserved_0 : 30; /* [31..2] */
217 } bits;
218
219 /* Define an unsigned member */
220 unsigned int u32;
222
223/* define the union hkl_key_sec_cfg */
224typedef union {
225 /* define the struct bits */
226 struct {
227 unsigned int key_sec : 1; /* [0] */
228 unsigned int src_nsec : 1; /* [1] */
229 unsigned int src_sec : 1; /* [2] */
230 unsigned int dest_nsec : 1; /* [3] */
231 unsigned int dest_sec : 1; /* [4] */
232 unsigned int master_only : 1; /* [5] */
233 unsigned int reserved_0 : 26; /* [31..6] */
234 } bits;
235
236 /* define an unsigned member */
237 unsigned int u32;
239
240/* define the union u_kl_key_addr */
241typedef union {
242 /* define the struct bits */
243 struct {
244 unsigned int key_addr : 10; /* [9..0] */
245 unsigned int reserved_0 : 22; /* [31..10] */
246 } bits;
247
248 /* define an unsigned member */
249 unsigned int u32;
251
252/* define the union hkl_key_cfg */
253typedef union {
254 /* define the struct bits */
255 struct {
256 unsigned int port_sel : 3; /* [2..0] */
257 unsigned int reserved_0 : 1; /* [3] */
258 unsigned int dsc_code : 8; /* [11..4] */
259 unsigned int reserved_1 : 4; /* [15..12] */
260 unsigned int key_enc : 1; /* [16] */
261 unsigned int key_dec : 1; /* [17] */
262 unsigned int kl_flash_sel : 2; /* [19..18] */
263 unsigned int reserved_2 : 12; /* [31..20] */
264 } bits;
265
266 /* define an unsigned member */
267 unsigned int u32;
269
270/* Define the union U_KL_CLR_CTRL */
271typedef union {
272 /* Define the struct bits */
273 struct {
274 unsigned int kl_clr_start : 1; /* [0] */
275 unsigned int reserved_0 : 1; /* [1] */
276 unsigned int kl_clr_key_size : 2; /* [3..2] */
277 unsigned int reserved_1 : 9; /* [12..4] */
278 unsigned int kl_clr_key_cnt : 3; /* [15..13] */
279 unsigned int reserved_2 : 16; /* [31..16] */
280 } bits;
281 /* Define an unsigned member */
282 unsigned int u32;
284
285/* define the union hkl_nonce_ctrl */
286typedef union {
287 /* define the struct bits */
288 struct {
289 unsigned int kl_nonce_start : 1; /* [0] */
290 unsigned int reserved_0 : 3; /* [3..1] */
291 unsigned int kl_nonce_alg_sel : 2; /* [5..4] */
292 unsigned int reserved_1 : 26; /* [31..6] */
293 } bits;
294 /* define an unsigned member */
295 unsigned int u32;
297
298/* define the union hkl_nonce_status */
299typedef union {
300 /* define the struct bits */
301 struct {
302 unsigned int kl_nonce_rk_rdy : 1; /* [0] */
303 unsigned int kl_nonce_lvl1_rdy : 1; /* [1] */
304 unsigned int kl_nonce_lvl2_rdy : 1; /* [2] */
305 unsigned int reserved_0 : 29; /* [31..3] */
306 } bits;
307
308 /* define an unsigned member */
309 unsigned int u32;
311
312/* define the union hkl_clr_lock_info */
313typedef union {
314 /* define the struct bits */
315 struct {
316 unsigned int kl_clr_lock_busy : 2; /* [1..0] */
317 unsigned int kl_clr_lock_fail : 2; /* [3..2] */
318 unsigned int kl_clr_unlock_fail : 2; /* [5..4] */
319 unsigned int reserved_0 : 26; /* [31..6] */
320 } bits;
321
322 /* define an unsigned member */
323 unsigned int u32;
325
326/* define the union hkl_clr_lock_status */
327typedef union {
328 /* define the struct bits */
329 struct {
330 unsigned int kl_clr_lock_stat : 8; /* [7..0] */
331 unsigned int reserved_0 : 24; /* [31..8] */
332 } bits;
333
334 /* define an unsigned member */
335 unsigned int u32;
337
338/* define the union hkl_clr_ctrl */
339typedef union {
340 /* define the struct bits */
341 struct {
342 unsigned int kl_clr_start : 1; /* [0] */
343 unsigned int kl_clr_iv_sel : 1; /* [1] */
344 unsigned int kl_clr_key_size : 2; /* [3..2] */
345 unsigned int reserved_0 : 28; /* [31..4] */
346 } bits;
347
348 /* define an unsigned member */
349 unsigned int u32;
351
352/* define the union hkl_fp_lock_info */
353typedef union {
354 /* define the struct bits */
355 struct {
356 unsigned int kl_fp_lock_busy : 2; /* [1..0] */
357 unsigned int kl_fp_lock_fail : 2; /* [3..2] */
358 unsigned int kl_fp_unlock_fail : 2; /* [5..4] */
359 unsigned int reserved_0 : 26; /* [31..6] */
360 } bits;
361
362 /* define an unsigned member */
363 unsigned int u32;
365
366/* define the union hkl_fp_lock_status */
367typedef union {
368 /* define the struct bits */
369 struct {
370 unsigned int kl_fp_lock_stat : 8; /* [7..0] */
371 unsigned int reserved_0 : 24; /* [31..8] */
372 } bits;
373
374 /* define an unsigned member */
375 unsigned int u32;
377
378/* define the union hkl_fp_rk_sel */
379typedef union {
380 /* define the struct bits */
381 struct {
382 unsigned int kl_fp_rk_sel : 3; /* [2..0] */
383 unsigned int reserved_0 : 29; /* [31..3] */
384 } bits;
385
386 /* define an unsigned member */
387 unsigned int u32;
389
390/* define the union hkl_fp_ctrl */
391typedef union {
392 /* define the struct bits */
393 struct {
394 unsigned int kl_fp_start : 1; /* [0] */
395 unsigned int kl_fp_level_sel : 1; /* [1] */
396 unsigned int reserved_0 : 4; /* [5..2] */
397 unsigned int kl_fp_dec_sel : 1; /* [6] */
398 unsigned int reserved_1 : 25; /* [31..7] */
399 } bits;
400
401 /* define an unsigned member */
402 unsigned int u32;
404
405/* define the union hkl_fp_status */
406typedef union {
407 /* define the struct bits */
408 struct {
409 unsigned int kl_fp_rk_rdy : 1; /* [0] */
410 unsigned int kl_fp_lv1_enc_rdy : 1; /* [1] */
411 unsigned int kl_fp_lv1_dec_rdy : 1; /* [2] */
412 unsigned int reserved_0 : 29; /* [31..3] */
413 } bits;
414
415 /* define an unsigned member */
416 unsigned int u32;
418
419/* define the union hkl_fp_dec_ctrl */
420typedef union {
421 /* define the struct bits */
422 struct {
423 unsigned int kl_fp_dec_rd_dis : 4; /* [3..0] */
424 unsigned int kl_fp_dec_route_dis : 4; /* [7..4] */
425 unsigned int reserved_0 : 24; /* [31..8] */
426 } bits;
427
428 /* define an unsigned member */
429 unsigned int u32;
431
432/* define the union hkl_ta_lock_info */
433typedef union {
434 /* define the struct bits */
435 struct {
436 unsigned int kl_ta_lock_busy : 2; /* [1..0] */
437 unsigned int kl_ta_lock_fail : 2; /* [3..2] */
438 unsigned int kl_ta_unlock_fail : 2; /* [5..4] */
439 unsigned int reserved_0 : 26; /* [31..6] */
440 } bits;
441
442 /* define an unsigned member */
443 unsigned int u32;
445
446/* define the union hkl_ta_lock_status */
447typedef union {
448 /* define the struct bits */
449 struct {
450 unsigned int kl_ta_lock_stat : 8; /* [7..0] */
451 unsigned int reserved_0 : 24; /* [31..8] */
452 } bits;
453
454 /* define an unsigned member */
455 unsigned int u32;
457
458/* define the union hkl_ta_ctrl */
459typedef union {
460 /* define the struct bits */
461 struct {
462 unsigned int kl_ta_start : 1; /* [0] */
463 unsigned int kl_ta_level_sel : 2; /* [2..1] */
464 unsigned int reserved_0 : 2; /* [4..3] */
465 unsigned int kl_ta_cur_128bit_cnt : 6; /* [10..5] */
466 unsigned int kl_ta_last_time : 1; /* [11] */
467 unsigned int kl_ta_lut_alg_sel : 1; /* [12] */
468 unsigned int reserved_1 : 19; /* [31..13] */
469 } bits;
470
471 /* define an unsigned member */
472 unsigned int u32;
474
475/* define the union hkl_ta_status */
476typedef union {
477 /* define the struct bits */
478 struct {
479 unsigned int kl_ta_rk_rdy : 1; /* [0] */
480 unsigned int kl_ta_lvl1_rdy : 1; /* [1] */
481 unsigned int kl_ta_lvl2_rdy : 1; /* [2] */
482 unsigned int kl_ta_lvl3_rdy : 1; /* [3] */
483 unsigned int kl_ta_f_lut_rdy : 1; /* [4] */
484 unsigned int kl_ta_f_m_rdy : 1; /* [5] */
485 unsigned int kl_ta_f_bc_rdy : 1; /* [6] */
486 unsigned int reserved_0 : 25; /* [31..7] */
487 } bits;
488
489 /* define an unsigned member */
490 unsigned int u32;
492
493/* define the union hkl_csgk2_lock_info */
494typedef union {
495 /* define the struct bits */
496 struct {
497 unsigned int kl_csgk2_lock_busy : 2; /* [1..0] */
498 unsigned int kl_csgk2_lock_fail : 2; /* [3..2] */
499 unsigned int kl_csgk2_unlock_fail : 2; /* [5..4] */
500 unsigned int reserved_0 : 26; /* [31..6] */
501 } bits;
502
503 /* define an unsigned member */
504 unsigned int u32;
506
507/* define the union hkl_csgk2_lock_status */
508typedef union {
509 /* define the struct bits */
510 struct {
511 unsigned int kl_csgk2_lock_stat : 8; /* [7..0] */
512 unsigned int reserved_0 : 24; /* [31..8] */
513 } bits;
514
515 /* define an unsigned member */
516 unsigned int u32;
518
519/* define the union hkl_csgk2_ctrl */
520typedef union {
521 /* define the struct bits */
522 struct {
523 unsigned int kl_csgk2_start : 1; /* [0] */
524 unsigned int reserved_0 : 31; /* [31..1] */
525 } bits;
526
527 /* define an unsigned member */
528 unsigned int u32;
530
531/* define the union hkl_csgk2_disable */
532typedef union {
533 /* define the struct bits */
534 struct {
535 unsigned int kl_csgk2_dis : 4; /* [3..0] */
536 unsigned int reserved_0 : 28; /* [31..4] */
537 } bits;
538
539 /* define an unsigned member */
540 unsigned int u32;
542
543/* define the union hkl_csgk2_disable_lock */
544typedef union {
545 /* define the struct bits */
546 struct {
547 unsigned int kl_csgk2_dis_lock : 1; /* [0] */
548 unsigned int reserved_0 : 31; /* [31..1] */
549 } bits;
550
551 /* define an unsigned member */
552 unsigned int u32;
554
555/* define the union hkl_alarm_info */
556typedef union {
557 /* define the struct bits */
558 struct {
559 unsigned int rng_crc4_alarm : 1; /* [0] */
560 unsigned int kl_cfg_sig_alarm : 1; /* [1] */
561 unsigned int kl_rk_tag_sig_alarm : 1; /* [2] */
562 unsigned int kl_rk_tag_crc16_alarm : 1; /* [3] */
563 unsigned int kl_rk_info_crc4_alarm : 1; /* [4] */
564 unsigned int kl_sel_sig_alarm : 1; /* [5] */
565 unsigned int kl_com_crc16_alarm : 1; /* [6] */
566 unsigned int kl_nonce_crc16_alarm : 1; /* [7] */
567 unsigned int kl_fp_crc16_alarm : 1; /* [8] */
568 unsigned int kl_ta_crc16_alarm : 1; /* [9] */
569 unsigned int kl_ta_fsm_alarm : 1; /* [10] */
570 unsigned int reserved_0 : 13; /* [23..11] */
571 unsigned int cm_core_alarm : 1; /* [24] */
572 unsigned int reserved_1 : 7; /* [31..25] */
573 } bits;
574
575 /* define an unsigned member */
576 unsigned int u32;
578
579/* Define the union sbrk_disable */
580typedef union {
581 /* Define the struct bits */
582 struct {
583 unsigned int sbrk0_disable : 4; /* [3..0] */
584 unsigned int sbrk1_disable : 4; /* [7..4] */
585 unsigned int reserved : 24; /* [31..8] */
586 } bits;
587 /* Define an unsigned member */
588 unsigned int u32;
590
591/* Define the union sbrk_disable */
592typedef union {
593 /* Define the struct bits */
594 struct {
595 unsigned int abrk0_disable : 4; /* [3..0] */
596 unsigned int reserved : 28; /* [31..4] */
597 } bits;
598 /* Define an unsigned member */
599 unsigned int u32;
601
602/* Define the union kl_int_en */
603typedef union {
604 /* Define the struct bits */
605 struct {
606 unsigned int kl_int_en : 1; /* [0] */
607 unsigned int reserved : 31; /* [31..1] */
608 } bits;
609 /* Define an unsigned member */
610 unsigned int u32;
611} kl_int_cfg;
612
613/* Define the union kl_int */
614typedef union {
615 /* Define the struct bits */
616 struct {
617 unsigned int kl_int : 1; /* [0] */
618 unsigned int reserved : 31; /* [31..1] */
619 } bits;
620 /* Define an unsigned member */
621 unsigned int u32;
623
624/* Define the union kl_int_raw */
625typedef union {
626 /* Define the struct bits */
627 struct {
628 unsigned int com_kl_int_raw : 1; /* [0] */
629 unsigned int reserved0 : 3; /* [3..1] */
630 unsigned int kl_int_num : 5; /* [8..4] */
631 unsigned int reserved1 : 5; /* [13..9] */
632 unsigned int clr_kl_int_raw : 1; /* [14] */
633 unsigned int reserved2 : 18; /* [31..15] */
634 } bits;
635 /* Define an unsigned member */
636 unsigned int u32;
637} kl_int_raw;
638
639
640#endif
Definition hal_klad_reg.h:592
unsigned int u32
Definition hal_klad_reg.h:599
unsigned int abrk0_disable
Definition hal_klad_reg.h:595
unsigned int reserved
Definition hal_klad_reg.h:596
Definition hal_klad_reg.h:556
unsigned int kl_ta_crc16_alarm
Definition hal_klad_reg.h:568
unsigned int kl_cfg_sig_alarm
Definition hal_klad_reg.h:560
unsigned int kl_rk_info_crc4_alarm
Definition hal_klad_reg.h:563
unsigned int kl_ta_fsm_alarm
Definition hal_klad_reg.h:569
unsigned int cm_core_alarm
Definition hal_klad_reg.h:571
unsigned int u32
Definition hal_klad_reg.h:576
unsigned int reserved_0
Definition hal_klad_reg.h:570
unsigned int kl_rk_tag_sig_alarm
Definition hal_klad_reg.h:561
unsigned int rng_crc4_alarm
Definition hal_klad_reg.h:559
unsigned int kl_rk_tag_crc16_alarm
Definition hal_klad_reg.h:562
unsigned int kl_fp_crc16_alarm
Definition hal_klad_reg.h:567
unsigned int kl_nonce_crc16_alarm
Definition hal_klad_reg.h:566
unsigned int kl_com_crc16_alarm
Definition hal_klad_reg.h:565
unsigned int reserved_1
Definition hal_klad_reg.h:572
unsigned int kl_sel_sig_alarm
Definition hal_klad_reg.h:564
Definition hal_klad_reg.h:339
unsigned int kl_clr_iv_sel
Definition hal_klad_reg.h:343
unsigned int u32
Definition hal_klad_reg.h:349
unsigned int kl_clr_key_size
Definition hal_klad_reg.h:344
unsigned int kl_clr_start
Definition hal_klad_reg.h:342
unsigned int reserved_0
Definition hal_klad_reg.h:345
Definition hal_klad_reg.h:313
unsigned int reserved_0
Definition hal_klad_reg.h:319
unsigned int kl_clr_lock_fail
Definition hal_klad_reg.h:317
unsigned int kl_clr_unlock_fail
Definition hal_klad_reg.h:318
unsigned int u32
Definition hal_klad_reg.h:323
unsigned int kl_clr_lock_busy
Definition hal_klad_reg.h:316
Definition hal_klad_reg.h:327
unsigned int reserved_0
Definition hal_klad_reg.h:331
unsigned int kl_clr_lock_stat
Definition hal_klad_reg.h:330
unsigned int u32
Definition hal_klad_reg.h:335
Definition hal_klad_reg.h:151
unsigned int kl_com_unlock_fail
Definition hal_klad_reg.h:156
unsigned int kl_com_lock_num
Definition hal_klad_reg.h:158
unsigned int reserved_1
Definition hal_klad_reg.h:159
unsigned int reserved_0
Definition hal_klad_reg.h:157
unsigned int u32
Definition hal_klad_reg.h:163
unsigned int kl_com_lock_fail
Definition hal_klad_reg.h:155
unsigned int kl_com_lock_busy
Definition hal_klad_reg.h:154
Definition hal_klad_reg.h:167
unsigned int u32
Definition hal_klad_reg.h:175
unsigned int kl_com_lock_stat
Definition hal_klad_reg.h:170
unsigned int reserved_0
Definition hal_klad_reg.h:171
Definition hal_klad_reg.h:520
unsigned int u32
Definition hal_klad_reg.h:528
unsigned int kl_csgk2_start
Definition hal_klad_reg.h:523
unsigned int reserved_0
Definition hal_klad_reg.h:524
Definition hal_klad_reg.h:544
unsigned int reserved_0
Definition hal_klad_reg.h:548
unsigned int u32
Definition hal_klad_reg.h:552
unsigned int kl_csgk2_dis_lock
Definition hal_klad_reg.h:547
Definition hal_klad_reg.h:532
unsigned int kl_csgk2_dis
Definition hal_klad_reg.h:535
unsigned int u32
Definition hal_klad_reg.h:540
unsigned int reserved_0
Definition hal_klad_reg.h:536
Definition hal_klad_reg.h:494
unsigned int kl_csgk2_lock_busy
Definition hal_klad_reg.h:497
unsigned int reserved_0
Definition hal_klad_reg.h:500
unsigned int u32
Definition hal_klad_reg.h:504
unsigned int kl_csgk2_lock_fail
Definition hal_klad_reg.h:498
unsigned int kl_csgk2_unlock_fail
Definition hal_klad_reg.h:499
Definition hal_klad_reg.h:508
unsigned int kl_csgk2_lock_stat
Definition hal_klad_reg.h:511
unsigned int u32
Definition hal_klad_reg.h:516
unsigned int reserved_0
Definition hal_klad_reg.h:512
Definition hal_klad_reg.h:391
unsigned int kl_fp_level_sel
Definition hal_klad_reg.h:395
unsigned int u32
Definition hal_klad_reg.h:402
unsigned int kl_fp_dec_sel
Definition hal_klad_reg.h:397
unsigned int kl_fp_start
Definition hal_klad_reg.h:394
unsigned int reserved_1
Definition hal_klad_reg.h:398
unsigned int reserved_0
Definition hal_klad_reg.h:396
Definition hal_klad_reg.h:420
unsigned int u32
Definition hal_klad_reg.h:429
unsigned int kl_fp_dec_rd_dis
Definition hal_klad_reg.h:423
unsigned int reserved_0
Definition hal_klad_reg.h:425
unsigned int kl_fp_dec_route_dis
Definition hal_klad_reg.h:424
Definition hal_klad_reg.h:353
unsigned int u32
Definition hal_klad_reg.h:363
unsigned int kl_fp_lock_busy
Definition hal_klad_reg.h:356
unsigned int reserved_0
Definition hal_klad_reg.h:359
unsigned int kl_fp_lock_fail
Definition hal_klad_reg.h:357
unsigned int kl_fp_unlock_fail
Definition hal_klad_reg.h:358
Definition hal_klad_reg.h:367
unsigned int kl_fp_lock_stat
Definition hal_klad_reg.h:370
unsigned int reserved_0
Definition hal_klad_reg.h:371
unsigned int u32
Definition hal_klad_reg.h:375
Definition hal_klad_reg.h:379
unsigned int kl_fp_rk_sel
Definition hal_klad_reg.h:382
unsigned int reserved_0
Definition hal_klad_reg.h:383
unsigned int u32
Definition hal_klad_reg.h:387
Definition hal_klad_reg.h:406
unsigned int u32
Definition hal_klad_reg.h:416
unsigned int reserved_0
Definition hal_klad_reg.h:412
unsigned int kl_fp_lv1_enc_rdy
Definition hal_klad_reg.h:410
unsigned int kl_fp_rk_rdy
Definition hal_klad_reg.h:409
unsigned int kl_fp_lv1_dec_rdy
Definition hal_klad_reg.h:411
Definition hal_klad_reg.h:241
unsigned int reserved_0
Definition hal_klad_reg.h:245
unsigned int key_addr
Definition hal_klad_reg.h:244
unsigned int u32
Definition hal_klad_reg.h:249
Definition hal_klad_reg.h:253
unsigned int dsc_code
Definition hal_klad_reg.h:258
unsigned int u32
Definition hal_klad_reg.h:267
unsigned int key_enc
Definition hal_klad_reg.h:260
unsigned int key_dec
Definition hal_klad_reg.h:261
unsigned int port_sel
Definition hal_klad_reg.h:256
unsigned int reserved_0
Definition hal_klad_reg.h:257
unsigned int reserved_2
Definition hal_klad_reg.h:263
unsigned int kl_flash_sel
Definition hal_klad_reg.h:262
unsigned int reserved_1
Definition hal_klad_reg.h:259
Definition hal_klad_reg.h:224
unsigned int src_nsec
Definition hal_klad_reg.h:228
unsigned int reserved_0
Definition hal_klad_reg.h:233
unsigned int src_sec
Definition hal_klad_reg.h:229
unsigned int master_only
Definition hal_klad_reg.h:232
unsigned int key_sec
Definition hal_klad_reg.h:227
unsigned int dest_nsec
Definition hal_klad_reg.h:230
unsigned int dest_sec
Definition hal_klad_reg.h:231
unsigned int u32
Definition hal_klad_reg.h:237
Definition hal_klad_reg.h:137
unsigned int reserved_1
Definition hal_klad_reg.h:143
unsigned int kl_lock_num
Definition hal_klad_reg.h:142
unsigned int reserved_0
Definition hal_klad_reg.h:141
unsigned int u32
Definition hal_klad_reg.h:147
unsigned int kl_lock
Definition hal_klad_reg.h:140
Definition hal_klad_reg.h:286
unsigned int reserved_1
Definition hal_klad_reg.h:292
unsigned int reserved_0
Definition hal_klad_reg.h:290
unsigned int kl_nonce_alg_sel
Definition hal_klad_reg.h:291
unsigned int kl_nonce_start
Definition hal_klad_reg.h:289
unsigned int u32
Definition hal_klad_reg.h:295
Definition hal_klad_reg.h:299
unsigned int kl_nonce_lvl2_rdy
Definition hal_klad_reg.h:304
unsigned int u32
Definition hal_klad_reg.h:309
unsigned int kl_nonce_rk_rdy
Definition hal_klad_reg.h:302
unsigned int kl_nonce_lvl1_rdy
Definition hal_klad_reg.h:303
unsigned int reserved_0
Definition hal_klad_reg.h:305
Definition hal_klad_reg.h:459
unsigned int kl_ta_level_sel
Definition hal_klad_reg.h:463
unsigned int reserved_0
Definition hal_klad_reg.h:464
unsigned int kl_ta_cur_128bit_cnt
Definition hal_klad_reg.h:465
unsigned int kl_ta_lut_alg_sel
Definition hal_klad_reg.h:467
unsigned int kl_ta_last_time
Definition hal_klad_reg.h:466
unsigned int reserved_1
Definition hal_klad_reg.h:468
unsigned int u32
Definition hal_klad_reg.h:472
unsigned int kl_ta_start
Definition hal_klad_reg.h:462
Definition hal_klad_reg.h:433
unsigned int kl_ta_unlock_fail
Definition hal_klad_reg.h:438
unsigned int kl_ta_lock_busy
Definition hal_klad_reg.h:436
unsigned int reserved_0
Definition hal_klad_reg.h:439
unsigned int kl_ta_lock_fail
Definition hal_klad_reg.h:437
unsigned int u32
Definition hal_klad_reg.h:443
Definition hal_klad_reg.h:447
unsigned int u32
Definition hal_klad_reg.h:455
unsigned int reserved_0
Definition hal_klad_reg.h:451
unsigned int kl_ta_lock_stat
Definition hal_klad_reg.h:450
Definition hal_klad_reg.h:476
unsigned int kl_ta_f_bc_rdy
Definition hal_klad_reg.h:485
unsigned int kl_ta_lvl1_rdy
Definition hal_klad_reg.h:480
unsigned int kl_ta_f_m_rdy
Definition hal_klad_reg.h:484
unsigned int kl_ta_rk_rdy
Definition hal_klad_reg.h:479
unsigned int kl_ta_lvl3_rdy
Definition hal_klad_reg.h:482
unsigned int reserved_0
Definition hal_klad_reg.h:486
unsigned int kl_ta_lvl2_rdy
Definition hal_klad_reg.h:481
unsigned int kl_ta_f_lut_rdy
Definition hal_klad_reg.h:483
unsigned int u32
Definition hal_klad_reg.h:490
Definition hal_klad_reg.h:179
unsigned int u32
Definition hal_klad_reg.h:191
unsigned int kl_unlock_num
Definition hal_klad_reg.h:184
unsigned int reserved_2
Definition hal_klad_reg.h:187
unsigned int reserved_1
Definition hal_klad_reg.h:185
unsigned int kl_unlock
Definition hal_klad_reg.h:182
unsigned int kl_com_unlock_num
Definition hal_klad_reg.h:186
unsigned int reserved_0
Definition hal_klad_reg.h:183
Definition hal_klad_reg.h:271
unsigned int kl_clr_key_size
Definition hal_klad_reg.h:276
unsigned int kl_clr_key_cnt
Definition hal_klad_reg.h:278
unsigned int reserved_1
Definition hal_klad_reg.h:277
unsigned int u32
Definition hal_klad_reg.h:282
unsigned int reserved_0
Definition hal_klad_reg.h:275
unsigned int reserved_2
Definition hal_klad_reg.h:279
unsigned int kl_clr_start
Definition hal_klad_reg.h:274
Definition hal_klad_reg.h:195
unsigned int kl_com_key_size
Definition hal_klad_reg.h:201
unsigned int u32
Definition hal_klad_reg.h:207
unsigned int reserved_1
Definition hal_klad_reg.h:203
unsigned int rk_choose
Definition hal_klad_reg.h:202
unsigned int kl_com_alg_sel
Definition hal_klad_reg.h:200
unsigned int kl_com_level_sel
Definition hal_klad_reg.h:199
unsigned int kl_com_start
Definition hal_klad_reg.h:198
Definition hal_klad_reg.h:211
unsigned int kl_com_rk_rdy
Definition hal_klad_reg.h:214
unsigned int reserved_0
Definition hal_klad_reg.h:216
unsigned int kl_com_lv1_rdy
Definition hal_klad_reg.h:215
unsigned int u32
Definition hal_klad_reg.h:220
Definition hal_klad_reg.h:603
unsigned int u32
Definition hal_klad_reg.h:610
unsigned int kl_int_en
Definition hal_klad_reg.h:606
unsigned int reserved
Definition hal_klad_reg.h:607
Definition hal_klad_reg.h:625
unsigned int reserved2
Definition hal_klad_reg.h:633
unsigned int kl_int_num
Definition hal_klad_reg.h:630
unsigned int reserved1
Definition hal_klad_reg.h:631
unsigned int com_kl_int_raw
Definition hal_klad_reg.h:628
unsigned int reserved0
Definition hal_klad_reg.h:629
unsigned int u32
Definition hal_klad_reg.h:636
unsigned int clr_kl_int_raw
Definition hal_klad_reg.h:632
Definition hal_klad_reg.h:614
unsigned int u32
Definition hal_klad_reg.h:621
unsigned int reserved
Definition hal_klad_reg.h:618
unsigned int kl_int
Definition hal_klad_reg.h:617
Definition hal_klad_reg.h:580
unsigned int u32
Definition hal_klad_reg.h:588
unsigned int sbrk1_disable
Definition hal_klad_reg.h:584
unsigned int sbrk0_disable
Definition hal_klad_reg.h:583
unsigned int reserved
Definition hal_klad_reg.h:585