1 /* 2 * This file is auto-generated. Modifications will be lost. 3 * 4 * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/ 5 * for more information. 6 */ 7 #ifndef _UAPI_LINUX_VTPM_PROXY_H 8 #define _UAPI_LINUX_VTPM_PROXY_H 9 #include <linux/types.h> 10 #include <linux/ioctl.h> 11 enum vtpm_proxy_flags { 12 VTPM_PROXY_FLAG_TPM2 = 1, 13 }; 14 struct vtpm_proxy_new_dev { 15 __u32 flags; 16 __u32 tpm_num; 17 __u32 fd; 18 __u32 major; 19 __u32 minor; 20 }; 21 #define VTPM_PROXY_IOC_NEW_DEV _IOWR(0xa1, 0x00, struct vtpm_proxy_new_dev) 22 #define TPM2_CC_SET_LOCALITY 0x20001000 23 #define TPM_ORD_SET_LOCALITY 0x20001000 24 #endif 25