162306a36Sopenharmony_ci/* SPDX-License-Identifier:  GPL-2.0 WITH Linux-syscall-note */
262306a36Sopenharmony_ci#ifndef __ASM_S390_UAPI_FS3270_H
362306a36Sopenharmony_ci#define __ASM_S390_UAPI_FS3270_H
462306a36Sopenharmony_ci
562306a36Sopenharmony_ci#include <linux/types.h>
662306a36Sopenharmony_ci#include <asm/ioctl.h>
762306a36Sopenharmony_ci
862306a36Sopenharmony_ci/* ioctls for fullscreen 3270 */
962306a36Sopenharmony_ci#define TUBICMD		_IO('3', 3)	/* set ccw command for fs reads. */
1062306a36Sopenharmony_ci#define TUBOCMD		_IO('3', 4)	/* set ccw command for fs writes. */
1162306a36Sopenharmony_ci#define TUBGETI		_IO('3', 7)	/* get ccw command for fs reads. */
1262306a36Sopenharmony_ci#define TUBGETO		_IO('3', 8)	/* get ccw command for fs writes. */
1362306a36Sopenharmony_ci#define TUBGETMOD	_IO('3', 13)	/* get characteristics like model, cols, rows */
1462306a36Sopenharmony_ci
1562306a36Sopenharmony_ci/* For TUBGETMOD */
1662306a36Sopenharmony_cistruct raw3270_iocb {
1762306a36Sopenharmony_ci	__u16 model;
1862306a36Sopenharmony_ci	__u16 line_cnt;
1962306a36Sopenharmony_ci	__u16 col_cnt;
2062306a36Sopenharmony_ci	__u16 pf_cnt;
2162306a36Sopenharmony_ci	__u16 re_cnt;
2262306a36Sopenharmony_ci	__u16 map;
2362306a36Sopenharmony_ci};
2462306a36Sopenharmony_ci
2562306a36Sopenharmony_ci#endif /* __ASM_S390_UAPI_FS3270_H */
26