-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
yaml --- r: 71046 b: refs/heads/master c: 9d256ff h: refs/heads/master v: v3
- Loading branch information
Thomas Gleixner
committed
Oct 17, 2007
1 parent
ee6409b
commit 8c21740
Showing
5 changed files
with
68 additions
and
132 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
--- | ||
refs/heads/master: 01749f6d6d0aa677081d13a2685bad028b778c22 | ||
refs/heads/master: 9d256ff51c174d8b157d99db038a1045f37a17c8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,70 @@ | ||
#ifdef __KERNEL__ | ||
# ifdef CONFIG_X86_32 | ||
# include "types_32.h" | ||
# else | ||
# include "types_64.h" | ||
#ifndef _ASM_X86_TYPES_H | ||
#define _ASM_X86_TYPES_H | ||
|
||
#ifndef __ASSEMBLY__ | ||
|
||
typedef unsigned short umode_t; | ||
|
||
/* | ||
* __xx is ok: it doesn't pollute the POSIX namespace. Use these in the | ||
* header files exported to user space | ||
*/ | ||
|
||
typedef __signed__ char __s8; | ||
typedef unsigned char __u8; | ||
|
||
typedef __signed__ short __s16; | ||
typedef unsigned short __u16; | ||
|
||
typedef __signed__ int __s32; | ||
typedef unsigned int __u32; | ||
|
||
#ifdef __i386__ | ||
# ifdef __GNUC__ | ||
__extension__ typedef __signed__ long long __s64; | ||
__extension__ typedef unsigned long long __u64; | ||
# endif | ||
#else | ||
# ifdef __i386__ | ||
# include "types_32.h" | ||
# else | ||
# include "types_64.h" | ||
# endif | ||
typedef __signed__ long long __s64; | ||
typedef unsigned long long __u64; | ||
#endif | ||
|
||
#endif /* __ASSEMBLY__ */ | ||
|
||
/* | ||
* These aren't exported outside the kernel to avoid name space clashes | ||
*/ | ||
#ifdef __KERNEL__ | ||
|
||
#ifdef CONFIG_X86_32 | ||
# define BITS_PER_LONG 32 | ||
#else | ||
# define BITS_PER_LONG 64 | ||
#endif | ||
|
||
#ifndef __ASSEMBLY__ | ||
|
||
typedef signed char s8; | ||
typedef unsigned char u8; | ||
|
||
typedef signed short s16; | ||
typedef unsigned short u16; | ||
|
||
typedef signed int s32; | ||
typedef unsigned int u32; | ||
|
||
typedef signed long long s64; | ||
typedef unsigned long long u64; | ||
|
||
typedef u64 dma64_addr_t; | ||
#if defined(CONFIG_X86_64) || defined(CONFIG_HIGHMEM64G) | ||
/* DMA addresses come in 32-bit and 64-bit flavours. */ | ||
typedef u64 dma_addr_t; | ||
#else | ||
typedef u32 dma_addr_t; | ||
#endif | ||
|
||
#endif /* __ASSEMBLY__ */ | ||
#endif /* __KERNEL__ */ | ||
|
||
#endif |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.