xref: /openbmc/linux/arch/s390/include/uapi/asm/fs3270.h (revision 61f37f63)
1*61f37f63SSven Schnelle /* SPDX-License-Identifier:  GPL-2.0 WITH Linux-syscall-note */
2*61f37f63SSven Schnelle #ifndef __ASM_S390_UAPI_FS3270_H
3*61f37f63SSven Schnelle #define __ASM_S390_UAPI_FS3270_H
4*61f37f63SSven Schnelle 
5*61f37f63SSven Schnelle #include <linux/types.h>
6*61f37f63SSven Schnelle #include <asm/ioctl.h>
7*61f37f63SSven Schnelle 
8*61f37f63SSven Schnelle /* ioctls for fullscreen 3270 */
9*61f37f63SSven Schnelle #define TUBICMD		_IO('3', 3)	/* set ccw command for fs reads. */
10*61f37f63SSven Schnelle #define TUBOCMD		_IO('3', 4)	/* set ccw command for fs writes. */
11*61f37f63SSven Schnelle #define TUBGETI		_IO('3', 7)	/* get ccw command for fs reads. */
12*61f37f63SSven Schnelle #define TUBGETO		_IO('3', 8)	/* get ccw command for fs writes. */
13*61f37f63SSven Schnelle #define TUBGETMOD	_IO('3', 13)	/* get characteristics like model, cols, rows */
14*61f37f63SSven Schnelle 
15*61f37f63SSven Schnelle /* For TUBGETMOD */
16*61f37f63SSven Schnelle struct raw3270_iocb {
17*61f37f63SSven Schnelle 	__u16 model;
18*61f37f63SSven Schnelle 	__u16 line_cnt;
19*61f37f63SSven Schnelle 	__u16 col_cnt;
20*61f37f63SSven Schnelle 	__u16 pf_cnt;
21*61f37f63SSven Schnelle 	__u16 re_cnt;
22*61f37f63SSven Schnelle 	__u16 map;
23*61f37f63SSven Schnelle };
24*61f37f63SSven Schnelle 
25*61f37f63SSven Schnelle #endif /* __ASM_S390_UAPI_FS3270_H */
26