amd_hsmp.h 364 B

12345678910111213141516
  1. /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
  2. #ifndef _ASM_X86_AMD_HSMP_H_
  3. #define _ASM_X86_AMD_HSMP_H_
  4. #include <uapi/asm/amd_hsmp.h>
  5. #if IS_ENABLED(CONFIG_AMD_HSMP)
  6. int hsmp_send_message(struct hsmp_message *msg);
  7. #else
  8. static inline int hsmp_send_message(struct hsmp_message *msg)
  9. {
  10. return -ENODEV;
  11. }
  12. #endif
  13. #endif /*_ASM_X86_AMD_HSMP_H_*/