Merge remote-tracking branch 'regmap/fix/cache' into regmap-linus
[deliverable/linux.git] / include / uapi / linux / vtpm_proxy.h
1 /*
2 * Definitions for the VTPM proxy driver
3 * Copyright (c) 2015, 2016, IBM Corporation
4 *
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms and conditions of the GNU General Public License,
7 * version 2, as published by the Free Software Foundation.
8 *
9 * This program is distributed in the hope it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
12 * more details.
13 */
14
15 #ifndef _UAPI_LINUX_VTPM_PROXY_H
16 #define _UAPI_LINUX_VTPM_PROXY_H
17
18 #include <linux/types.h>
19 #include <linux/ioctl.h>
20
21 /* ioctls */
22
23 struct vtpm_proxy_new_dev {
24 __u32 flags; /* input */
25 __u32 tpm_num; /* output */
26 __u32 fd; /* output */
27 __u32 major; /* output */
28 __u32 minor; /* output */
29 };
30
31 /* above flags */
32 #define VTPM_PROXY_FLAG_TPM2 1 /* emulator is TPM 2 */
33
34 #define VTPM_PROXY_IOC_NEW_DEV _IOWR(0xa1, 0x00, struct vtpm_proxy_new_dev)
35
36 #endif /* _UAPI_LINUX_VTPM_PROXY_H */
This page took 0.049404 seconds and 5 git commands to generate.