xref: /openbmc/u-boot/arch/xtensa/include/asm/types.h (revision d1e15041)
1 /* SPDX-License-Identifier: GPL-2.0+ */
2 /*
3  *  Copyright (C) 1997 Tensilica Inc.
4  */
5 
6 #ifndef _XTENSA_TYPES_H
7 #define _XTENSA_TYPES_H
8 
9 #include <asm-generic/int-ll64.h>
10 
11 typedef unsigned short umode_t;
12 
13 /*
14  * These aren't exported outside the kernel to avoid name space clashes
15  */
16 #ifdef __KERNEL__
17 
18 #define BITS_PER_LONG 32
19 
20 /* Dma addresses are 32-bits wide */
21 
22 typedef u32 dma_addr_t;
23 
24 typedef unsigned long phys_addr_t;
25 typedef unsigned long phys_size_t;
26 
27 
28 #endif /* __KERNEL__ */
29 
30 #endif /* _XTENSA_TYPES_H */
31