2002-11-18 09:14:45 +09:00
|
|
|
#ifndef __ASM_I386_TYPES_H
|
|
|
|
#define __ASM_I386_TYPES_H
|
|
|
|
|
2018-08-06 20:47:39 +09:00
|
|
|
#include <asm-generic/int-ll64.h>
|
2002-11-18 09:14:45 +09:00
|
|
|
|
2018-08-06 20:47:39 +09:00
|
|
|
typedef unsigned short umode_t;
|
2002-11-18 09:14:45 +09:00
|
|
|
|
|
|
|
/*
|
|
|
|
* These aren't exported outside the kernel to avoid name space clashes
|
|
|
|
*/
|
|
|
|
#ifdef __KERNEL__
|
|
|
|
|
2017-01-16 23:04:06 +09:00
|
|
|
#if CONFIG_IS_ENABLED(X86_64)
|
|
|
|
#define BITS_PER_LONG 64
|
|
|
|
#else
|
2002-11-18 09:14:45 +09:00
|
|
|
#define BITS_PER_LONG 32
|
2017-01-16 23:04:06 +09:00
|
|
|
#endif
|
|
|
|
|
2002-11-18 09:14:45 +09:00
|
|
|
/* Dma addresses are 32-bits wide. */
|
|
|
|
|
|
|
|
typedef u32 dma_addr_t;
|
|
|
|
|
2012-10-24 03:04:44 +09:00
|
|
|
typedef unsigned long long phys_addr_t;
|
|
|
|
typedef unsigned long long phys_size_t;
|
2008-03-28 01:46:38 +09:00
|
|
|
|
2002-11-18 09:14:45 +09:00
|
|
|
#endif /* __KERNEL__ */
|
|
|
|
|
|
|
|
#endif
|