1 #ifndef _ASM_IA64_TYPES_H 2 #define _ASM_IA64_TYPES_H 3 4 /* 5 * This file is never included by application software unless explicitly requested (e.g., 6 * via linux/types.h) in which case the application is Linux specific so (user-) name 7 * space pollution is not a major issue. However, for interoperability, libraries still 8 * need to be careful to avoid a name clashes. 9 * 10 * Based on <asm-alpha/types.h>. 11 * 12 * Modified 1998-2000, 2002 13 * David Mosberger-Tang <davidm@hpl.hp.com>, Hewlett-Packard Co 14 */ 15 16 #include <asm-generic/int-l64.h> 17 18 #ifdef __ASSEMBLY__ 19 # define __IA64_UL(x) (x) 20 # define __IA64_UL_CONST(x) x 21 22 # ifdef __KERNEL__ 23 # define BITS_PER_LONG 64 24 # endif 25 26 #else 27 # define __IA64_UL(x) ((unsigned long)(x)) 28 # define __IA64_UL_CONST(x) x##UL 29 30 typedef unsigned int umode_t; 31 32 /* 33 * These aren't exported outside the kernel to avoid name space clashes 34 */ 35 # ifdef __KERNEL__ 36 37 #define BITS_PER_LONG 64 38 39 /* DMA addresses are 64-bits wide, in general. */ 40 41 typedef u64 dma_addr_t; 42 43 # endif /* __KERNEL__ */ 44 #endif /* !__ASSEMBLY__ */ 45 46 #endif /* _ASM_IA64_TYPES_H */ 47