Skip to content

Commit 97999f8

Browse files
NickJackolsonVasily Gorbik
authored andcommitted
s390/diag: Add busy-indication-facility requirements
To verify if busy indication facility is installed or not sclp bits has to be checked. Add a function that checks sclp to improve readability. Add busy-indication-request bit mask for diag204 subcodes. Acked-by: Heiko Carstens <[email protected]> Reviewed-by: Tobias Huschle <[email protected]> Signed-off-by: Mete Durlu <[email protected]> Signed-off-by: Vasily Gorbik <[email protected]>
1 parent df7e714 commit 97999f8

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

arch/s390/include/asm/diag.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
#include <linux/if_ether.h>
1313
#include <linux/percpu.h>
1414
#include <asm/asm-extable.h>
15+
#include <asm/sclp.h>
1516
#include <asm/cio.h>
1617

1718
enum diag_stat_enum {
@@ -117,6 +118,7 @@ enum diag204_sc {
117118
};
118119

119120
#define DIAG204_SUBCODE_MASK 0xffff
121+
#define DIAG204_BIF_BIT 0x80000000
120122

121123
/* The two available diag 204 data formats */
122124
enum diag204_format {
@@ -326,6 +328,11 @@ union diag318_info {
326328
};
327329
};
328330

331+
static inline bool diag204_has_bif(void)
332+
{
333+
return sclp.has_diag204_bif;
334+
}
335+
329336
int diag204(unsigned long subcode, unsigned long size, void *addr);
330337
int diag224(void *ptr);
331338
int diag26c(void *req, void *resp, enum diag26c_sc subcode);

0 commit comments

Comments
 (0)