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))
16 #define __used __attribute__((used))
17 #define __section(x)__attribute__((__section__(x)))
19 #include "../../../../arch/x86/include/asm/sgx.h"
20 #include "../../../../arch/x86/include/asm/enclu.h"
21 #include "../../../../arch/x86/include/uapi/asm/sgx.h"
24 ENCL_OP_PUT_TO_BUFFER
,
25 ENCL_OP_GET_FROM_BUFFER
,
26 ENCL_OP_PUT_TO_ADDRESS
,
27 ENCL_OP_GET_FROM_ADDRESS
,
31 ENCL_OP_INIT_TCS_PAGE
,
35 struct encl_op_header
{
39 struct encl_op_put_to_buf
{
40 struct encl_op_header header
;
44 struct encl_op_get_from_buf
{
45 struct encl_op_header header
;
49 struct encl_op_put_to_addr
{
50 struct encl_op_header header
;
55 struct encl_op_get_from_addr
{
56 struct encl_op_header header
;
61 struct encl_op_eaccept
{
62 struct encl_op_header header
;
68 struct encl_op_emodpe
{
69 struct encl_op_header header
;
74 struct encl_op_init_tcs_page
{
75 struct encl_op_header header
;
81 #endif /* DEFINES_H */