Commit 6d4740c8 authored by Stefan Haberland's avatar Stefan Haberland Committed by Martin Schwidefsky

[S390] sclp: fix coding style.

Use only capital letters for defines.

Cc: Peter Oberparleiter <peter.oberparleiter@de.ibm.com>
Signed-off-by: default avatarStefan Haberland <stefan.haberland@de.ibm.com>
Signed-off-by: default avatarHeiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: default avatarMartin Schwidefsky <schwidefsky@de.ibm.com>
parent 66b494a7
...@@ -511,7 +511,7 @@ sclp_state_change_cb(struct evbuf_header *evbuf) ...@@ -511,7 +511,7 @@ sclp_state_change_cb(struct evbuf_header *evbuf)
} }
static struct sclp_register sclp_state_change_event = { static struct sclp_register sclp_state_change_event = {
.receive_mask = EvTyp_StateChange_Mask, .receive_mask = EVTYP_STATECHANGE_MASK,
.receiver_fn = sclp_state_change_cb .receiver_fn = sclp_state_change_cb
}; };
......
...@@ -19,35 +19,35 @@ ...@@ -19,35 +19,35 @@
#define MAX_KMEM_PAGES (sizeof(unsigned long) << 3) #define MAX_KMEM_PAGES (sizeof(unsigned long) << 3)
#define MAX_CONSOLE_PAGES 4 #define MAX_CONSOLE_PAGES 4
#define EvTyp_OpCmd 0x01 #define EVTYP_OPCMD 0x01
#define EvTyp_Msg 0x02 #define EVTYP_MSG 0x02
#define EvTyp_StateChange 0x08 #define EVTYP_STATECHANGE 0x08
#define EvTyp_PMsgCmd 0x09 #define EVTYP_PMSGCMD 0x09
#define EvTyp_CntlProgOpCmd 0x20 #define EVTYP_CNTLPROGOPCMD 0x20
#define EvTyp_CntlProgIdent 0x0B #define EVTYP_CNTLPROGIDENT 0x0B
#define EvTyp_SigQuiesce 0x1D #define EVTYP_SIGQUIESCE 0x1D
#define EvTyp_VT220Msg 0x1A #define EVTYP_VT220MSG 0x1A
#define EvTyp_SDIAS 0x1C #define EVTYP_SDIAS 0x1C
#define EvTyp_OpCmd_Mask 0x80000000 #define EVTYP_OPCMD_MASK 0x80000000
#define EvTyp_Msg_Mask 0x40000000 #define EVTYP_MSG_MASK 0x40000000
#define EvTyp_StateChange_Mask 0x01000000 #define EVTYP_STATECHANGE_MASK 0x01000000
#define EvTyp_PMsgCmd_Mask 0x00800000 #define EVTYP_PMSGCMD_MASK 0x00800000
#define EvTyp_CtlProgOpCmd_Mask 0x00000001 #define EVTYP_CTLPROGOPCMD_MASK 0x00000001
#define EvTyp_CtlProgIdent_Mask 0x00200000 #define EVTYP_CTLPROGIDENT_MASK 0x00200000
#define EvTyp_SigQuiesce_Mask 0x00000008 #define EVTYP_SIGQUIESCE_MASK 0x00000008
#define EvTyp_VT220Msg_Mask 0x00000040 #define EVTYP_VT220MSG_MASK 0x00000040
#define EvTyp_SDIAS_Mask 0x00000010 #define EVTYP_SDIAS_MASK 0x00000010
#define GnrlMsgFlgs_DOM 0x8000 #define GNRLMSGFLGS_DOM 0x8000
#define GnrlMsgFlgs_SndAlrm 0x4000 #define GNRLMSGFLGS_SNDALRM 0x4000
#define GnrlMsgFlgs_HoldMsg 0x2000 #define GNRLMSGFLGS_HOLDMSG 0x2000
#define LnTpFlgs_CntlText 0x8000 #define LNTPFLGS_CNTLTEXT 0x8000
#define LnTpFlgs_LabelText 0x4000 #define LNTPFLGS_LABELTEXT 0x4000
#define LnTpFlgs_DataText 0x2000 #define LNTPFLGS_DATATEXT 0x2000
#define LnTpFlgs_EndText 0x1000 #define LNTPFLGS_ENDTEXT 0x1000
#define LnTpFlgs_PromptText 0x0800 #define LNTPFLGS_PROMPTTEXT 0x0800
typedef unsigned int sclp_cmdw_t; typedef unsigned int sclp_cmdw_t;
...@@ -58,15 +58,15 @@ typedef unsigned int sclp_cmdw_t; ...@@ -58,15 +58,15 @@ typedef unsigned int sclp_cmdw_t;
#define SCLP_CMDW_READ_SCP_INFO_FORCED 0x00120001 #define SCLP_CMDW_READ_SCP_INFO_FORCED 0x00120001
#define GDS_ID_MDSMU 0x1310 #define GDS_ID_MDSMU 0x1310
#define GDS_ID_MDSRouteInfo 0x1311 #define GDS_ID_MDSROUTEINFO 0x1311
#define GDS_ID_AgUnWrkCorr 0x1549 #define GDS_ID_AGUNWRKCORR 0x1549
#define GDS_ID_SNACondReport 0x1532 #define GDS_ID_SNACONDREPORT 0x1532
#define GDS_ID_CPMSU 0x1212 #define GDS_ID_CPMSU 0x1212
#define GDS_ID_RoutTargInstr 0x154D #define GDS_ID_ROUTTARGINSTR 0x154D
#define GDS_ID_OpReq 0x8070 #define GDS_ID_OPREQ 0x8070
#define GDS_ID_TextCmd 0x1320 #define GDS_ID_TEXTCMD 0x1320
#define GDS_KEY_SelfDefTextMsg 0x31 #define GDS_KEY_SELFDEFTEXTMSG 0x31
typedef u32 sccb_mask_t; /* ATTENTION: assumes 32bit mask !!! */ typedef u32 sccb_mask_t; /* ATTENTION: assumes 32bit mask !!! */
......
...@@ -46,7 +46,7 @@ struct cpi_sccb { ...@@ -46,7 +46,7 @@ struct cpi_sccb {
/* Event type structure for write message and write priority message */ /* Event type structure for write message and write priority message */
static struct sclp_register sclp_cpi_event = static struct sclp_register sclp_cpi_event =
{ {
.send_mask = EvTyp_CtlProgIdent_Mask .send_mask = EVTYP_CTLPROGIDENT_MASK
}; };
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
...@@ -201,7 +201,7 @@ cpi_module_init(void) ...@@ -201,7 +201,7 @@ cpi_module_init(void)
"console.\n"); "console.\n");
return -EINVAL; return -EINVAL;
} }
if (!(sclp_cpi_event.sclp_send_mask & EvTyp_CtlProgIdent_Mask)) { if (!(sclp_cpi_event.sclp_send_mask & EVTYP_CTLPROGIDENT_MASK)) {
printk(KERN_WARNING "cpi: no control program identification " printk(KERN_WARNING "cpi: no control program identification "
"support\n"); "support\n");
sclp_unregister(&sclp_cpi_event); sclp_unregister(&sclp_cpi_event);
......
...@@ -43,7 +43,7 @@ sclp_quiesce_handler(struct evbuf_header *evbuf) ...@@ -43,7 +43,7 @@ sclp_quiesce_handler(struct evbuf_header *evbuf)
} }
static struct sclp_register sclp_quiesce_event = { static struct sclp_register sclp_quiesce_event = {
.receive_mask = EvTyp_SigQuiesce_Mask, .receive_mask = EVTYP_SIGQUIESCE_MASK,
.receiver_fn = sclp_quiesce_handler .receiver_fn = sclp_quiesce_handler
}; };
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
/* Event type structure for write message and write priority message */ /* Event type structure for write message and write priority message */
static struct sclp_register sclp_rw_event = { static struct sclp_register sclp_rw_event = {
.send_mask = EvTyp_Msg_Mask | EvTyp_PMsgCmd_Mask .send_mask = EVTYP_MSG_MASK | EVTYP_PMSGCMD_MASK
}; };
/* /*
...@@ -64,7 +64,7 @@ sclp_make_buffer(void *page, unsigned short columns, unsigned short htab) ...@@ -64,7 +64,7 @@ sclp_make_buffer(void *page, unsigned short columns, unsigned short htab)
memset(sccb, 0, sizeof(struct write_sccb)); memset(sccb, 0, sizeof(struct write_sccb));
sccb->header.length = sizeof(struct write_sccb); sccb->header.length = sizeof(struct write_sccb);
sccb->msg_buf.header.length = sizeof(struct msg_buf); sccb->msg_buf.header.length = sizeof(struct msg_buf);
sccb->msg_buf.header.type = EvTyp_Msg; sccb->msg_buf.header.type = EVTYP_MSG;
sccb->msg_buf.mdb.header.length = sizeof(struct mdb); sccb->msg_buf.mdb.header.length = sizeof(struct mdb);
sccb->msg_buf.mdb.header.type = 1; sccb->msg_buf.mdb.header.type = 1;
sccb->msg_buf.mdb.header.tag = 0xD4C4C240; /* ebcdic "MDB " */ sccb->msg_buf.mdb.header.tag = 0xD4C4C240; /* ebcdic "MDB " */
...@@ -114,7 +114,7 @@ sclp_initialize_mto(struct sclp_buffer *buffer, int max_len) ...@@ -114,7 +114,7 @@ sclp_initialize_mto(struct sclp_buffer *buffer, int max_len)
memset(mto, 0, sizeof(struct mto)); memset(mto, 0, sizeof(struct mto));
mto->length = sizeof(struct mto); mto->length = sizeof(struct mto);
mto->type = 4; /* message text object */ mto->type = 4; /* message text object */
mto->line_type_flags = LnTpFlgs_EndText; /* end text */ mto->line_type_flags = LNTPFLGS_ENDTEXT; /* end text */
/* set pointer to first byte after struct mto. */ /* set pointer to first byte after struct mto. */
buffer->current_line = (char *) (mto + 1); buffer->current_line = (char *) (mto + 1);
...@@ -215,7 +215,7 @@ sclp_write(struct sclp_buffer *buffer, const unsigned char *msg, int count) ...@@ -215,7 +215,7 @@ sclp_write(struct sclp_buffer *buffer, const unsigned char *msg, int count)
case '\a': /* bell, one for several times */ case '\a': /* bell, one for several times */
/* set SCLP sound alarm bit in General Object */ /* set SCLP sound alarm bit in General Object */
buffer->sccb->msg_buf.mdb.go.general_msg_flags |= buffer->sccb->msg_buf.mdb.go.general_msg_flags |=
GnrlMsgFlgs_SndAlrm; GNRLMSGFLGS_SNDALRM;
break; break;
case '\t': /* horizontal tabulator */ case '\t': /* horizontal tabulator */
/* check if new mto needs to be created */ /* check if new mto needs to be created */
...@@ -452,12 +452,12 @@ sclp_emit_buffer(struct sclp_buffer *buffer, ...@@ -452,12 +452,12 @@ sclp_emit_buffer(struct sclp_buffer *buffer,
return -EIO; return -EIO;
sccb = buffer->sccb; sccb = buffer->sccb;
if (sclp_rw_event.sclp_send_mask & EvTyp_Msg_Mask) if (sclp_rw_event.sclp_send_mask & EVTYP_MSG_MASK)
/* Use normal write message */ /* Use normal write message */
sccb->msg_buf.header.type = EvTyp_Msg; sccb->msg_buf.header.type = EVTYP_MSG;
else if (sclp_rw_event.sclp_send_mask & EvTyp_PMsgCmd_Mask) else if (sclp_rw_event.sclp_send_mask & EVTYP_PMSGCMD_MASK)
/* Use write priority message */ /* Use write priority message */
sccb->msg_buf.header.type = EvTyp_PMsgCmd; sccb->msg_buf.header.type = EVTYP_PMSGCMD;
else else
return -ENOSYS; return -ENOSYS;
buffer->request.command = SCLP_CMDW_WRITE_EVENT_DATA; buffer->request.command = SCLP_CMDW_WRITE_EVENT_DATA;
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
static struct debug_info *sdias_dbf; static struct debug_info *sdias_dbf;
static struct sclp_register sclp_sdias_register = { static struct sclp_register sclp_sdias_register = {
.send_mask = EvTyp_SDIAS_Mask, .send_mask = EVTYP_SDIAS_MASK,
}; };
struct sdias_evbuf { struct sdias_evbuf {
...@@ -118,7 +118,7 @@ int sclp_sdias_blk_count(void) ...@@ -118,7 +118,7 @@ int sclp_sdias_blk_count(void)
sccb.hdr.length = sizeof(sccb); sccb.hdr.length = sizeof(sccb);
sccb.evbuf.hdr.length = sizeof(struct sdias_evbuf); sccb.evbuf.hdr.length = sizeof(struct sdias_evbuf);
sccb.evbuf.hdr.type = EvTyp_SDIAS; sccb.evbuf.hdr.type = EVTYP_SDIAS;
sccb.evbuf.event_qual = EQ_SIZE; sccb.evbuf.event_qual = EQ_SIZE;
sccb.evbuf.data_id = DI_FCP_DUMP; sccb.evbuf.data_id = DI_FCP_DUMP;
sccb.evbuf.event_id = 4712; sccb.evbuf.event_id = 4712;
...@@ -177,7 +177,7 @@ int sclp_sdias_copy(void *dest, int start_blk, int nr_blks) ...@@ -177,7 +177,7 @@ int sclp_sdias_copy(void *dest, int start_blk, int nr_blks)
sccb.hdr.length = sizeof(sccb); sccb.hdr.length = sizeof(sccb);
sccb.evbuf.hdr.length = sizeof(struct sdias_evbuf); sccb.evbuf.hdr.length = sizeof(struct sdias_evbuf);
sccb.evbuf.hdr.type = EvTyp_SDIAS; sccb.evbuf.hdr.type = EVTYP_SDIAS;
sccb.evbuf.hdr.flags = 0; sccb.evbuf.hdr.flags = 0;
sccb.evbuf.event_qual = EQ_STORE_DATA; sccb.evbuf.event_qual = EQ_STORE_DATA;
sccb.evbuf.data_id = DI_FCP_DUMP; sccb.evbuf.data_id = DI_FCP_DUMP;
......
...@@ -648,7 +648,7 @@ sclp_eval_textcmd(struct gds_subvector *start, ...@@ -648,7 +648,7 @@ sclp_eval_textcmd(struct gds_subvector *start,
subvec = start; subvec = start;
while (subvec < end) { while (subvec < end) {
subvec = find_gds_subvector(subvec, end, subvec = find_gds_subvector(subvec, end,
GDS_KEY_SelfDefTextMsg); GDS_KEY_SELFDEFTEXTMSG);
if (!subvec) if (!subvec)
break; break;
sclp_eval_selfdeftextmsg((struct gds_subvector *)(subvec + 1), sclp_eval_selfdeftextmsg((struct gds_subvector *)(subvec + 1),
...@@ -664,7 +664,7 @@ sclp_eval_cpmsu(struct gds_vector *start, struct gds_vector *end) ...@@ -664,7 +664,7 @@ sclp_eval_cpmsu(struct gds_vector *start, struct gds_vector *end)
vec = start; vec = start;
while (vec < end) { while (vec < end) {
vec = find_gds_vector(vec, end, GDS_ID_TextCmd); vec = find_gds_vector(vec, end, GDS_ID_TEXTCMD);
if (!vec) if (!vec)
break; break;
sclp_eval_textcmd((struct gds_subvector *)(vec + 1), sclp_eval_textcmd((struct gds_subvector *)(vec + 1),
...@@ -703,7 +703,7 @@ sclp_tty_state_change(struct sclp_register *reg) ...@@ -703,7 +703,7 @@ sclp_tty_state_change(struct sclp_register *reg)
static struct sclp_register sclp_input_event = static struct sclp_register sclp_input_event =
{ {
.receive_mask = EvTyp_OpCmd_Mask | EvTyp_PMsgCmd_Mask, .receive_mask = EVTYP_OPCMD_MASK | EVTYP_PMSGCMD_MASK,
.state_change_fn = sclp_tty_state_change, .state_change_fn = sclp_tty_state_change,
.receiver_fn = sclp_tty_receiver .receiver_fn = sclp_tty_receiver
}; };
......
...@@ -99,8 +99,8 @@ static void sclp_vt220_emit_current(void); ...@@ -99,8 +99,8 @@ static void sclp_vt220_emit_current(void);
/* Registration structure for our interest in SCLP event buffers */ /* Registration structure for our interest in SCLP event buffers */
static struct sclp_register sclp_vt220_register = { static struct sclp_register sclp_vt220_register = {
.send_mask = EvTyp_VT220Msg_Mask, .send_mask = EVTYP_VT220MSG_MASK,
.receive_mask = EvTyp_VT220Msg_Mask, .receive_mask = EVTYP_VT220MSG_MASK,
.state_change_fn = NULL, .state_change_fn = NULL,
.receiver_fn = sclp_vt220_receiver_fn .receiver_fn = sclp_vt220_receiver_fn
}; };
...@@ -202,7 +202,7 @@ sclp_vt220_callback(struct sclp_req *request, void *data) ...@@ -202,7 +202,7 @@ sclp_vt220_callback(struct sclp_req *request, void *data)
static int static int
__sclp_vt220_emit(struct sclp_vt220_request *request) __sclp_vt220_emit(struct sclp_vt220_request *request)
{ {
if (!(sclp_vt220_register.sclp_send_mask & EvTyp_VT220Msg_Mask)) { if (!(sclp_vt220_register.sclp_send_mask & EVTYP_VT220MSG_MASK)) {
request->sclp_req.status = SCLP_REQ_FAILED; request->sclp_req.status = SCLP_REQ_FAILED;
return -EIO; return -EIO;
} }
...@@ -284,7 +284,7 @@ sclp_vt220_initialize_page(void *page) ...@@ -284,7 +284,7 @@ sclp_vt220_initialize_page(void *page)
sccb->header.length = sizeof(struct sclp_vt220_sccb); sccb->header.length = sizeof(struct sclp_vt220_sccb);
sccb->header.function_code = SCLP_NORMAL_WRITE; sccb->header.function_code = SCLP_NORMAL_WRITE;
sccb->header.response_code = 0x0000; sccb->header.response_code = 0x0000;
sccb->evbuf.type = EvTyp_VT220Msg; sccb->evbuf.type = EVTYP_VT220MSG;
sccb->evbuf.length = sizeof(struct evbuf_header); sccb->evbuf.length = sizeof(struct evbuf_header);
return request; return request;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment