2 * Copyright (C) 2006 Atmel Corporation
4 * SPDX-License-Identifier: GPL-2.0+
6 #ifndef __ASM_AVR32_TYPES_H
7 #define __ASM_AVR32_TYPES_H
11 typedef unsigned short umode_t;
14 * __xx is ok: it doesn't pollute the POSIX namespace. Use these in the
15 * header files exported to user space
17 typedef __signed__ char __s8;
18 typedef unsigned char __u8;
20 typedef __signed__ short __s16;
21 typedef unsigned short __u16;
23 typedef __signed__ int __s32;
24 typedef unsigned int __u32;
27 __extension__ typedef __signed__ long long __s64;
28 __extension__ typedef unsigned long long __u64;
31 #endif /* __ASSEMBLY__ */
34 * These aren't exported outside the kernel to avoid name space clashes
38 #define BITS_PER_LONG 32
42 typedef __signed__ char s8;
43 typedef unsigned char u8;
45 typedef __signed__ short s16;
46 typedef unsigned short u16;
48 typedef __signed__ int s32;
49 typedef unsigned int u32;
51 typedef __signed__ long long s64;
52 typedef unsigned long long u64;
54 /* Dma addresses are 32-bits wide. */
56 typedef u32 dma_addr_t;
58 typedef unsigned long phys_addr_t;
59 typedef unsigned long phys_size_t;
66 #endif /* __ASSEMBLY__ */
68 #endif /* __KERNEL__ */
71 #endif /* __ASM_AVR32_TYPES_H */