diff options
author | Andrea Bastoni <bastoni@cs.unc.edu> | 2010-05-30 19:16:45 -0400 |
---|---|---|
committer | Andrea Bastoni <bastoni@cs.unc.edu> | 2010-05-30 19:16:45 -0400 |
commit | ada47b5fe13d89735805b566185f4885f5a3f750 (patch) | |
tree | 644b88f8a71896307d71438e9b3af49126ffb22b /drivers/s390/crypto/ap_bus.h | |
parent | 43e98717ad40a4ae64545b5ba047c7b86aa44f4f (diff) | |
parent | 3280f21d43ee541f97f8cda5792150d2dbec20d5 (diff) |
Merge branch 'wip-2.6.34' into old-private-masterarchived-private-master
Diffstat (limited to 'drivers/s390/crypto/ap_bus.h')
-rw-r--r-- | drivers/s390/crypto/ap_bus.h | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/drivers/s390/crypto/ap_bus.h b/drivers/s390/crypto/ap_bus.h index a35362241805..4785d07cd447 100644 --- a/drivers/s390/crypto/ap_bus.h +++ b/drivers/s390/crypto/ap_bus.h | |||
@@ -87,6 +87,7 @@ struct ap_queue_status { | |||
87 | #define AP_RESPONSE_INDEX_TOO_BIG 0x11 | 87 | #define AP_RESPONSE_INDEX_TOO_BIG 0x11 |
88 | #define AP_RESPONSE_NO_FIRST_PART 0x13 | 88 | #define AP_RESPONSE_NO_FIRST_PART 0x13 |
89 | #define AP_RESPONSE_MESSAGE_TOO_BIG 0x15 | 89 | #define AP_RESPONSE_MESSAGE_TOO_BIG 0x15 |
90 | #define AP_RESPONSE_REQ_FAC_NOT_INST 0x16 | ||
90 | 91 | ||
91 | /* | 92 | /* |
92 | * Known device types | 93 | * Known device types |
@@ -96,8 +97,8 @@ struct ap_queue_status { | |||
96 | #define AP_DEVICE_TYPE_PCIXCC 5 | 97 | #define AP_DEVICE_TYPE_PCIXCC 5 |
97 | #define AP_DEVICE_TYPE_CEX2A 6 | 98 | #define AP_DEVICE_TYPE_CEX2A 6 |
98 | #define AP_DEVICE_TYPE_CEX2C 7 | 99 | #define AP_DEVICE_TYPE_CEX2C 7 |
99 | #define AP_DEVICE_TYPE_CEX2A2 8 | 100 | #define AP_DEVICE_TYPE_CEX3A 8 |
100 | #define AP_DEVICE_TYPE_CEX2C2 9 | 101 | #define AP_DEVICE_TYPE_CEX3C 9 |
101 | 102 | ||
102 | /* | 103 | /* |
103 | * AP reset flag states | 104 | * AP reset flag states |
@@ -161,12 +162,25 @@ struct ap_message { | |||
161 | size_t length; /* Message length. */ | 162 | size_t length; /* Message length. */ |
162 | 163 | ||
163 | void *private; /* ap driver private pointer. */ | 164 | void *private; /* ap driver private pointer. */ |
165 | unsigned int special:1; /* Used for special commands. */ | ||
164 | }; | 166 | }; |
165 | 167 | ||
166 | #define AP_DEVICE(dt) \ | 168 | #define AP_DEVICE(dt) \ |
167 | .dev_type=(dt), \ | 169 | .dev_type=(dt), \ |
168 | .match_flags=AP_DEVICE_ID_MATCH_DEVICE_TYPE, | 170 | .match_flags=AP_DEVICE_ID_MATCH_DEVICE_TYPE, |
169 | 171 | ||
172 | /** | ||
173 | * ap_init_message() - Initialize ap_message. | ||
174 | * Initialize a message before using. Otherwise this might result in | ||
175 | * unexpected behaviour. | ||
176 | */ | ||
177 | static inline void ap_init_message(struct ap_message *ap_msg) | ||
178 | { | ||
179 | ap_msg->psmid = 0; | ||
180 | ap_msg->length = 0; | ||
181 | ap_msg->special = 0; | ||
182 | } | ||
183 | |||
170 | /* | 184 | /* |
171 | * Note: don't use ap_send/ap_recv after using ap_queue_message | 185 | * Note: don't use ap_send/ap_recv after using ap_queue_message |
172 | * for the first time. Otherwise the ap message queue will get | 186 | * for the first time. Otherwise the ap message queue will get |