Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 104162
b: refs/heads/master
c: b444b9a
h: refs/heads/master
v: v3
  • Loading branch information
Sam Ravnborg authored and David S. Miller committed Jul 18, 2008
1 parent e47a112 commit ebff70c
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 36 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c6d1b0e3d2b71ded7c457c2c9f1ab8c2c957aafe
refs/heads/master: b444b9a5a1171ef07e1a87b01f7bb5bd0206d012
32 changes: 31 additions & 1 deletion trunk/include/asm-sparc/types.h
Original file line number Diff line number Diff line change
@@ -1,13 +1,41 @@
#ifndef _SPARC_TYPES_H
#define _SPARC_TYPES_H

/*
* This file is never included by application software unless
* explicitly requested (e.g., via linux/types.h) in which case the
* application is Linux specific so (user-) name space pollution is
* not a major issue. However, for interoperability, libraries still
* need to be careful to avoid a name clashes.
*/

#if defined(__sparc__) && defined(__arch64__)

/*** SPARC 64 bit ***/
#include <asm-generic/int-l64.h>

#ifndef __ASSEMBLY__

typedef unsigned short umode_t;

#endif /* __ASSEMBLY__ */

#ifdef __KERNEL__

#define BITS_PER_LONG 64

#ifndef __ASSEMBLY__

/* Dma addresses come in generic and 64-bit flavours. */

typedef u32 dma_addr_t;
typedef u64 dma64_addr_t;

#endif /* __ASSEMBLY__ */

#endif /* __KERNEL__ */
#else

/*** SPARC 32 bit ***/
#include <asm-generic/int-ll64.h>

#ifndef __ASSEMBLY__
Expand All @@ -29,4 +57,6 @@ typedef u32 dma64_addr_t;

#endif /* __KERNEL__ */

#endif /* defined(__sparc__) && defined(__arch64__) */

#endif /* defined(_SPARC_TYPES_H) */
35 changes: 1 addition & 34 deletions trunk/include/asm-sparc64/types.h
Original file line number Diff line number Diff line change
@@ -1,34 +1 @@
#ifndef _SPARC64_TYPES_H
#define _SPARC64_TYPES_H

/*
* This file is never included by application software unless
* explicitly requested (e.g., via linux/types.h) in which case the
* application is Linux specific so (user-) name space pollution is
* not a major issue. However, for interoperability, libraries still
* need to be careful to avoid a name clashes.
*/
#include <asm-generic/int-l64.h>

#ifndef __ASSEMBLY__

typedef unsigned short umode_t;

#endif /* __ASSEMBLY__ */

#ifdef __KERNEL__

#define BITS_PER_LONG 64

#ifndef __ASSEMBLY__

/* Dma addresses come in generic and 64-bit flavours. */

typedef u32 dma_addr_t;
typedef u64 dma64_addr_t;

#endif /* __ASSEMBLY__ */

#endif /* __KERNEL__ */

#endif /* defined(_SPARC64_TYPES_H) */
#include <asm-sparc/types.h>

0 comments on commit ebff70c

Please sign in to comment.