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