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)
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
12 #ifndef __ASM_RISCV_TYPES_H
13 #define __ASM_RISCV_TYPES_H
15 #include <asm-generic/int-ll64.h>
17 typedef unsigned short umode_t;
20 * These aren't exported outside the kernel to avoid name space clashes
24 #ifdef CONFIG_ARCH_RV64I
25 #define BITS_PER_LONG 64
27 #define BITS_PER_LONG 32
32 typedef u32 dma_addr_t;
34 typedef unsigned long phys_addr_t;
35 typedef unsigned long phys_size_t;
37 #endif /* __KERNEL__ */