/* Set up a read request that reads up to 160 byte from the 3215 device. If there is a queued read request it is used, but that shouldn't happen because a 3215 terminal won't accept a new read before the old one is completed.  */
static void raw3215_mk_read_req(struct raw3215_info *raw)
/* Set up a read request that reads up to 160 byte from the 3215 device. If there is a queued read request it is used, but that shouldn't happen because a 3215 terminal won't accept a new read before the old one is completed.  */
static void raw3215_mk_read_req(struct raw3215_info *raw)
{
	struct raw3215_req *req;
	struct ccw1 *ccw;
	req = raw->queued_read;
	if (req == NULL) {
		req = raw3215_alloc_req();
		req->type = RAW3215_READ;
		req->info = raw;
		raw->queued_read = req;
	}
	ccw = req->ccws;
	ccw->cmd_code = 0x0A;
	ccw->flags = 0x20;
	ccw->count = 160;
	ccw->cda = (__u32) __pa(raw->inbuf);
}