mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
zipl/sclp: add macros for the control-program masks
Add macros for the control-program masks and use them. Reviewed-by: Philipp Rudo <prudo@linux.ibm.com> Reviewed-by: Stefan Haberland <sth@linux.ibm.com> Signed-off-by: Marc Hartmayer <mhartmay@linux.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
This commit is contained in:
committed by
Jan Höppner
parent
a37170b8be
commit
303a3707e2
@@ -126,20 +126,20 @@ int sclp_setup(int initialise)
|
||||
|
||||
switch (initialise) {
|
||||
case SCLP_INIT:
|
||||
sccb->receive_mask = 0x80000000;
|
||||
sccb->send_mask = 0x40000000;
|
||||
sccb->receive_mask = SCLP_EVENT_MASK_OPCMD;
|
||||
sccb->send_mask = SCLP_EVENT_MASK_MSG;
|
||||
break;
|
||||
case SCLP_DISABLE:
|
||||
sccb->receive_mask = 0x0;
|
||||
sccb->send_mask = 0x0;
|
||||
sccb->receive_mask = SCLP_EVENT_MASK_DISABLE;
|
||||
sccb->send_mask = SCLP_EVENT_MASK_DISABLE;
|
||||
break;
|
||||
case SCLP_HSA_INIT:
|
||||
sccb->receive_mask = 0x0;
|
||||
sccb->send_mask = 0x40000010;
|
||||
sccb->receive_mask = SCLP_EVENT_MASK_DISABLE;
|
||||
sccb->send_mask = SCLP_EVENT_MASK_MSG | SCLP_EVENT_MASK_SDIAS;
|
||||
break;
|
||||
case SCLP_HSA_INIT_ASYNC:
|
||||
sccb->receive_mask = 0x00000010;
|
||||
sccb->send_mask = 0x40000010;
|
||||
sccb->receive_mask = SCLP_EVENT_MASK_SDIAS;
|
||||
sccb->send_mask = SCLP_EVENT_MASK_MSG | SCLP_EVENT_MASK_SDIAS;
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
@@ -28,6 +28,12 @@
|
||||
#define SCLP_CMD_READ_INFO2 0x00020001
|
||||
#define SCLP_CMD_READ_DATA 0x00770005
|
||||
|
||||
/* SCLP event masks */
|
||||
#define SCLP_EVENT_MASK_DISABLE 0x00000000
|
||||
#define SCLP_EVENT_MASK_SDIAS 0x00000010
|
||||
#define SCLP_EVENT_MASK_MSG 0x40000000
|
||||
#define SCLP_EVENT_MASK_OPCMD 0x80000000
|
||||
|
||||
#define PSW_EXT_MASK 0x00080000ULL
|
||||
#define PSW_EXT_ADDR 0x80000000ULL
|
||||
#define PSW_WAIT_MASK 0x010a0000ULL
|
||||
|
||||
Reference in New Issue
Block a user