blob: 6121c86a62bafc4a56be93315664561e9de21408 [file] [log] [blame]
Elliott Hughes180edef2023-11-02 00:08:05 +00001/*
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 */
Christopher Ferris49f525c2016-12-12 14:55:36 -08007#ifndef _UAPI_LINUX_VTPM_PROXY_H
8#define _UAPI_LINUX_VTPM_PROXY_H
Elliott Hughes8cb52b02013-11-21 13:43:23 -08009#include <linux/types.h>
Christopher Ferris49f525c2016-12-12 14:55:36 -080010#include <linux/ioctl.h>
Christopher Ferris48af7cb2017-02-21 12:35:09 -080011enum vtpm_proxy_flags {
12 VTPM_PROXY_FLAG_TPM2 = 1,
13};
Christopher Ferris49f525c2016-12-12 14:55:36 -080014struct vtpm_proxy_new_dev {
15 __u32 flags;
16 __u32 tpm_num;
17 __u32 fd;
Christopher Ferris49f525c2016-12-12 14:55:36 -080018 __u32 major;
19 __u32 minor;
Elliott Hughes8cb52b02013-11-21 13:43:23 -080020};
Christopher Ferris49f525c2016-12-12 14:55:36 -080021#define VTPM_PROXY_IOC_NEW_DEV _IOWR(0xa1, 0x00, struct vtpm_proxy_new_dev)
Christopher Ferris1308ad32017-11-14 17:32:13 -080022#define TPM2_CC_SET_LOCALITY 0x20001000
23#define TPM_ORD_SET_LOCALITY 0x20001000
Elliott Hughes8cb52b02013-11-21 13:43:23 -080024#endif