![]() |
|
|||
0001 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 0002 /* 0003 * Definitions for the VTPM proxy driver 0004 * Copyright (c) 2015, 2016, IBM Corporation 0005 * Copyright (C) 2016 Intel Corporation 0006 * 0007 * This program is free software; you can redistribute it and/or modify it 0008 * under the terms and conditions of the GNU General Public License, 0009 * version 2, as published by the Free Software Foundation. 0010 * 0011 * This program is distributed in the hope it will be useful, but WITHOUT 0012 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 0013 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 0014 * more details. 0015 */ 0016 0017 #ifndef _UAPI_LINUX_VTPM_PROXY_H 0018 #define _UAPI_LINUX_VTPM_PROXY_H 0019 0020 #include <linux/types.h> 0021 #include <linux/ioctl.h> 0022 0023 /** 0024 * enum vtpm_proxy_flags - flags for the proxy TPM 0025 * @VTPM_PROXY_FLAG_TPM2: the proxy TPM uses TPM 2.0 protocol 0026 */ 0027 enum vtpm_proxy_flags { 0028 VTPM_PROXY_FLAG_TPM2 = 1, 0029 }; 0030 0031 /** 0032 * struct vtpm_proxy_new_dev - parameter structure for the 0033 * %VTPM_PROXY_IOC_NEW_DEV ioctl 0034 * @flags: flags for the proxy TPM 0035 * @tpm_num: index of the TPM device 0036 * @fd: the file descriptor used by the proxy TPM 0037 * @major: the major number of the TPM device 0038 * @minor: the minor number of the TPM device 0039 */ 0040 struct vtpm_proxy_new_dev { 0041 __u32 flags; /* input */ 0042 __u32 tpm_num; /* output */ 0043 __u32 fd; /* output */ 0044 __u32 major; /* output */ 0045 __u32 minor; /* output */ 0046 }; 0047 0048 #define VTPM_PROXY_IOC_NEW_DEV _IOWR(0xa1, 0x00, struct vtpm_proxy_new_dev) 0049 0050 /* vendor specific commands to set locality */ 0051 #define TPM2_CC_SET_LOCALITY 0x20001000 0052 #define TPM_ORD_SET_LOCALITY 0x20001000 0053 0054 #endif /* _UAPI_LINUX_VTPM_PROXY_H */
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.1.0 LXR engine. The LXR team |
![]() ![]() |