xref: /openbmc/u-boot/arch/riscv/include/asm/types.h (revision 3747bdbb)
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  * Copyright (C) 2017 Rick Chen (rick@andestech.com)
6  *
7  * This file is subject to the terms and conditions of the GNU General Public
8  * License.  See the file "COPYING" in the main directory of this archive
9  * for more details.
10  */
11 
12 #ifndef __ASM_RISCV_TYPES_H
13 #define __ASM_RISCV_TYPES_H
14 
15 #include <asm-generic/int-ll64.h>
16 
17 typedef unsigned short umode_t;
18 
19 /*
20  * These aren't exported outside the kernel to avoid name space clashes
21  */
22 #ifdef __KERNEL__
23 
24 #define BITS_PER_LONG 32
25 
26 #include <stddef.h>
27 
28 typedef u32 dma_addr_t;
29 
30 typedef unsigned long phys_addr_t;
31 typedef unsigned long phys_size_t;
32 
33 #endif /* __KERNEL__ */
34 
35 #endif
36