1 /* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */ 2 /* 3 * Copyright 2019 IBM Corp. 4 */ 5 6 #ifndef _UAPI_MISC_VAS_H 7 #define _UAPI_MISC_VAS_H 8 9 #include <linux/types.h> 10 11 #include <asm/ioctl.h> 12 13 #define VAS_MAGIC 'v' 14 #define VAS_TX_WIN_OPEN _IOW(VAS_MAGIC, 0x20, struct vas_tx_win_open_attr) 15 16 /* Flags to VAS TX open window ioctl */ 17 /* To allocate a window with QoS credit, otherwise use default credit */ 18 #define VAS_TX_WIN_FLAG_QOS_CREDIT 0x0000000000000001 19 20 struct vas_tx_win_open_attr { 21 __u32 version; 22 __s16 vas_id; /* specific instance of vas or -1 for default */ 23 __u16 reserved1; 24 __u64 flags; 25 __u64 reserved2[6]; 26 }; 27 28 #endif /* _UAPI_MISC_VAS_H */ 29