vmur.h (664b0bae0b87f69bc9deb098f5e0158b9cf18e04) vmur.h (bf18140d30541c2c1e5c0f57879634f3d0d04912)
1/* SPDX-License-Identifier: GPL-2.0 */
2/*
3 * Linux driver for System z and s390 unit record devices
4 * (z/VM virtual punch, reader, printer)
5 *
6 * Copyright IBM Corp. 2001, 2007
7 * Authors: Malcolm Beattie <beattiem@uk.ibm.com>
8 * Michael Holzheu <holzheu@de.ibm.com>
9 * Frank Munzert <munzert@de.ibm.com>
10 */
11
12#ifndef _VMUR_H_
13#define _VMUR_H_
14
15#include <linux/refcount.h>
1/* SPDX-License-Identifier: GPL-2.0 */
2/*
3 * Linux driver for System z and s390 unit record devices
4 * (z/VM virtual punch, reader, printer)
5 *
6 * Copyright IBM Corp. 2001, 2007
7 * Authors: Malcolm Beattie <beattiem@uk.ibm.com>
8 * Michael Holzheu <holzheu@de.ibm.com>
9 * Frank Munzert <munzert@de.ibm.com>
10 */
11
12#ifndef _VMUR_H_
13#define _VMUR_H_
14
15#include <linux/refcount.h>
16#include <linux/workqueue.h>
16
17#define DEV_CLASS_UR_I 0x20 /* diag210 unit record input device class */
18#define DEV_CLASS_UR_O 0x10 /* diag210 unit record output device class */
19/*
20 * we only support z/VM's default unit record devices:
21 * both in SPOOL directory control statement and in CP DEFINE statement
22 * RDR defaults to 2540 reader
23 * PUN defaults to 2540 punch

--- 47 unchanged lines hidden (view full) ---

71 struct ccw_dev_id dev_id; /* device id */
72 size_t reclen; /* Record length for *write* CCWs */
73 int class; /* VM device class */
74 int io_request_rc; /* return code from I/O request */
75 refcount_t ref_count; /* reference counter */
76 wait_queue_head_t wait; /* wait queue to serialize open */
77 int open_flag; /* "urdev is open" flag */
78 spinlock_t open_lock; /* serialize critical sections */
17
18#define DEV_CLASS_UR_I 0x20 /* diag210 unit record input device class */
19#define DEV_CLASS_UR_O 0x10 /* diag210 unit record output device class */
20/*
21 * we only support z/VM's default unit record devices:
22 * both in SPOOL directory control statement and in CP DEFINE statement
23 * RDR defaults to 2540 reader
24 * PUN defaults to 2540 punch

--- 47 unchanged lines hidden (view full) ---

72 struct ccw_dev_id dev_id; /* device id */
73 size_t reclen; /* Record length for *write* CCWs */
74 int class; /* VM device class */
75 int io_request_rc; /* return code from I/O request */
76 refcount_t ref_count; /* reference counter */
77 wait_queue_head_t wait; /* wait queue to serialize open */
78 int open_flag; /* "urdev is open" flag */
79 spinlock_t open_lock; /* serialize critical sections */
80 struct work_struct uevent_work; /* work to send uevent */
79};
80
81/*
82 * A struct urfile is allocated at open() time for each device and
83 * freed on release().
84 */
85struct urfile {
86 struct urdev *urd;

--- 27 unchanged lines hidden ---
81};
82
83/*
84 * A struct urfile is allocated at open() time for each device and
85 * freed on release().
86 */
87struct urfile {
88 struct urdev *urd;

--- 27 unchanged lines hidden ---