License cleanup: add SPDX GPL-2.0 license identifier to files with no license
[linux-block.git] / arch / cris / include / arch-v32 / arch / hwregs / strcop.h
1 /* SPDX-License-Identifier: GPL-2.0 */
2 // $Id: strcop.h,v 1.3 2003/10/22 13:27:12 henriken Exp $
3
4 // Streamcop meta-data configuration structs
5
6 struct strcop_meta_out {
7         unsigned char  csumsel  : 3;
8         unsigned char  ciphsel  : 3;
9         unsigned char  ciphconf : 2;
10         unsigned char  hashsel  : 3;
11         unsigned char  hashconf : 1;
12         unsigned char  hashmode : 1;
13         unsigned char  decrypt  : 1;
14         unsigned char  dlkey    : 1;
15         unsigned char  cbcmode  : 1;
16 };
17
18 struct strcop_meta_in {
19         unsigned char  dmasel     : 3;
20         unsigned char  sync       : 1;
21         unsigned char  res1       : 5;
22         unsigned char  res2;
23 };
24
25 // Source definitions
26
27 enum {
28         src_none = 0,
29         src_dma  = 1,
30         src_des  = 2,
31         src_sha1 = 3,
32         src_csum = 4,
33         src_aes  = 5,
34         src_md5  = 6,
35         src_res  = 7
36 };
37
38 // Cipher definitions
39
40 enum {
41         ciph_des = 0,
42         ciph_3des = 1,
43         ciph_aes = 2
44 };
45
46 // Hash definitions
47
48 enum {
49         hash_sha1 = 0,
50         hash_md5 = 1
51 };
52
53 enum {
54         hash_noiv = 0,
55         hash_iv = 1
56 };
57
58