aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s390/char/sclp.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/s390/char/sclp.h')
-rw-r--r--drivers/s390/char/sclp.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/drivers/s390/char/sclp.h b/drivers/s390/char/sclp.h
index 6bb5a6bdfab5..bc23b05bfe7d 100644
--- a/drivers/s390/char/sclp.h
+++ b/drivers/s390/char/sclp.h
@@ -186,4 +186,26 @@ sclp_ascebc_str(unsigned char *str, int nr)
186 (MACHINE_IS_VM) ? ASCEBC(str, nr) : ASCEBC_500(str, nr); 186 (MACHINE_IS_VM) ? ASCEBC(str, nr) : ASCEBC_500(str, nr);
187} 187}
188 188
189static inline struct gds_vector *
190sclp_find_gds_vector(void *start, void *end, u16 id)
191{
192 struct gds_vector *v;
193
194 for (v = start; (void *) v < end; v = (void *) v + v->length)
195 if (v->gds_id == id)
196 return v;
197 return NULL;
198}
199
200static inline struct gds_subvector *
201sclp_find_gds_subvector(void *start, void *end, u8 key)
202{
203 struct gds_subvector *sv;
204
205 for (sv = start; (void *) sv < end; sv = (void *) sv + sv->length)
206 if (sv->key == key)
207 return sv;
208 return NULL;
209}
210
189#endif /* __SCLP_H__ */ 211#endif /* __SCLP_H__ */