xref: /openbmc/u-boot/arch/nds32/include/asm/types.h (revision d1e15041)
100f892fcSMacpaul Lin /*
200f892fcSMacpaul Lin  * Copyright (C) 2011 Andes Technology Corporation
300f892fcSMacpaul Lin  * Copyright (C) 2010 Shawn Lin (nobuhiro@andestech.com)
400f892fcSMacpaul Lin  * Copyright (C) 2011 Macpaul Lin (macpaul@andestech.com)
500f892fcSMacpaul Lin  *
600f892fcSMacpaul Lin  * This file is subject to the terms and conditions of the GNU General Public
700f892fcSMacpaul Lin  * License.  See the file "COPYING" in the main directory of this archive
800f892fcSMacpaul Lin  * for more details.
900f892fcSMacpaul Lin  */
1000f892fcSMacpaul Lin 
1100f892fcSMacpaul Lin #ifndef __ASM_NDS_TYPES_H
1200f892fcSMacpaul Lin #define __ASM_NDS_TYPES_H
1300f892fcSMacpaul Lin 
14*3747bdbbSMasahiro Yamada #include <asm-generic/int-ll64.h>
15*3747bdbbSMasahiro Yamada 
1600f892fcSMacpaul Lin typedef unsigned short umode_t;
1700f892fcSMacpaul Lin 
1800f892fcSMacpaul Lin /*
1900f892fcSMacpaul Lin  * These aren't exported outside the kernel to avoid name space clashes
2000f892fcSMacpaul Lin  */
2100f892fcSMacpaul Lin #ifdef __KERNEL__
2200f892fcSMacpaul Lin 
2300f892fcSMacpaul Lin #define BITS_PER_LONG 32
2400f892fcSMacpaul Lin 
2500f892fcSMacpaul Lin #include <stddef.h>
2600f892fcSMacpaul Lin 
2700f892fcSMacpaul Lin typedef u32 dma_addr_t;
2800f892fcSMacpaul Lin 
2900f892fcSMacpaul Lin typedef unsigned long phys_addr_t;
3000f892fcSMacpaul Lin typedef unsigned long phys_size_t;
3100f892fcSMacpaul Lin 
3200f892fcSMacpaul Lin #endif /* __KERNEL__ */
3300f892fcSMacpaul Lin 
3400f892fcSMacpaul Lin #endif
35