xref: /linux/arch/powerpc/include/uapi/asm/types.h (revision 6ed7ffddcf61f668114edb676417e5fb33773b59)
1 /*
2  * This file is never included by application software unless
3  * explicitly requested (e.g., via linux/types.h) in which case the
4  * application is Linux specific so (user-) name space pollution is
5  * not a major issue.  However, for interoperability, libraries still
6  * need to be careful to avoid a name clashes.
7  *
8  * This program is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU General Public License
10  * as published by the Free Software Foundation; either version
11  * 2 of the License, or (at your option) any later version.
12  */
13 #ifndef _UAPI_ASM_POWERPC_TYPES_H
14 #define _UAPI_ASM_POWERPC_TYPES_H
15 
16 /*
17  * This is here because we used to use l64 for 64bit powerpc
18  * and we don't want to impact user mode with our change to ll64
19  * in the kernel.
20  *
21  * However, some user programs are fine with this.  They can
22  * flag __SANE_USERSPACE_TYPES__ to get int-ll64.h here.
23  */
24 #if !defined(__SANE_USERSPACE_TYPES__) && defined(__powerpc64__) && !defined(__KERNEL__)
25 # include <asm-generic/int-l64.h>
26 #else
27 # include <asm-generic/int-ll64.h>
28 #endif
29 
30 #ifndef __ASSEMBLY__
31 
32 
33 typedef struct {
34 	__u32 u[4];
35 } __attribute__((aligned(16))) __vector128;
36 
37 #endif /* __ASSEMBLY__ */
38 
39 
40 #endif /* _UAPI_ASM_POWERPC_TYPES_H */
41