1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * Copyright (C) 2013-2014 Synopsys, Inc. All rights reserved.
6 #ifndef __ASM_ARC_TYPES_H
7 #define __ASM_ARC_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
33 typedef signed char s8;
34 typedef unsigned char u8;
36 typedef signed short s16;
37 typedef unsigned short u16;
39 typedef signed int s32;
40 typedef unsigned int u32;
42 typedef signed long long s64;
43 typedef unsigned long long u64;
45 #define BITS_PER_LONG 32
47 /* Dma addresses are 32-bits wide. */
49 typedef u32 dma_addr_t;
51 typedef unsigned long phys_addr_t;
52 typedef unsigned long phys_size_t;
54 #endif /* __ASM_ARC_TYPES_H */