diff options
author | Sebastian Ott <sebott@linux.vnet.ibm.com> | 2015-11-27 06:33:18 -0500 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2016-04-15 12:16:39 -0400 |
commit | 3fa7ee8844c31cb9c78992bb82cfaeb13375345d (patch) | |
tree | e7ed4f0163f3176034b2bc69776cd62fa9ef48a4 | |
parent | 368704a65be8620df795ccbeb44e025dafbc3e1f (diff) |
s390/sclp: event type macro cleanup
Sort the sclp event type defines and use a macro to create the
corresponding event type masks. In addition to that one unused
type/mask pair is removed and another previously unused define
is used now (it was probably unused/unknown because it didn't
follow the EVTYP_X EVTYP_X_MASK convention).
Signed-off-by: Sebastian Ott <sebott@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
-rw-r--r-- | drivers/s390/char/sclp.h | 38 | ||||
-rw-r--r-- | drivers/s390/char/sclp_cpi_sys.c | 2 |
2 files changed, 20 insertions, 20 deletions
diff --git a/drivers/s390/char/sclp.h b/drivers/s390/char/sclp.h index 6079efa95eaa..7a10c56334bb 100644 --- a/drivers/s390/char/sclp.h +++ b/drivers/s390/char/sclp.h | |||
@@ -17,35 +17,35 @@ | |||
17 | #define MAX_KMEM_PAGES (sizeof(unsigned long) << 3) | 17 | #define MAX_KMEM_PAGES (sizeof(unsigned long) << 3) |
18 | #define SCLP_CONSOLE_PAGES 6 | 18 | #define SCLP_CONSOLE_PAGES 6 |
19 | 19 | ||
20 | #define SCLP_EVTYP_MASK(T) (1U << (32 - (T))) | ||
21 | |||
20 | #define EVTYP_OPCMD 0x01 | 22 | #define EVTYP_OPCMD 0x01 |
21 | #define EVTYP_MSG 0x02 | 23 | #define EVTYP_MSG 0x02 |
24 | #define EVTYP_CONFMGMDATA 0x04 | ||
22 | #define EVTYP_DIAG_TEST 0x07 | 25 | #define EVTYP_DIAG_TEST 0x07 |
23 | #define EVTYP_STATECHANGE 0x08 | 26 | #define EVTYP_STATECHANGE 0x08 |
24 | #define EVTYP_PMSGCMD 0x09 | 27 | #define EVTYP_PMSGCMD 0x09 |
28 | #define EVTYP_ASYNC 0x0A | ||
29 | #define EVTYP_CTLPROGIDENT 0x0B | ||
25 | #define EVTYP_ERRNOTIFY 0x18 | 30 | #define EVTYP_ERRNOTIFY 0x18 |
26 | #define EVTYP_CNTLPROGOPCMD 0x20 | ||
27 | #define EVTYP_CNTLPROGIDENT 0x0B | ||
28 | #define EVTYP_SIGQUIESCE 0x1D | ||
29 | #define EVTYP_VT220MSG 0x1A | 31 | #define EVTYP_VT220MSG 0x1A |
30 | #define EVTYP_CONFMGMDATA 0x04 | ||
31 | #define EVTYP_SDIAS 0x1C | 32 | #define EVTYP_SDIAS 0x1C |
32 | #define EVTYP_ASYNC 0x0A | 33 | #define EVTYP_SIGQUIESCE 0x1D |
33 | #define EVTYP_OCF 0x1E | 34 | #define EVTYP_OCF 0x1E |
34 | 35 | ||
35 | #define EVTYP_OPCMD_MASK 0x80000000 | 36 | #define EVTYP_OPCMD_MASK SCLP_EVTYP_MASK(EVTYP_OPCMD) |
36 | #define EVTYP_MSG_MASK 0x40000000 | 37 | #define EVTYP_MSG_MASK SCLP_EVTYP_MASK(EVTYP_MSG) |
37 | #define EVTYP_DIAG_TEST_MASK 0x02000000 | 38 | #define EVTYP_CONFMGMDATA_MASK SCLP_EVTYP_MASK(EVTYP_CONFMGMDATA) |
38 | #define EVTYP_STATECHANGE_MASK 0x01000000 | 39 | #define EVTYP_DIAG_TEST_MASK SCLP_EVTYP_MASK(EVTYP_DIAG_TEST) |
39 | #define EVTYP_PMSGCMD_MASK 0x00800000 | 40 | #define EVTYP_STATECHANGE_MASK SCLP_EVTYP_MASK(EVTYP_STATECHANGE) |
40 | #define EVTYP_ERRNOTIFY_MASK 0x00000100 | 41 | #define EVTYP_PMSGCMD_MASK SCLP_EVTYP_MASK(EVTYP_PMSGCMD) |
41 | #define EVTYP_CTLPROGOPCMD_MASK 0x00000001 | 42 | #define EVTYP_ASYNC_MASK SCLP_EVTYP_MASK(EVTYP_ASYNC) |
42 | #define EVTYP_CTLPROGIDENT_MASK 0x00200000 | 43 | #define EVTYP_CTLPROGIDENT_MASK SCLP_EVTYP_MASK(EVTYP_CTLPROGIDENT) |
43 | #define EVTYP_SIGQUIESCE_MASK 0x00000008 | 44 | #define EVTYP_ERRNOTIFY_MASK SCLP_EVTYP_MASK(EVTYP_ERRNOTIFY) |
44 | #define EVTYP_VT220MSG_MASK 0x00000040 | 45 | #define EVTYP_VT220MSG_MASK SCLP_EVTYP_MASK(EVTYP_VT220MSG) |
45 | #define EVTYP_CONFMGMDATA_MASK 0x10000000 | 46 | #define EVTYP_SDIAS_MASK SCLP_EVTYP_MASK(EVTYP_SDIAS) |
46 | #define EVTYP_SDIAS_MASK 0x00000010 | 47 | #define EVTYP_SIGQUIESCE_MASK SCLP_EVTYP_MASK(EVTYP_SIGQUIESCE) |
47 | #define EVTYP_ASYNC_MASK 0x00400000 | 48 | #define EVTYP_OCF_MASK SCLP_EVTYP_MASK(EVTYP_OCF) |
48 | #define EVTYP_OCF_MASK 0x00000004 | ||
49 | 49 | ||
50 | #define GNRLMSGFLGS_DOM 0x8000 | 50 | #define GNRLMSGFLGS_DOM 0x8000 |
51 | #define GNRLMSGFLGS_SNDALRM 0x4000 | 51 | #define GNRLMSGFLGS_SNDALRM 0x4000 |
diff --git a/drivers/s390/char/sclp_cpi_sys.c b/drivers/s390/char/sclp_cpi_sys.c index f344e5bd2d9f..90d92fbe7b9b 100644 --- a/drivers/s390/char/sclp_cpi_sys.c +++ b/drivers/s390/char/sclp_cpi_sys.c | |||
@@ -93,7 +93,7 @@ static struct sclp_req *cpi_prepare_req(void) | |||
93 | /* setup SCCB for Control-Program Identification */ | 93 | /* setup SCCB for Control-Program Identification */ |
94 | sccb->header.length = sizeof(struct cpi_sccb); | 94 | sccb->header.length = sizeof(struct cpi_sccb); |
95 | sccb->cpi_evbuf.header.length = sizeof(struct cpi_evbuf); | 95 | sccb->cpi_evbuf.header.length = sizeof(struct cpi_evbuf); |
96 | sccb->cpi_evbuf.header.type = 0x0b; | 96 | sccb->cpi_evbuf.header.type = EVTYP_CTLPROGIDENT; |
97 | evb = &sccb->cpi_evbuf; | 97 | evb = &sccb->cpi_evbuf; |
98 | 98 | ||
99 | /* set system type */ | 99 | /* set system type */ |