aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s390/char/sclp.h
diff options
context:
space:
mode:
authorHeiko Carstens <heiko.carstens@de.ibm.com>2007-07-10 05:24:10 -0400
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2007-07-10 05:24:43 -0400
commit83119ad4a1ceacd99f380086c2855ae2c4268afc (patch)
tree6da1d5cdba6e5bcd8fcdf5332700e8353b4e79a8 /drivers/s390/char/sclp.h
parent05dd25307ca67cbfa0207bbba2e6c79fa97d125b (diff)
[S390] sclp: Test facility list before executing a service call.
Check if a command is available before executing. Saves some superfluous service calls that won't succeed anyway. Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'drivers/s390/char/sclp.h')
-rw-r--r--drivers/s390/char/sclp.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/s390/char/sclp.h b/drivers/s390/char/sclp.h
index cb5888f79007..c7318a125852 100644
--- a/drivers/s390/char/sclp.h
+++ b/drivers/s390/char/sclp.h
@@ -79,6 +79,11 @@ struct sccb_header {
79 u16 response_code; 79 u16 response_code;
80} __attribute__((packed)); 80} __attribute__((packed));
81 81
82extern u64 sclp_facilities;
83
84#define SCLP_HAS_CHP_INFO (sclp_facilities & 0x8000000000000000ULL)
85#define SCLP_HAS_CHP_RECONFIG (sclp_facilities & 0x2000000000000000ULL)
86
82struct gds_subvector { 87struct gds_subvector {
83 u8 length; 88 u8 length;
84 u8 key; 89 u8 key;