123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792 |
- #ifndef __HW_PKA_H__
- #define __HW_PKA_H__
- #define PKA_APTR 0x44004000
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #define PKA_BPTR 0x44004004
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #define PKA_CPTR 0x44004008
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #define PKA_DPTR 0x4400400C
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #define PKA_ALENGTH 0x44004010
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #define PKA_BLENGTH 0x44004014
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #define PKA_SHIFT 0x44004018
-
-
-
-
-
-
-
-
-
-
-
-
- #define PKA_FUNCTION 0x4400401C
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #define PKA_COMPARE 0x44004020
-
-
-
-
-
-
-
-
- #define PKA_MSW 0x44004024
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #define PKA_DIVMSW 0x44004028
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #define PKA_SEQ_CTRL 0x440040C8
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #define PKA_OPTIONS 0x440040F4
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #define PKA_SW_REV 0x440040F8
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #define PKA_REVISION 0x440040FC
-
-
-
-
-
-
-
-
-
-
-
-
- #define PKA_APTR_APTR_M 0x000007FF
-
-
-
-
-
-
-
- #define PKA_APTR_APTR_S 0
- #define PKA_BPTR_BPTR_M 0x000007FF
-
-
-
-
-
-
-
- #define PKA_BPTR_BPTR_S 0
- #define PKA_CPTR_CPTR_M 0x000007FF
-
-
-
-
-
-
-
- #define PKA_CPTR_CPTR_S 0
- #define PKA_DPTR_DPTR_M 0x000007FF
-
-
-
-
-
-
-
- #define PKA_DPTR_DPTR_S 0
- #define PKA_ALENGTH_ALENGTH_M 0x000001FF
-
-
- #define PKA_ALENGTH_ALENGTH_S 0
- #define PKA_BLENGTH_BLENGTH_M 0x000001FF
-
-
- #define PKA_BLENGTH_BLENGTH_S 0
- #define PKA_SHIFT_NUM_BITS_TO_SHIFT_M \
- 0x0000001F
-
-
-
-
- #define PKA_SHIFT_NUM_BITS_TO_SHIFT_S 0
- #define PKA_FUNCTION_STALL_RESULT \
- 0x01000000
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #define PKA_FUNCTION_STALL_RESULT_M \
- 0x01000000
- #define PKA_FUNCTION_STALL_RESULT_S 24
- #define PKA_FUNCTION_RUN 0x00008000
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #define PKA_FUNCTION_RUN_M 0x00008000
- #define PKA_FUNCTION_RUN_S 15
- #define PKA_FUNCTION_SEQUENCER_OPERATIONS_M \
- 0x00007000
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #define PKA_FUNCTION_SEQUENCER_OPERATIONS_S 12
- #define PKA_FUNCTION_COPY 0x00000800
- #define PKA_FUNCTION_COPY_M 0x00000800
- #define PKA_FUNCTION_COPY_S 11
- #define PKA_FUNCTION_COMPARE 0x00000400
- #define PKA_FUNCTION_COMPARE_M 0x00000400
- #define PKA_FUNCTION_COMPARE_S 10
- #define PKA_FUNCTION_MODULO 0x00000200
- #define PKA_FUNCTION_MODULO_M 0x00000200
- #define PKA_FUNCTION_MODULO_S 9
- #define PKA_FUNCTION_DIVIDE 0x00000100
- #define PKA_FUNCTION_DIVIDE_M 0x00000100
- #define PKA_FUNCTION_DIVIDE_S 8
- #define PKA_FUNCTION_LSHIFT 0x00000080
- #define PKA_FUNCTION_LSHIFT_M 0x00000080
- #define PKA_FUNCTION_LSHIFT_S 7
- #define PKA_FUNCTION_RSHIFT 0x00000040
- #define PKA_FUNCTION_RSHIFT_M 0x00000040
- #define PKA_FUNCTION_RSHIFT_S 6
- #define PKA_FUNCTION_SUBTRACT 0x00000020
- #define PKA_FUNCTION_SUBTRACT_M 0x00000020
- #define PKA_FUNCTION_SUBTRACT_S 5
- #define PKA_FUNCTION_ADD 0x00000010
- #define PKA_FUNCTION_ADD_M 0x00000010
- #define PKA_FUNCTION_ADD_S 4
- #define PKA_FUNCTION_MS_ONE 0x00000008
-
-
-
-
-
-
-
- #define PKA_FUNCTION_MS_ONE_M 0x00000008
- #define PKA_FUNCTION_MS_ONE_S 3
- #define PKA_FUNCTION_ADDSUB 0x00000002
-
- #define PKA_FUNCTION_ADDSUB_M 0x00000002
- #define PKA_FUNCTION_ADDSUB_S 1
- #define PKA_FUNCTION_MULTIPLY 0x00000001
- #define PKA_FUNCTION_MULTIPLY_M 0x00000001
- #define PKA_FUNCTION_MULTIPLY_S 0
- #define PKA_COMPARE_A_GREATER_THAN_B \
- 0x00000004
-
- #define PKA_COMPARE_A_GREATER_THAN_B_M \
- 0x00000004
- #define PKA_COMPARE_A_GREATER_THAN_B_S 2
- #define PKA_COMPARE_A_LESS_THAN_B \
- 0x00000002
- #define PKA_COMPARE_A_LESS_THAN_B_M \
- 0x00000002
- #define PKA_COMPARE_A_LESS_THAN_B_S 1
- #define PKA_COMPARE_A_EQUALS_B 0x00000001
- #define PKA_COMPARE_A_EQUALS_B_M \
- 0x00000001
- #define PKA_COMPARE_A_EQUALS_B_S 0
- #define PKA_MSW_RESULT_IS_ZERO 0x00008000
-
-
- #define PKA_MSW_RESULT_IS_ZERO_M \
- 0x00008000
- #define PKA_MSW_RESULT_IS_ZERO_S 15
- #define PKA_MSW_MSW_ADDRESS_M 0x000007FF
-
-
- #define PKA_MSW_MSW_ADDRESS_S 0
- #define PKA_DIVMSW_RESULT_IS_ZERO \
- 0x00008000
-
-
- #define PKA_DIVMSW_RESULT_IS_ZERO_M \
- 0x00008000
- #define PKA_DIVMSW_RESULT_IS_ZERO_S 15
- #define PKA_DIVMSW_MSW_ADDRESS_M \
- 0x000007FF
-
-
-
- #define PKA_DIVMSW_MSW_ADDRESS_S 0
- #define PKA_SEQ_CTRL_RESET 0x80000000
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #define PKA_SEQ_CTRL_RESET_M 0x80000000
- #define PKA_SEQ_CTRL_RESET_S 31
- #define PKA_SEQ_CTRL_SEQUENCER_STATUS_M \
- 0x0000FF00
-
-
-
-
-
-
-
-
-
-
- #define PKA_SEQ_CTRL_SEQUENCER_STATUS_S 8
- #define PKA_SEQ_CTRL_SW_CONTROL_STATUS_M \
- 0x000000FF
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #define PKA_SEQ_CTRL_SW_CONTROL_STATUS_S 0
- #define PKA_OPTIONS_FIRST_LNME_FIFO_DEPTH_M \
- 0xFF000000
-
-
-
-
-
-
-
- #define PKA_OPTIONS_FIRST_LNME_FIFO_DEPTH_S 24
- #define PKA_OPTIONS_FIRST_LNME_NR_OF_PES_M \
- 0x003F0000
-
-
-
-
- #define PKA_OPTIONS_FIRST_LNME_NR_OF_PES_S 16
- #define PKA_OPTIONS_MMM3A 0x00001000
-
-
- #define PKA_OPTIONS_MMM3A_M 0x00001000
- #define PKA_OPTIONS_MMM3A_S 12
- #define PKA_OPTIONS_INT_MASKING 0x00000800
-
-
-
-
-
-
-
-
- #define PKA_OPTIONS_INT_MASKING_M \
- 0x00000800
- #define PKA_OPTIONS_INT_MASKING_S 11
- #define PKA_OPTIONS_PROTECTION_OPTION_M \
- 0x00000700
-
-
-
-
-
-
- #define PKA_OPTIONS_PROTECTION_OPTION_S 8
- #define PKA_OPTIONS_PROGRAM_RAM 0x00000080
-
-
-
- #define PKA_OPTIONS_PROGRAM_RAM_M \
- 0x00000080
- #define PKA_OPTIONS_PROGRAM_RAM_S 7
- #define PKA_OPTIONS_SEQUENCER_CONFIGURATION_M \
- 0x00000060
-
-
- #define PKA_OPTIONS_SEQUENCER_CONFIGURATION_S 5
- #define PKA_OPTIONS_LNME_CONFIGURATION_M \
- 0x0000001C
-
-
-
-
- #define PKA_OPTIONS_LNME_CONFIGURATION_S 2
- #define PKA_OPTIONS_PKCP_CONFIGURATION_M \
- 0x00000003
-
-
-
-
-
- #define PKA_OPTIONS_PKCP_CONFIGURATION_S 0
- #define PKA_SW_REV_FW_CAPABILITIES_M \
- 0xF0000000
-
-
-
-
-
-
-
- #define PKA_SW_REV_FW_CAPABILITIES_S 28
- #define PKA_SW_REV_MAJOR_FW_REVISION_M \
- 0x0F000000
-
- #define PKA_SW_REV_MAJOR_FW_REVISION_S 24
- #define PKA_SW_REV_MINOR_FW_REVISION_M \
- 0x00F00000
-
- #define PKA_SW_REV_MINOR_FW_REVISION_S 20
- #define PKA_SW_REV_FW_PATCH_LEVEL_M \
- 0x000F0000
-
-
-
-
-
-
- #define PKA_SW_REV_FW_PATCH_LEVEL_S 16
- #define PKA_REVISION_MAJOR_HW_REVISION_M \
- 0x0F000000
-
- #define PKA_REVISION_MAJOR_HW_REVISION_S 24
- #define PKA_REVISION_MINOR_HW_REVISION_M \
- 0x00F00000
-
- #define PKA_REVISION_MINOR_HW_REVISION_S 20
- #define PKA_REVISION_HW_PATCH_LEVEL_M \
- 0x000F0000
-
-
-
-
-
-
- #define PKA_REVISION_HW_PATCH_LEVEL_S 16
- #define PKA_REVISION_COMPLEMENT_OF_BASIC_EIP_NUMBER_M \
- 0x0000FF00
-
- #define PKA_REVISION_COMPLEMENT_OF_BASIC_EIP_NUMBER_S 8
- #define PKA_REVISION_BASIC_EIP_NUMBER_M \
- 0x000000FF
-
- #define PKA_REVISION_BASIC_EIP_NUMBER_S 0
- #endif
|