1 #ifndef _ASM_POWERPC_TYPES_H
2 #define _ASM_POWERPC_TYPES_H
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.
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.
20 typedef unsigned int umode_t;
22 typedef unsigned short umode_t;
26 * __xx is ok: it doesn't pollute the POSIX namespace. Use these in the
27 * header files exported to user space
30 typedef __signed__ char __s8;
31 typedef unsigned char __u8;
33 typedef __signed__ short __s16;
34 typedef unsigned short __u16;
36 typedef __signed__ int __s32;
37 typedef unsigned int __u32;
40 typedef __signed__ long __s64;
41 typedef unsigned long __u64;
43 #if defined(__GNUC__) && !defined(__STRICT_ANSI__)
44 typedef __signed__ long long __s64;
45 typedef unsigned long long __u64;
47 #endif /* __powerpc64__ */
51 } __attribute((aligned(16))) __vector128;
53 #endif /* __ASSEMBLY__ */
57 * These aren't exported outside the kernel to avoid name space clashes
60 #define BITS_PER_LONG 64
62 #define BITS_PER_LONG 32
67 #include <linux/config.h>
69 typedef signed char s8;
70 typedef unsigned char u8;
72 typedef signed short s16;
73 typedef unsigned short u16;
75 typedef signed int s32;
76 typedef unsigned int u32;
79 typedef signed long s64;
80 typedef unsigned long u64;
82 typedef signed long long s64;
83 typedef unsigned long long u64;
86 typedef __vector128 vector128;
89 typedef u64 dma_addr_t;
91 typedef u32 dma_addr_t;
93 typedef u64 dma64_addr_t;
102 typedef u64 sector_t;
103 #define HAVE_SECTOR_T
106 #endif /* __ASSEMBLY__ */
108 #endif /* __KERNEL__ */
110 #endif /* _ASM_POWERPC_TYPES_H */