diff options
author | Holger Dengler <hd@linux.vnet.ibm.com> | 2012-08-28 10:43:48 -0400 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2012-09-26 09:44:55 -0400 |
commit | b26bd9413c8359bd9f5c9bd1b789a10ebd2bb484 (patch) | |
tree | 89f0809ea27a39f7ef43061173b760e941408f02 /drivers/s390/crypto/ap_bus.h | |
parent | 75014550516b147e5f530b84c71496341e036d6f (diff) |
s390/ap: Add functiton facility information as AP device attribute.
Add the function facility information as new ap_device and sysfs
attribute. Also make the number of requests in device
queue and in device driver queue accessible in sysfs.
Reviewed-by: Ingo Tuchscherer <ingo.tuchscherer@linux.vnet.ibm.com>
Signed-off-by: Holger Dengler <hd@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'drivers/s390/crypto/ap_bus.h')
-rw-r--r-- | drivers/s390/crypto/ap_bus.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/drivers/s390/crypto/ap_bus.h b/drivers/s390/crypto/ap_bus.h index 5018f66dada5..e49bcf4d4081 100644 --- a/drivers/s390/crypto/ap_bus.h +++ b/drivers/s390/crypto/ap_bus.h | |||
@@ -118,6 +118,14 @@ static inline int ap_test_bit(unsigned int *ptr, unsigned int nr) | |||
118 | #define AP_DEVICE_TYPE_CEX3C 9 | 118 | #define AP_DEVICE_TYPE_CEX3C 9 |
119 | 119 | ||
120 | /* | 120 | /* |
121 | * Known function facilities | ||
122 | */ | ||
123 | #define AP_FUNC_MEX4K 1 | ||
124 | #define AP_FUNC_CRT4K 2 | ||
125 | #define AP_FUNC_COPRO 3 | ||
126 | #define AP_FUNC_ACCEL 4 | ||
127 | |||
128 | /* | ||
121 | * AP reset flag states | 129 | * AP reset flag states |
122 | */ | 130 | */ |
123 | #define AP_RESET_IGNORE 0 /* request timeout will be ignored */ | 131 | #define AP_RESET_IGNORE 0 /* request timeout will be ignored */ |
@@ -150,6 +158,7 @@ struct ap_device { | |||
150 | ap_qid_t qid; /* AP queue id. */ | 158 | ap_qid_t qid; /* AP queue id. */ |
151 | int queue_depth; /* AP queue depth.*/ | 159 | int queue_depth; /* AP queue depth.*/ |
152 | int device_type; /* AP device type. */ | 160 | int device_type; /* AP device type. */ |
161 | unsigned int functions; /* AP device function bitfield. */ | ||
153 | int unregistered; /* marks AP device as unregistered */ | 162 | int unregistered; /* marks AP device as unregistered */ |
154 | struct timer_list timeout; /* Timer for request timeouts. */ | 163 | struct timer_list timeout; /* Timer for request timeouts. */ |
155 | int reset; /* Reset required after req. timeout. */ | 164 | int reset; /* Reset required after req. timeout. */ |
@@ -225,6 +234,4 @@ void ap_flush_queue(struct ap_device *ap_dev); | |||
225 | int ap_module_init(void); | 234 | int ap_module_init(void); |
226 | void ap_module_exit(void); | 235 | void ap_module_exit(void); |
227 | 236 | ||
228 | int ap_4096_commands_available(ap_qid_t qid); | ||
229 | |||
230 | #endif /* _AP_BUS_H_ */ | 237 | #endif /* _AP_BUS_H_ */ |