4 /*--------------------------------------------------------------------
6 * include/asm-nios2nommu/types.h
8 * Derived from m68knommu
10 * Copyright (C) 2004 Microtronix Datacom Ltd
12 * This program is free software; you can redistribute it and/or modify
13 * it under the terms of the GNU General Public License as published by
14 * the Free Software Foundation; either version 2 of the License, or
15 * (at your option) any later version.
17 * This program is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
23 * Jan/20/2004 dgt NiosII
25 ---------------------------------------------------------------------*/
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.
38 typedef unsigned short umode_t
;
41 * __xx is ok: it doesn't pollute the POSIX namespace. Use these in the
42 * header files exported to user space
45 typedef __signed__
char __s8
;
46 typedef unsigned char __u8
;
48 typedef __signed__
short __s16
;
49 typedef unsigned short __u16
;
51 typedef __signed__
int __s32
;
52 typedef unsigned int __u32
;
54 #if defined(__GNUC__) && !defined(__STRICT_ANSI__)
55 typedef __signed__
long long __s64
;
56 typedef unsigned long long __u64
;
59 #endif /* __ASSEMBLY__ */
62 * These aren't exported outside the kernel to avoid name space clashes
66 #define BITS_PER_LONG 32
70 typedef signed char s8
;
71 typedef unsigned char u8
;
73 typedef signed short s16
;
74 typedef unsigned short u16
;
76 typedef signed int s32
;
77 typedef unsigned int u32
;
79 typedef signed long long s64
;
80 typedef unsigned long long u64
;
82 /* DMA addresses are always 32-bits wide */
84 typedef u32 dma_addr_t
;
85 typedef u32 dma64_addr_t
;
87 #endif /* __ASSEMBLY__ */
89 #endif /* __KERNEL__ */
91 #endif /* _NIOS_TYPES_H */