1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 2 /* 3 * This file is never included by application software unless 4 * explicitly requested (e.g., via linux/types.h) in which case the 5 * application is Linux specific so (user-) name space pollution is 6 * not a major issue. However, for interoperability, libraries still 7 * need to be careful to avoid a name clashes. 8 */ 9 #ifndef _ASM_POWERPC_TYPES_H 10 #define _ASM_POWERPC_TYPES_H 11 12 #include <uapi/asm/types.h> 13 14 #ifdef __powerpc64__ 15 #if defined(_CALL_ELF) && _CALL_ELF == 2 16 #define PPC64_ELF_ABI_v2 17 #else 18 #define PPC64_ELF_ABI_v1 19 #endif 20 #endif /* __powerpc64__ */ 21 22 #ifndef __ASSEMBLY__ 23 24 typedef __vector128 vector128; 25 26 typedef struct { 27 unsigned long entry; 28 unsigned long toc; 29 unsigned long env; 30 } func_descr_t; 31 32 #endif /* __ASSEMBLY__ */ 33 34 #endif /* _ASM_POWERPC_TYPES_H */ 35