make oldconfig will rebuild these...
[linux-2.4.21-pre4.git] / include / asm-ppc / types.h
1 /*
2  * BK Id: SCCS/s.types.h 1.12 10/22/01 10:27:38 paulus
3  */
4 #ifndef _PPC_TYPES_H
5 #define _PPC_TYPES_H
6
7 #ifndef __ASSEMBLY__
8
9 typedef __signed__ char __s8;
10 typedef unsigned char __u8;
11
12 typedef __signed__ short __s16;
13 typedef unsigned short __u16;
14
15 typedef __signed__ int __s32;
16 typedef unsigned int __u32;
17
18 #if defined(__GNUC__) && !defined(__STRICT_ANSI__)
19 typedef __signed__ long long __s64;
20 typedef unsigned long long __u64;
21 #endif
22
23 typedef struct {
24         __u32 u[4];
25 } __attribute((aligned(16))) __vector128;
26
27 #ifdef __KERNEL__
28 /*
29  * These aren't exported outside the kernel to avoid name space clashes
30  */
31 typedef signed char s8;
32 typedef unsigned char u8;
33
34 typedef signed short s16;
35 typedef unsigned short u16;
36
37 typedef signed int s32;
38 typedef unsigned int u32;
39
40 typedef signed long long s64;
41 typedef unsigned long long u64;
42
43 typedef __vector128 vector128;
44
45 #define BITS_PER_LONG 32
46
47 /* DMA addresses are 32-bits wide */
48 typedef u32 dma_addr_t;
49 typedef u64 dma64_addr_t;
50
51 #endif /* __KERNEL__ */
52
53 /*
54  * XXX allowed outside of __KERNEL__ for now, until glibc gets
55  * a proper set of asm headers of its own.  -- paulus
56  */
57 typedef unsigned short umode_t;
58
59 #endif /* __ASSEMBLY__ */
60
61 #endif