ia64/xen-unstable

view old/xenolinux-2.4.16-sparse/include/asm-xeno/types.h @ 235:d7d0a23b2e07

bitkeeper revision 1.93 (3e5a4e6bkPheUp3x1uufN2MS3LAB7A)

Latest and Greatest version of XenoLinux based on the Linux-2.4.21-pre4
kernel.
author iap10@labyrinth.cl.cam.ac.uk
date Mon Feb 24 16:55:07 2003 +0000 (2003-02-24)
parents
children
line source
1 #ifndef _I386_TYPES_H
2 #define _I386_TYPES_H
4 typedef unsigned short umode_t;
6 /*
7 * __xx is ok: it doesn't pollute the POSIX namespace. Use these in the
8 * header files exported to user space
9 */
11 typedef __signed__ char __s8;
12 typedef unsigned char __u8;
14 typedef __signed__ short __s16;
15 typedef unsigned short __u16;
17 typedef __signed__ int __s32;
18 typedef unsigned int __u32;
20 #if defined(__GNUC__) && !defined(__STRICT_ANSI__)
21 typedef __signed__ long long __s64;
22 typedef unsigned long long __u64;
23 #endif
25 /*
26 * These aren't exported outside the kernel to avoid name space clashes
27 */
28 #ifdef __KERNEL__
30 #include <linux/config.h>
32 typedef signed char s8;
33 typedef unsigned char u8;
35 typedef signed short s16;
36 typedef unsigned short u16;
38 typedef signed int s32;
39 typedef unsigned int u32;
41 typedef signed long long s64;
42 typedef unsigned long long u64;
44 #define BITS_PER_LONG 32
46 /* DMA addresses come in generic and 64-bit flavours. */
48 #ifdef CONFIG_HIGHMEM
49 typedef u64 dma_addr_t;
50 #else
51 typedef u32 dma_addr_t;
52 #endif
53 typedef u64 dma64_addr_t;
55 #endif /* __KERNEL__ */
57 #endif