2017-02-15 19:34:15 +00:00
|
|
|
#ifndef __ASM_I386_TYPES_H
|
|
|
|
#define __ASM_I386_TYPES_H
|
|
|
|
|
|
|
|
#ifndef __ASSEMBLY__
|
|
|
|
|
|
|
|
#ifdef __x86_64__
|
|
|
|
/*
|
|
|
|
* This is used in dlmalloc. On X86_64 we need it to be
|
|
|
|
* 64 bit
|
|
|
|
*/
|
|
|
|
#define INTERNAL_SIZE_T unsigned long
|
|
|
|
|
2010-01-12 10:15:38 +00:00
|
|
|
/*
|
2017-02-15 19:34:15 +00:00
|
|
|
* This is a Kconfig variable in the Kernel, but we want to detect
|
|
|
|
* this during compile time, so we set it here.
|
2010-01-12 10:15:38 +00:00
|
|
|
*/
|
2017-02-15 19:34:15 +00:00
|
|
|
#define CONFIG_PHYS_ADDR_T_64BIT
|
2010-01-12 10:15:38 +00:00
|
|
|
|
2017-02-15 19:34:15 +00:00
|
|
|
#endif
|
2010-01-12 10:15:38 +00:00
|
|
|
|
2017-02-15 19:34:15 +00:00
|
|
|
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
|
|
|
|
*/
|
2010-01-12 10:15:38 +00:00
|
|
|
|
|
|
|
typedef __signed__ char __s8;
|
|
|
|
typedef unsigned char __u8;
|
|
|
|
|
|
|
|
typedef __signed__ short __s16;
|
|
|
|
typedef unsigned short __u16;
|
|
|
|
|
|
|
|
typedef __signed__ int __s32;
|
|
|
|
typedef unsigned int __u32;
|
|
|
|
|
2017-02-15 19:34:15 +00:00
|
|
|
#if defined(__GNUC__) && !defined(__STRICT_ANSI__)
|
2010-01-12 10:15:38 +00:00
|
|
|
typedef __signed__ long long __s64;
|
|
|
|
typedef unsigned long long __u64;
|
2017-02-15 19:34:15 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
/*
|
|
|
|
* These aren't exported outside the kernel to avoid name space clashes
|
|
|
|
*/
|
|
|
|
#ifdef __KERNEL__
|
2010-01-12 10:15:38 +00:00
|
|
|
|
2013-06-01 14:05:22 +00:00
|
|
|
typedef signed char s8;
|
2010-01-12 10:15:38 +00:00
|
|
|
typedef unsigned char u8;
|
|
|
|
|
2013-06-01 14:05:22 +00:00
|
|
|
typedef signed short s16;
|
2010-01-12 10:15:38 +00:00
|
|
|
typedef unsigned short u16;
|
|
|
|
|
2013-06-01 14:05:22 +00:00
|
|
|
typedef signed int s32;
|
2010-01-12 10:15:38 +00:00
|
|
|
typedef unsigned int u32;
|
|
|
|
|
2013-06-01 14:05:22 +00:00
|
|
|
typedef signed long long s64;
|
2011-11-09 21:39:56 +00:00
|
|
|
typedef unsigned long long u64;
|
|
|
|
|
2017-02-15 19:34:15 +00:00
|
|
|
#include <asm/bitsperlong.h>
|
2016-02-01 08:15:52 +00:00
|
|
|
|
2017-02-15 19:34:15 +00:00
|
|
|
#endif /* __KERNEL__ */
|
2014-07-16 07:39:03 +00:00
|
|
|
|
2017-02-15 19:34:15 +00:00
|
|
|
#endif
|
2010-01-12 10:15:38 +00:00
|
|
|
|
2017-02-15 19:34:15 +00:00
|
|
|
#endif
|