]>
Commit | Line | Data |
---|---|---|
7b64fef3 WD |
1 | /* |
2 | * Copyright (C) 2006 Atmel Corporation | |
3 | * | |
1a459660 | 4 | * SPDX-License-Identifier: GPL-2.0+ |
7b64fef3 WD |
5 | */ |
6 | #ifndef __ASM_AVR32_TYPES_H | |
7 | #define __ASM_AVR32_TYPES_H | |
8 | ||
9 | #ifndef __ASSEMBLY__ | |
10 | ||
11 | typedef unsigned short umode_t; | |
12 | ||
13 | /* | |
14 | * __xx is ok: it doesn't pollute the POSIX namespace. Use these in the | |
15 | * header files exported to user space | |
16 | */ | |
17 | typedef __signed__ char __s8; | |
18 | typedef unsigned char __u8; | |
19 | ||
20 | typedef __signed__ short __s16; | |
21 | typedef unsigned short __u16; | |
22 | ||
23 | typedef __signed__ int __s32; | |
24 | typedef unsigned int __u32; | |
25 | ||
b075d74e SK |
26 | #if defined(__GNUC__) |
27 | __extension__ typedef __signed__ long long __s64; | |
28 | __extension__ typedef unsigned long long __u64; | |
7b64fef3 WD |
29 | #endif |
30 | ||
31 | #endif /* __ASSEMBLY__ */ | |
32 | ||
33 | /* | |
34 | * These aren't exported outside the kernel to avoid name space clashes | |
35 | */ | |
36 | #ifdef __KERNEL__ | |
37 | ||
38 | #define BITS_PER_LONG 32 | |
39 | ||
40 | #ifndef __ASSEMBLY__ | |
41 | ||
42 | typedef __signed__ char s8; | |
43 | typedef unsigned char u8; | |
44 | ||
45 | typedef __signed__ short s16; | |
46 | typedef unsigned short u16; | |
47 | ||
48 | typedef __signed__ int s32; | |
49 | typedef unsigned int u32; | |
50 | ||
51 | typedef __signed__ long long s64; | |
52 | typedef unsigned long long u64; | |
53 | ||
54 | /* Dma addresses are 32-bits wide. */ | |
55 | ||
56 | typedef u32 dma_addr_t; | |
57 | ||
e99ccb48 KG |
58 | typedef unsigned long phys_addr_t; |
59 | typedef unsigned long phys_size_t; | |
60 | ||
7b64fef3 WD |
61 | #ifdef CONFIG_LBD |
62 | typedef u64 sector_t; | |
63 | #define HAVE_SECTOR_T | |
64 | #endif | |
65 | ||
66 | #endif /* __ASSEMBLY__ */ | |
67 | ||
68 | #endif /* __KERNEL__ */ | |
69 | ||
70 | ||
71 | #endif /* __ASM_AVR32_TYPES_H */ |