44#define CRC_DR MMIO32(CRC_BASE + 0x00)
47#define CRC_IDR MMIO32(CRC_BASE + 0x04)
50#define CRC_CR MMIO32(CRC_BASE + 0x08)
71#define CRC_CR_RESET (1 << 0)
uint32_t crc_calculate_block(uint32_t *datap, int size)
Add a block of data to the CRC calculator and return the final result.
void crc_reset(void)
Reset the CRC calculator to initial values.
uint32_t crc_calculate(uint32_t data)
Writes a data word to the register, the write operation stalling until the computation is complete.