Merge branch 'master' of git://www.denx.de/git/u-boot-fdt
[u-boot-openmoko/qq2440-openmoko-u-boot.git] / include / asm-blackfin / types.h
blob9fd8e03360448b4c03eee8a5dde6190818728d37
1 /*
2 * U-boot - types.h
4 * Copyright (c) 2005-2007 Analog Devices Inc.
6 * See file CREDITS for list of people who contributed to this
7 * project.
9 * This program is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU General Public License as
11 * published by the Free Software Foundation; either version 2 of
12 * the License, or (at your option) any later version.
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
22 * MA 02110-1301 USA
25 #ifndef _BLACKFIN_TYPES_H
26 #define _BLACKFIN_TYPES_H
29 * This file is never included by application software unless
30 * explicitly requested (e.g., via linux/types.h) in which case the
31 * application is Linux specific so (user-) name space pollution is
32 * not a major issue. However, for interoperability, libraries still
33 * need to be careful to avoid a name clashes.
36 typedef unsigned short umode_t;
39 * __xx is ok: it doesn't pollute the POSIX namespace. Use these in the
40 * header files exported to user space
43 typedef __signed__ char __s8;
44 typedef unsigned char __u8;
46 typedef __signed__ short __s16;
47 typedef unsigned short __u16;
49 typedef __signed__ int __s32;
50 typedef unsigned int __u32;
52 /* HK0617 -- Changes to unsigned long temporarily */
53 #if defined(__GNUC__)
54 __extension__ typedef __signed__ long long __s64;
55 __extension__ typedef unsigned long long __u64;
56 #endif
59 * These aren't exported outside the kernel to avoid name space clashes
61 #ifdef __KERNEL__
63 typedef signed char s8;
64 typedef unsigned char u8;
66 typedef signed short s16;
67 typedef unsigned short u16;
69 typedef signed int s32;
70 typedef unsigned int u32;
72 typedef signed long long s64;
73 typedef unsigned long long u64;
75 #define BITS_PER_LONG 32
77 /* Dma addresses are 32-bits wide. */
79 typedef u32 dma_addr_t;
81 #endif
83 #endif