43#define ICM_RCFG_CDWBN (0x1u << 0)
45#define ICM_RCFG_WRAP (0x1u << 1)
47#define ICM_RCFG_EOM (0x1u << 2)
49#define ICM_RCFG_RHIEN (0x1u << 4)
51#define ICM_RCFG_DMIEN (0x1u << 5)
53#define ICM_RCFG_BEIEN (0x1u << 6)
55#define ICM_RCFG_WCIEN (0x1u << 7)
57#define ICM_RCFG_ECIEN (0x1u << 8)
59#define ICM_RCFG_SUIEN (0x1u << 9)
61#define ICM_RCFG_PROCDLY (0x1u << 10)
63#define ICM_RCFG_UALGO_Pos 12
64#define ICM_RCFG_UALGO_Msk (0x7u << ICM_RCFG_UALGO_Pos)
66#define ICM_RCFG_ALGO_SHA1 (0x0u << 12)
68#define ICM_RCFG_ALGO_SHA256 (0x1u << 12)
70#define ICM_RCFG_ALGO_SHA224 (0x4u << 12)
72#define ICM_RCFG_MRPROT_Pos 24
73#define ICM_RCFG_MRPROT_Msk (0x3fu << ICM_RCFG_MRPROT_Pos)
75#define ICM_RCFG_MRPROT(value) \
76 ((ICM_RCFG_MRPROT_Msk & ((value) << ICM_RCFG_MRPROT_Pos)))
void ICM_SoftReset(void)
Resets the ICM controller.
Definition: icm.c:113
void ICM_Disable(void)
Disable ICM, if a region is active, this region is terminated.
Definition: icm.c:105
void ICM_SetHashStartAddress(uint32_t addr)
Set hash area start address register.
Definition: icm.c:221
void ICM_DisableMonitor(uint8_t region)
Disable region monitoring for given region.
Definition: icm.c:144
void ICM_EnableIt(uint32_t sources)
Enables the selected interrupts sources on a ICM peripheral.
Definition: icm.c:162
uint32_t ICM_GetUStatus(void)
Get the undefined access status register of the given ICM peripheral.
Definition: icm.c:199
void ICM_ReComputeHash(uint8_t region)
Recompute Internal hash.
Definition: icm.c:124
void ICM_SetInitHashValue(uint32_t val)
Set ICM user initial Hash value register.
Definition: icm.c:230
void ICM_Enable(void)
Enable ICM, the ICM controller is activated.
Definition: icm.c:97
void ICM_DisableIt(uint32_t sources)
Disables the selected interrupts sources on a ICM peripheral.
Definition: icm.c:171
uint32_t ICM_GetStatus(void)
Get the current status register of the given ICM peripheral.
Definition: icm.c:189
void ICM_EnableMonitor(uint8_t region)
Enable region monitoring for given region.
Definition: icm.c:134
uint32_t ICM_GetIntStatus(void)
Get the current interrupt status register of the given ICM peripheral.
Definition: icm.c:180
void ICM_SetDescStartAddress(uint32_t addr)
Set descriptor area start address register.
Definition: icm.c:210
void ICM_Configure(uint32_t mode)
Configures an ICM peripheral with the specified parameters.
Definition: icm.c:153
Structure ICM region descriptor area.
Definition: icm.h:83
uint32_t icm_raddr
Definition: icm.h:85
uint32_t icm_rcfg
Definition: icm.h:87
uint32_t icm_rctrl
Definition: icm.h:89
uint32_t icm_rnext
Definition: icm.h:91