aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorSam Ravnborg <sam@ravnborg.org>2008-06-06 15:35:43 -0400
committerDavid S. Miller <davem@davemloft.net>2008-07-18 00:42:19 -0400
commitb444b9a5a1171ef07e1a87b01f7bb5bd0206d012 (patch)
tree1fc1082a05e20680adece9d4f0c45a4f8f7df82f /include
parentc6d1b0e3d2b71ded7c457c2c9f1ab8c2c957aafe (diff)
sparc: Merge asm-sparc{,64}/types.h
Copy content of sparc64 file to sparc file. There is only minimal possibilities for further unification. Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Diffstat (limited to 'include')
-rw-r--r--include/asm-sparc/types.h32
-rw-r--r--include/asm-sparc64/types.h35
2 files changed, 32 insertions, 35 deletions
diff --git a/include/asm-sparc/types.h b/include/asm-sparc/types.h
index 07734f942405..8c28fde5eaa2 100644
--- a/include/asm-sparc/types.h
+++ b/include/asm-sparc/types.h
@@ -1,6 +1,5 @@
1#ifndef _SPARC_TYPES_H 1#ifndef _SPARC_TYPES_H
2#define _SPARC_TYPES_H 2#define _SPARC_TYPES_H
3
4/* 3/*
5 * This file is never included by application software unless 4 * This file is never included by application software unless
6 * explicitly requested (e.g., via linux/types.h) in which case the 5 * explicitly requested (e.g., via linux/types.h) in which case the
@@ -8,6 +7,35 @@
8 * not a major issue. However, for interoperability, libraries still 7 * not a major issue. However, for interoperability, libraries still
9 * need to be careful to avoid a name clashes. 8 * need to be careful to avoid a name clashes.
10 */ 9 */
10
11#if defined(__sparc__) && defined(__arch64__)
12
13/*** SPARC 64 bit ***/
14#include <asm-generic/int-l64.h>
15
16#ifndef __ASSEMBLY__
17
18typedef unsigned short umode_t;
19
20#endif /* __ASSEMBLY__ */
21
22#ifdef __KERNEL__
23
24#define BITS_PER_LONG 64
25
26#ifndef __ASSEMBLY__
27
28/* Dma addresses come in generic and 64-bit flavours. */
29
30typedef u32 dma_addr_t;
31typedef u64 dma64_addr_t;
32
33#endif /* __ASSEMBLY__ */
34
35#endif /* __KERNEL__ */
36#else
37
38/*** SPARC 32 bit ***/
11#include <asm-generic/int-ll64.h> 39#include <asm-generic/int-ll64.h>
12 40
13#ifndef __ASSEMBLY__ 41#ifndef __ASSEMBLY__
@@ -29,4 +57,6 @@ typedef u32 dma64_addr_t;
29 57
30#endif /* __KERNEL__ */ 58#endif /* __KERNEL__ */
31 59
60#endif /* defined(__sparc__) && defined(__arch64__) */
61
32#endif /* defined(_SPARC_TYPES_H) */ 62#endif /* defined(_SPARC_TYPES_H) */
diff --git a/include/asm-sparc64/types.h b/include/asm-sparc64/types.h
index b27ccc85202f..cfbfad5043eb 100644
--- a/include/asm-sparc64/types.h
+++ b/include/asm-sparc64/types.h
@@ -1,34 +1 @@
1#ifndef _SPARC64_TYPES_H #include <asm-sparc/types.h>
2#define _SPARC64_TYPES_H
3
4/*
5 * This file is never included by application software unless
6 * explicitly requested (e.g., via linux/types.h) in which case the
7 * application is Linux specific so (user-) name space pollution is
8 * not a major issue. However, for interoperability, libraries still
9 * need to be careful to avoid a name clashes.
10 */
11#include <asm-generic/int-l64.h>
12
13#ifndef __ASSEMBLY__
14
15typedef unsigned short umode_t;
16
17#endif /* __ASSEMBLY__ */
18
19#ifdef __KERNEL__
20
21#define BITS_PER_LONG 64
22
23#ifndef __ASSEMBLY__
24
25/* Dma addresses come in generic and 64-bit flavours. */
26
27typedef u32 dma_addr_t;
28typedef u64 dma64_addr_t;
29
30#endif /* __ASSEMBLY__ */
31
32#endif /* __KERNEL__ */
33
34#endif /* defined(_SPARC64_TYPES_H) */