~funderscore blog cgit wiki get in touch
aboutsummaryrefslogtreecommitdiff
blob: a0ff93adf0aa03211fb304d7b81a87f49eb7527d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#ifndef NDMA_UTILS_H
#define NDMA_UTILS_H
void    NDMA_set_table_position( uint32_t thread_num, uint32_t table_start, uint32_t table_end );
void    NDMA_set_table_position_secure( uint32_t thread_num, uint32_t table_start, uint32_t table_end );
void    NDMA_start(uint32_t thread_num);
void    NDMA_stop(uint32_t thread_num);
void    NDMA_wait_for_completion(uint32_t thread_num);
void    NDMA_add_descriptor_aes(
								uint32_t   thread_num,
								uint32_t   irq,
								uint32_t   cbc_enable,
								uint32_t   cbc_reset,
								uint32_t   encrypt,        // 0 = decrypt, 1 = encrypt
								uint32_t   aes_type,       // 00 = 128, 01 = 192, 10 = 256
								uint32_t   pre_endian,
								uint32_t   post_endian,
								uint32_t   bytes_to_move,
								uint32_t   src_addr,
								uint32_t   dest_addr,
								uint32_t   ctr_endian,
								uint32_t   ctr_limit );


void    NDMA_add_descriptor_sha(
                                uint32_t   thread_num,
                                uint32_t   irq,
                                uint32_t   sha_type,       // 0 = sha1, 1 = sha2-224, 2 = sha2-256
                                uint32_t   pre_endian,
                                uint32_t   bytes_to_move,
                                uint32_t   src_addr,
                                uint32_t   last_block );
#endif