1 /* SPDX-License-Identifier: GPL-2.0 */
5 * Copyright 2019, IBM Corporation.
8 #ifndef _ASM_POWERPC_ULTRAVISOR_API_H
9 #define _ASM_POWERPC_ULTRAVISOR_API_H
11 #include <asm/hvcall.h>
15 #define U_FUNCTION H_FUNCTION
16 #define U_NOT_AVAILABLE H_NOT_AVAILABLE
21 #define U_PARAMETER H_PARAMETER
22 #define U_PERMISSION H_PERMISSION
23 #define U_SUCCESS H_SUCCESS
26 #define UV_WRITE_PATE 0xF104
27 #define UV_RETURN 0xF11C
29 #define UV_REGISTER_MEM_SLOT 0xF120
30 #define UV_UNREGISTER_MEM_SLOT 0xF124
31 #define UV_PAGE_IN 0xF128
32 #define UV_PAGE_OUT 0xF12C
33 #define UV_SHARE_PAGE 0xF130
34 #define UV_UNSHARE_PAGE 0xF134
35 #define UV_UNSHARE_ALL_PAGES 0xF140
36 #define UV_PAGE_INVAL 0xF138
37 #define UV_SVM_TERMINATE 0xF13C
39 #endif /* _ASM_POWERPC_ULTRAVISOR_API_H */