1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Copyright(c) 2016-20 Intel Corporation.
11 #define PAGE_SIZE 4096
12 #define PAGE_MASK (~(PAGE_SIZE - 1))
14 #define __aligned(x) __attribute__((__aligned__(x)))
15 #define __packed __attribute__((packed))
17 #include "../../../../arch/x86/include/asm/sgx.h"
18 #include "../../../../arch/x86/include/asm/enclu.h"
19 #include "../../../../arch/x86/include/uapi/asm/sgx.h"
22 ENCL_OP_PUT_TO_BUFFER,
23 ENCL_OP_GET_FROM_BUFFER,
24 ENCL_OP_PUT_TO_ADDRESS,
25 ENCL_OP_GET_FROM_ADDRESS,
29 ENCL_OP_INIT_TCS_PAGE,
33 struct encl_op_header {
37 struct encl_op_put_to_buf {
38 struct encl_op_header header;
42 struct encl_op_get_from_buf {
43 struct encl_op_header header;
47 struct encl_op_put_to_addr {
48 struct encl_op_header header;
53 struct encl_op_get_from_addr {
54 struct encl_op_header header;
59 struct encl_op_eaccept {
60 struct encl_op_header header;
66 struct encl_op_emodpe {
67 struct encl_op_header header;
72 struct encl_op_init_tcs_page {
73 struct encl_op_header header;
79 #endif /* DEFINES_H */