2 * (C) Copyright 2011, Julius Baxter <julius@opencores.org>
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License as
6 * published by the Free Software Foundation; either version 2 of
7 * the License, or (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
24 * This file is never included by application software unless
25 * explicitly requested (e.g., via linux/types.h) in which case the
26 * application is Linux specific so (user-) name space pollution is
27 * not a major issue. However, for interoperability, libraries still
28 * need to be careful to avoid a name clashes.
31 typedef unsigned short umode_t;
34 * __xx is ok: it doesn't pollute the POSIX namespace. Use these in the
35 * header files exported to user space
38 typedef __signed__ char __s8;
39 typedef unsigned char __u8;
41 typedef __signed__ short __s16;
42 typedef unsigned short __u16;
44 typedef __signed__ int __s32;
45 typedef unsigned int __u32;
48 __extension__ typedef __signed__ long long __s64;
49 __extension__ typedef unsigned long long __u64;
53 * These aren't exported outside the kernel to avoid name space clashes
57 typedef signed char s8;
58 typedef unsigned char u8;
60 typedef signed short s16;
61 typedef unsigned short u16;
63 typedef signed int s32;
64 typedef unsigned int u32;
66 typedef signed long long s64;
67 typedef unsigned long long u64;
69 #define BITS_PER_LONG 32
71 /* Dma addresses are 32-bits wide. */
73 typedef u32 dma_addr_t;
75 typedef unsigned long phys_addr_t;
76 typedef unsigned long phys_size_t;
77 #endif /* __KERNEL__ */
79 #endif /* _ASM_TYPES_H */