/* SENSE Medium: Get Sense data about medium state  */
static int tape_3590_sense_medium(struct tape_device *device)
/* SENSE Medium: Get Sense data about medium state  */
static int tape_3590_sense_medium(struct tape_device *device)
{
	struct tape_request *request;
	request = tape_alloc_request(1, 128);
	if (IS_ERR(request))
		return PTR_ERR(request);
	request->op = TO_MSEN;
	tape_ccw_end(request->cpaddr, MEDIUM_SENSE, 128, request->cpdata);
	return tape_do_io_free(device, request);
}