]>
Commit | Line | Data |
---|---|---|
00f892fc ML |
1 | /* |
2 | * Copyright (C) 2011 Andes Technology Corporation | |
3 | * Copyright (C) 2010 Shawn Lin ([email protected]) | |
4 | * Copyright (C) 2011 Macpaul Lin ([email protected]) | |
5 | * | |
6 | * This file is subject to the terms and conditions of the GNU General Public | |
7 | * License. See the file "COPYING" in the main directory of this archive | |
8 | * for more details. | |
9 | */ | |
10 | ||
11 | #ifndef __ASM_NDS_TYPES_H | |
12 | #define __ASM_NDS_TYPES_H | |
13 | ||
3747bdbb | 14 | #include <asm-generic/int-ll64.h> |
00f892fc | 15 | |
3747bdbb | 16 | typedef unsigned short umode_t; |
00f892fc ML |
17 | |
18 | /* | |
19 | * These aren't exported outside the kernel to avoid name space clashes | |
20 | */ | |
21 | #ifdef __KERNEL__ | |
22 | ||
00f892fc ML |
23 | #define BITS_PER_LONG 32 |
24 | ||
25 | #include <stddef.h> | |
26 | ||
27 | typedef u32 dma_addr_t; | |
28 | ||
29 | typedef unsigned long phys_addr_t; | |
30 | typedef unsigned long phys_size_t; | |
31 | ||
32 | #endif /* __KERNEL__ */ | |
33 | ||
34 | #endif |