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