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