1 /* 2 * Copyright (C) 2011 Andes Technology Corporation 3 * Copyright (C) 2010 Shawn Lin (nobuhiro@andestech.com) 4 * Copyright (C) 2011 Macpaul Lin (macpaul@andestech.com) 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 14 #include <asm-generic/int-ll64.h> 15 16 typedef unsigned short umode_t; 17 18 /* 19 * These aren't exported outside the kernel to avoid name space clashes 20 */ 21 #ifdef __KERNEL__ 22 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 35