1 /* SPDX-License-Identifier: GPL-2.0+ WITH Linu 1 /* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */ 2 #ifndef _UAPIUUACCE_H 2 #ifndef _UAPIUUACCE_H 3 #define _UAPIUUACCE_H 3 #define _UAPIUUACCE_H 4 4 5 #include <linux/types.h> 5 #include <linux/types.h> 6 #include <linux/ioctl.h> 6 #include <linux/ioctl.h> 7 7 8 /* 8 /* 9 * UACCE_CMD_START_Q: Start queue 9 * UACCE_CMD_START_Q: Start queue 10 */ 10 */ 11 #define UACCE_CMD_START_Q _IO('W', 0) 11 #define UACCE_CMD_START_Q _IO('W', 0) 12 12 13 /* 13 /* 14 * UACCE_CMD_PUT_Q: 14 * UACCE_CMD_PUT_Q: 15 * User actively stop queue and free queue res 15 * User actively stop queue and free queue resource immediately 16 * Optimization method since close fd may dela 16 * Optimization method since close fd may delay 17 */ 17 */ 18 #define UACCE_CMD_PUT_Q _IO('W', 1) 18 #define UACCE_CMD_PUT_Q _IO('W', 1) 19 19 20 /* 20 /* 21 * UACCE Device flags: 21 * UACCE Device flags: 22 * UACCE_DEV_SVA: Shared Virtual Addresses 22 * UACCE_DEV_SVA: Shared Virtual Addresses 23 * Support PASID 23 * Support PASID 24 * Support device page faults ( 24 * Support device page faults (PCI PRI or SMMU Stall) 25 */ 25 */ 26 #define UACCE_DEV_SVA BIT(0) 26 #define UACCE_DEV_SVA BIT(0) 27 27 28 /** 28 /** 29 * enum uacce_qfrt: queue file region type 29 * enum uacce_qfrt: queue file region type 30 * @UACCE_QFRT_MMIO: device mmio region 30 * @UACCE_QFRT_MMIO: device mmio region 31 * @UACCE_QFRT_DUS: device user share region 31 * @UACCE_QFRT_DUS: device user share region 32 */ 32 */ 33 enum uacce_qfrt { 33 enum uacce_qfrt { 34 UACCE_QFRT_MMIO = 0, 34 UACCE_QFRT_MMIO = 0, 35 UACCE_QFRT_DUS = 1, 35 UACCE_QFRT_DUS = 1, 36 }; 36 }; 37 37 38 #endif 38 #endif 39 39
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.