diff options
Diffstat (limited to 'drivers/misc/sgi-gru/grukservices.h')
-rw-r--r-- | drivers/misc/sgi-gru/grukservices.h | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/drivers/misc/sgi-gru/grukservices.h b/drivers/misc/sgi-gru/grukservices.h index 747ed315d56..d60d34bca44 100644 --- a/drivers/misc/sgi-gru/grukservices.h +++ b/drivers/misc/sgi-gru/grukservices.h | |||
@@ -146,4 +146,55 @@ extern void *gru_get_next_message(struct gru_message_queue_desc *mqd); | |||
146 | extern int gru_copy_gpa(unsigned long dest_gpa, unsigned long src_gpa, | 146 | extern int gru_copy_gpa(unsigned long dest_gpa, unsigned long src_gpa, |
147 | unsigned int bytes); | 147 | unsigned int bytes); |
148 | 148 | ||
149 | /* | ||
150 | * Reserve GRU resources to be used asynchronously. | ||
151 | * | ||
152 | * input: | ||
153 | * blade_id - blade on which resources should be reserved | ||
154 | * cbrs - number of CBRs | ||
155 | * dsr_bytes - number of DSR bytes needed | ||
156 | * cmp - completion structure for waiting for | ||
157 | * async completions | ||
158 | * output: | ||
159 | * handle to identify resource | ||
160 | * (0 = no resources) | ||
161 | */ | ||
162 | extern unsigned long gru_reserve_async_resources(int blade_id, int cbrs, int dsr_bytes, | ||
163 | struct completion *cmp); | ||
164 | |||
165 | /* | ||
166 | * Release async resources previously reserved. | ||
167 | * | ||
168 | * input: | ||
169 | * han - handle to identify resources | ||
170 | */ | ||
171 | extern void gru_release_async_resources(unsigned long han); | ||
172 | |||
173 | /* | ||
174 | * Wait for async GRU instructions to complete. | ||
175 | * | ||
176 | * input: | ||
177 | * han - handle to identify resources | ||
178 | */ | ||
179 | extern void gru_wait_async_cbr(unsigned long han); | ||
180 | |||
181 | /* | ||
182 | * Lock previous reserved async GRU resources | ||
183 | * | ||
184 | * input: | ||
185 | * han - handle to identify resources | ||
186 | * output: | ||
187 | * cb - pointer to first CBR | ||
188 | * dsr - pointer to first DSR | ||
189 | */ | ||
190 | extern void gru_lock_async_resource(unsigned long han, void **cb, void **dsr); | ||
191 | |||
192 | /* | ||
193 | * Unlock previous reserved async GRU resources | ||
194 | * | ||
195 | * input: | ||
196 | * han - handle to identify resources | ||
197 | */ | ||
198 | extern void gru_unlock_async_resource(unsigned long han); | ||
199 | |||
149 | #endif /* __GRU_KSERVICES_H_ */ | 200 | #endif /* __GRU_KSERVICES_H_ */ |