/* Emit vt220 request buffer to SCLP. Return zero on success, non-zero otherwise.  */
static int __sclp_vt220_emit(struct sclp_vt220_request *request)
/* Emit vt220 request buffer to SCLP. Return zero on success, non-zero otherwise.  */
static int __sclp_vt220_emit(struct sclp_vt220_request *request)
{
	if (!(sclp_vt220_register.sclp_receive_mask & EVTYP_VT220MSG_MASK)) {
		request->sclp_req.status = SCLP_REQ_FAILED;
		return -EIO;
	}
	request->sclp_req.command = SCLP_CMDW_WRITE_EVENT_DATA;
	request->sclp_req.status = SCLP_REQ_FILLED;
	request->sclp_req.callback = sclp_vt220_callback;
	request->sclp_req.callback_data = (void *) request;
	return sclp_add_request(&request->sclp_req);
}