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