diff options
author | Becky Bruce <bgill@freescale.com> | 2005-10-19 19:45:03 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2005-10-20 02:22:50 -0400 |
commit | 971dc77b64db9466f5caab56019e62a93c0ddfc5 (patch) | |
tree | 73d153e439d7b205de5eee1c90783af8fcb5f233 /include/asm-ppc64 | |
parent | f7f6f4fea68d9981d65f99a589ad85f510924d99 (diff) |
[PATCH] powerpc: Merge types.h
This patch merges types.h into include/asm-powerpc. The only real change is
the removal of the include of linux/config.h from the 32-bit version - it
doesn't appear to be necessary.
This patch has been built on several different 32 and 64-bit platforms,
and booted on mpc8540_ads.
Signed-off-by: Becky Bruce <becky.bruce@freescale.com>
Signed-off-by: Kumar Gala <kumar.gala@freescale.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'include/asm-ppc64')
-rw-r--r-- | include/asm-ppc64/types.h | 79 |
1 files changed, 0 insertions, 79 deletions
diff --git a/include/asm-ppc64/types.h b/include/asm-ppc64/types.h deleted file mode 100644 index bf294c1761b2..000000000000 --- a/include/asm-ppc64/types.h +++ /dev/null | |||
@@ -1,79 +0,0 @@ | |||
1 | #ifndef _PPC64_TYPES_H | ||
2 | #define _PPC64_TYPES_H | ||
3 | |||
4 | #ifndef __ASSEMBLY__ | ||
5 | |||
6 | /* | ||
7 | * This file is never included by application software unless | ||
8 | * explicitly requested (e.g., via linux/types.h) in which case the | ||
9 | * application is Linux specific so (user-) name space pollution is | ||
10 | * not a major issue. However, for interoperability, libraries still | ||
11 | * need to be careful to avoid a name clashes. | ||
12 | * | ||
13 | * This program is free software; you can redistribute it and/or | ||
14 | * modify it under the terms of the GNU General Public License | ||
15 | * as published by the Free Software Foundation; either version | ||
16 | * 2 of the License, or (at your option) any later version. | ||
17 | */ | ||
18 | |||
19 | typedef unsigned int umode_t; | ||
20 | |||
21 | /* | ||
22 | * __xx is ok: it doesn't pollute the POSIX namespace. Use these in the | ||
23 | * header files exported to user space | ||
24 | */ | ||
25 | |||
26 | typedef __signed__ char __s8; | ||
27 | typedef unsigned char __u8; | ||
28 | |||
29 | typedef __signed__ short __s16; | ||
30 | typedef unsigned short __u16; | ||
31 | |||
32 | typedef __signed__ int __s32; | ||
33 | typedef unsigned int __u32; | ||
34 | |||
35 | typedef __signed__ long __s64; | ||
36 | typedef unsigned long __u64; | ||
37 | |||
38 | typedef struct { | ||
39 | __u32 u[4]; | ||
40 | } __attribute((aligned(16))) __vector128; | ||
41 | |||
42 | #endif /* __ASSEMBLY__ */ | ||
43 | |||
44 | #ifdef __KERNEL__ | ||
45 | /* | ||
46 | * These aren't exported outside the kernel to avoid name space clashes | ||
47 | */ | ||
48 | #define BITS_PER_LONG 64 | ||
49 | |||
50 | #ifndef __ASSEMBLY__ | ||
51 | |||
52 | typedef signed char s8; | ||
53 | typedef unsigned char u8; | ||
54 | |||
55 | typedef signed short s16; | ||
56 | typedef unsigned short u16; | ||
57 | |||
58 | typedef signed int s32; | ||
59 | typedef unsigned int u32; | ||
60 | |||
61 | typedef signed long s64; | ||
62 | typedef unsigned long u64; | ||
63 | |||
64 | typedef __vector128 vector128; | ||
65 | |||
66 | typedef u32 dma_addr_t; | ||
67 | typedef u64 dma64_addr_t; | ||
68 | |||
69 | typedef struct { | ||
70 | unsigned long entry; | ||
71 | unsigned long toc; | ||
72 | unsigned long env; | ||
73 | } func_descr_t; | ||
74 | |||
75 | #endif /* __ASSEMBLY__ */ | ||
76 | |||
77 | #endif /* __KERNEL__ */ | ||
78 | |||
79 | #endif /* _PPC64_TYPES_H */ | ||