1
2
3
4
5
6#ifndef __ASM_AVR32_TYPES_H
7#define __ASM_AVR32_TYPES_H
8
9#ifndef __ASSEMBLY__
10
11typedef unsigned short umode_t;
12
13
14
15
16
17typedef __signed__ char __s8;
18typedef unsigned char __u8;
19
20typedef __signed__ short __s16;
21typedef unsigned short __u16;
22
23typedef __signed__ int __s32;
24typedef unsigned int __u32;
25
26#if defined(__GNUC__)
27__extension__ typedef __signed__ long long __s64;
28__extension__ typedef unsigned long long __u64;
29#endif
30
31#endif
32
33
34
35
36#ifdef __KERNEL__
37
38#define BITS_PER_LONG 32
39
40#ifndef __ASSEMBLY__
41
42typedef __signed__ char s8;
43typedef unsigned char u8;
44
45typedef __signed__ short s16;
46typedef unsigned short u16;
47
48typedef __signed__ int s32;
49typedef unsigned int u32;
50
51typedef __signed__ long long s64;
52typedef unsigned long long u64;
53
54
55
56typedef u32 dma_addr_t;
57
58typedef unsigned long phys_addr_t;
59typedef unsigned long phys_size_t;
60
61#ifdef CONFIG_LBD
62typedef u64 sector_t;
63#define HAVE_SECTOR_T
64#endif
65
66#endif
67
68#endif
69
70
71#endif
72