2019-05-27 06:55:01 +00:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
2005-04-16 22:20:36 +00:00
|
|
|
/*
|
|
|
|
* This file is never included by application software unless
|
|
|
|
* explicitly requested (e.g., via linux/types.h) in which case the
|
|
|
|
* application is Linux specific so (user-) name space pollution is
|
|
|
|
* not a major issue. However, for interoperability, libraries still
|
|
|
|
* need to be careful to avoid a name clashes.
|
|
|
|
*/
|
2012-10-09 08:47:26 +00:00
|
|
|
#ifndef _ASM_POWERPC_TYPES_H
|
|
|
|
#define _ASM_POWERPC_TYPES_H
|
2005-04-16 22:20:36 +00:00
|
|
|
|
2012-10-09 08:47:26 +00:00
|
|
|
#include <uapi/asm/types.h>
|
2005-04-16 22:20:36 +00:00
|
|
|
|
2016-06-06 16:56:10 +00:00
|
|
|
#ifdef __powerpc64__
|
|
|
|
#if defined(_CALL_ELF) && _CALL_ELF == 2
|
|
|
|
#define PPC64_ELF_ABI_v2
|
|
|
|
#else
|
|
|
|
#define PPC64_ELF_ABI_v1
|
|
|
|
#endif
|
|
|
|
#endif /* __powerpc64__ */
|
|
|
|
|
2005-04-16 22:20:36 +00:00
|
|
|
#ifndef __ASSEMBLY__
|
|
|
|
|
|
|
|
typedef __vector128 vector128;
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
unsigned long entry;
|
|
|
|
unsigned long toc;
|
|
|
|
unsigned long env;
|
|
|
|
} func_descr_t;
|
|
|
|
|
|
|
|
#endif /* __ASSEMBLY__ */
|
|
|
|
|
2005-10-19 23:45:03 +00:00
|
|
|
#endif /* _ASM_POWERPC_TYPES_H */
|