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 <hca@linux.ibm.com> Reviewed-by: Tobias Huschle <huschle@linux.ibm.com> Signed-off-by: Mete Durlu <meted@linux.ibm.com> Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
This commit is contained in:
parent
df7e714d6d
commit
97999f8c62
@ -12,6 +12,7 @@
|
||||
#include <linux/if_ether.h>
|
||||
#include <linux/percpu.h>
|
||||
#include <asm/asm-extable.h>
|
||||
#include <asm/sclp.h>
|
||||
#include <asm/cio.h>
|
||||
|
||||
enum diag_stat_enum {
|
||||
@ -117,6 +118,7 @@ enum diag204_sc {
|
||||
};
|
||||
|
||||
#define DIAG204_SUBCODE_MASK 0xffff
|
||||
#define DIAG204_BIF_BIT 0x80000000
|
||||
|
||||
/* The two available diag 204 data formats */
|
||||
enum diag204_format {
|
||||
@ -326,6 +328,11 @@ union diag318_info {
|
||||
};
|
||||
};
|
||||
|
||||
static inline bool diag204_has_bif(void)
|
||||
{
|
||||
return sclp.has_diag204_bif;
|
||||
}
|
||||
|
||||
int diag204(unsigned long subcode, unsigned long size, void *addr);
|
||||
int diag224(void *ptr);
|
||||
int diag26c(void *req, void *resp, enum diag26c_sc subcode);
|
||||
|
Loading…
x
Reference in New Issue
Block a user