vtpm_proxy.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  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. #ifndef _UAPI_LINUX_VTPM_PROXY_H
  15. #define _UAPI_LINUX_VTPM_PROXY_H
  16. #include <linux/types.h>
  17. #include <linux/ioctl.h>
  18. /* ioctls */
  19. struct vtpm_proxy_new_dev {
  20. __u32 flags; /* input */
  21. __u32 tpm_num; /* output */
  22. __u32 fd; /* output */
  23. __u32 major; /* output */
  24. __u32 minor; /* output */
  25. };
  26. /* above flags */
  27. #define VTPM_PROXY_FLAG_TPM2 1 /* emulator is TPM 2 */
  28. #define VTPM_PROXY_IOC_NEW_DEV _IOWR(0xa1, 0x00, struct vtpm_proxy_new_dev)
  29. #endif /* _UAPI_LINUX_VTPM_PROXY_H */