1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * Copyright (C) 1997 Tensilica Inc.
6 #ifndef _XTENSA_TYPES_H
7 #define _XTENSA_TYPES_H
9 typedef unsigned short umode_t;
12 * __xx is ok: it doesn't pollute the POSIX namespace. Use these in the
13 * header files exported to user space
16 typedef __signed__ char __s8;
17 typedef unsigned char __u8;
19 typedef __signed__ short __s16;
20 typedef unsigned short __u16;
22 typedef __signed__ int __s32;
23 typedef unsigned int __u32;
25 #if defined(__GNUC__) && !defined(__STRICT_ANSI__)
26 typedef __signed__ long long __s64;
27 typedef unsigned long long __u64;
31 * These aren't exported outside the kernel to avoid name space clashes
35 typedef signed char s8;
36 typedef unsigned char u8;
38 typedef signed short s16;
39 typedef unsigned short u16;
41 typedef signed int s32;
42 typedef unsigned int u32;
44 typedef signed long long s64;
45 typedef unsigned long long u64;
47 #define BITS_PER_LONG 32
49 /* Dma addresses are 32-bits wide */
51 typedef u32 dma_addr_t;
53 typedef unsigned long phys_addr_t;
54 typedef unsigned long phys_size_t;
57 #endif /* __KERNEL__ */
59 #endif /* _XTENSA_TYPES_H */