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