diff options
author | David Howells <dhowells@redhat.com> | 2012-10-09 04:47:26 -0400 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2012-10-09 04:47:26 -0400 |
commit | c3617f72036c909e1f6086b5b9e364e0ef90a6da (patch) | |
tree | 0c70e14cd6b42bc832f49f33f068e3f81b565cda /arch/powerpc/include/uapi/asm/types.h | |
parent | 9e2d8656f5e8aa214e66b462680cf86b210b74a8 (diff) |
UAPI: (Scripted) Disintegrate arch/powerpc/include/asm
Signed-off-by: David Howells <dhowells@redhat.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Michael Kerrisk <mtk.manpages@gmail.com>
Acked-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Acked-by: Dave Jones <davej@redhat.com>
Diffstat (limited to 'arch/powerpc/include/uapi/asm/types.h')
-rw-r--r-- | arch/powerpc/include/uapi/asm/types.h | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/arch/powerpc/include/uapi/asm/types.h b/arch/powerpc/include/uapi/asm/types.h new file mode 100644 index 00000000000..4b8ab990a3c --- /dev/null +++ b/arch/powerpc/include/uapi/asm/types.h | |||
@@ -0,0 +1,40 @@ | |||
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 */ | ||