[PATCH] w1: Make w1 connector notifications depend on connector.
[linux-2.6/verdex.git] / drivers / s390 / crypto / z90crypt.h
blob0ca1d126ccb665007bdd2aae98ab61743800cef9
1 /*
2 * linux/drivers/s390/crypto/z90crypt.h
4 * z90crypt 1.3.3 (kernel-private header)
6 * Copyright (C) 2001, 2005 IBM Corporation
7 * Author(s): Robert Burroughs (burrough@us.ibm.com)
8 * Eric Rossman (edrossma@us.ibm.com)
10 * Hotplug & misc device support: Jochen Roehrig (roehrig@de.ibm.com)
12 * This program is free software; you can redistribute it and/or modify
13 * it under the terms of the GNU General Public License as published by
14 * the Free Software Foundation; either version 2, or (at your option)
15 * any later version.
17 * This program is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
22 * You should have received a copy of the GNU General Public License
23 * along with this program; if not, write to the Free Software
24 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
27 #ifndef _Z90CRYPT_H_
28 #define _Z90CRYPT_H_
30 #include <asm/z90crypt.h>
32 /**
33 * local errno definitions
35 #define ENOBUFF 129 // filp->private_data->...>work_elem_p->buffer is NULL
36 #define EWORKPEND 130 // user issues ioctl while another pending
37 #define ERELEASED 131 // user released while ioctl pending
38 #define EQUIESCE 132 // z90crypt quiescing (no more work allowed)
39 #define ETIMEOUT 133 // request timed out
40 #define EUNKNOWN 134 // some unrecognized error occured (retry may succeed)
41 #define EGETBUFF 135 // Error getting buffer or hardware lacks capability
42 // (retry in software)
44 /**
45 * DEPRECATED STRUCTURES
48 /**
49 * This structure is DEPRECATED and the corresponding ioctl() has been
50 * replaced with individual ioctl()s for each piece of data!
51 * This structure will NOT survive past version 1.3.1, so switch to the
52 * new ioctl()s.
54 #define MASK_LENGTH 64 // mask length
55 struct ica_z90_status {
56 int totalcount;
57 int leedslitecount; // PCICA
58 int leeds2count; // PCICC
59 // int PCIXCCCount; is not in struct for backward compatibility
60 int requestqWaitCount;
61 int pendingqWaitCount;
62 int totalOpenCount;
63 int cryptoDomain;
64 // status: 0=not there, 1=PCICA, 2=PCICC, 3=PCIXCC_MCL2, 4=PCIXCC_MCL3,
65 // 5=CEX2C
66 unsigned char status[MASK_LENGTH];
67 // qdepth: # work elements waiting for each device
68 unsigned char qdepth[MASK_LENGTH];
71 #endif /* _Z90CRYPT_H_ */