Linux v2.6.15-rc6
[pohmelfs.git] / include / asm-cris / arch-v32 / hwregs / strcop.h
blob35131ba466f398fa433487941192fe1a77fec056
1 // $Id: strcop.h,v 1.3 2003/10/22 13:27:12 henriken Exp $
3 // Streamcop meta-data configuration structs
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;
17 struct strcop_meta_in {
18 unsigned char dmasel : 3;
19 unsigned char sync : 1;
20 unsigned char res1 : 5;
21 unsigned char res2;
24 // Source definitions
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
37 // Cipher definitions
39 enum {
40 ciph_des = 0,
41 ciph_3des = 1,
42 ciph_aes = 2
45 // Hash definitions
47 enum {
48 hash_sha1 = 0,
49 hash_md5 = 1
52 enum {
53 hash_noiv = 0,
54 hash_iv = 1