4 * Copyright (c) 2005 blackfin.uclinux.org
6 * See file CREDITS for list of people who contributed to this
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., 59 Temple Place, Suite 330, Boston,
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__) && !defined(__STRICT_ANSI__)
54 typedef __signed__
long long __s64
;
55 typedef unsigned long long __u64
;
59 * These aren't exported outside the kernel to avoid name space clashes
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
;