1
2
3
4
5
6#ifndef _ASM_TYPES_H
7#define _ASM_TYPES_H
8
9#ifndef __ASSEMBLY__
10
11typedef unsigned short umode_t;
12
13
14
15
16
17
18typedef __signed__ char __s8;
19typedef unsigned char __u8;
20
21typedef __signed__ short __s16;
22typedef unsigned short __u16;
23
24typedef __signed__ int __s32;
25typedef unsigned int __u32;
26
27#if defined(__GNUC__)
28__extension__ typedef __signed__ long long __s64;
29__extension__ typedef unsigned long long __u64;
30#else
31typedef __signed__ long long __s64;
32typedef unsigned long long __u64;
33#endif
34
35#endif
36
37
38
39
40#ifdef __KERNEL__
41
42#define BITS_PER_LONG _MIPS_SZLONG
43
44#ifndef __ASSEMBLY__
45
46typedef __signed char s8;
47typedef unsigned char u8;
48
49typedef __signed short s16;
50typedef unsigned short u16;
51
52typedef __signed int s32;
53typedef unsigned int u32;
54
55typedef __signed__ long long s64;
56typedef unsigned long long u64;
57
58#if (defined(CONFIG_HIGHMEM) && defined(CONFIG_64BIT_PHYS_ADDR)) \
59 || defined(CONFIG_64BIT)
60typedef u64 dma_addr_t;
61
62typedef u64 phys_addr_t;
63typedef u64 phys_size_t;
64
65#else
66typedef u32 dma_addr_t;
67
68typedef u32 phys_addr_t;
69typedef u32 phys_size_t;
70
71#endif
72typedef u64 dma64_addr_t;
73
74
75
76
77#ifdef CONFIG_64BIT_PHYS_ADDR
78typedef unsigned long long phys_t;
79#else
80typedef unsigned long phys_t;
81#endif
82
83#endif
84
85#endif
86
87#endif
88