linux-afs-translator-xen-20060731
[openafs.git] / src / config / param.ia64_linux26.h
1 #ifndef UKERNEL
2 /* This section for kernel libafs compiles only */
3
4 /* 
5  * Copyright 2000, International Business Machines Corporation and others.
6  * All Rights Reserved.
7  * 
8  * This software has been released under the terms of the IBM Public
9  * License.  For details, see the LICENSE file in the top-level source
10  * directory or online at http://www.openafs.org/dl/license10.html
11  */
12
13
14 #ifndef AFS_PARAM_H
15 #define AFS_PARAM_H
16
17 /* In user space the AFS_LINUX20_ENV should be sufficient. In the kernel,
18  * it's a judgment call. If something is obviously ia64 specific, use that
19  * #define instead. Note that "20" refers to the linux 2.0 kernel. The "2"
20  * in the sysname is the current version of the client. This takes into
21  * account the perferred OS user space configuration as well as the kernel.
22  */
23
24 #define AFS_LINUX20_ENV 1
25 #define AFS_LINUX22_ENV 1
26 #define AFS_LINUX24_ENV 1
27 #define AFS_LINUX26_ENV 1
28 #define AFS_IA64_LINUX20_ENV    1
29 #define AFS_IA64_LINUX22_ENV    1
30 #define AFS_IA64_LINUX24_ENV    1
31 #define AFS_IA64_LINUX26_ENV    1
32 #define AFS_LINUX_64BIT_KERNEL 1
33
34 #define AFS_MOUNT_AFS "afs"     /* The name of the filesystem type. */
35 #define AFS_SYSCALL 1141
36 #define AFS_64BIT_IOPS_ENV  1
37 #define AFS_NAMEI_ENV     1     /* User space interface to file system */
38
39 #define AFS_64BIT_ENV           1       /* Defines afs_int32 as int, not long. */
40 #define AFS_64BIT_CLIENT        1       
41
42 #define AFS_64BITPOINTER_ENV    1       /* pointers are 64 bits. */
43
44 #if defined(__KERNEL__) && !defined(KDUMP_KERNEL)
45 #include <linux/init.h>
46 #include <linux/module.h>
47 #include <linux/kernel.h>
48 #include <linux/threads.h>
49
50 #include <linux/config.h>
51 #ifdef CONFIG_SMP
52 #ifndef AFS_SMP
53 #define AFS_SMP 1
54 #endif
55 #endif
56 /* Using "AFS_SMP" to map to however many #define's are required to get
57  * MP to compile for Linux
58  */
59 #ifdef AFS_SMP
60 #ifndef CONFIG_SMP
61 #define CONFIG_SMP 1
62 #endif
63 #ifndef __SMP__
64 #define __SMP__
65 #endif
66 #endif
67 #define AFS_GLOBAL_SUNLOCK
68
69 #if defined(MODULE) && defined(CONFIG_MODVERSIONS)
70 #define MODVERSIONS
71 /* #include <config/modversions.h> */
72 #endif
73
74 #endif /* __KERNEL__  && !DUMP_KERNEL */
75
76 #include <afs/afs_sysnames.h>
77
78 #define AFS_USERSPACE_IP_ADDR 1
79 #define RXK_LISTENER_ENV 1
80 #define AFS_GCPAGS       1
81
82 /* Machine / Operating system information */
83 #define SYS_NAME        "ia64_linux26"
84 #define SYS_NAME_ID     SYS_NAME_ID_ia64_linux26
85 #define AFSLITTLE_ENDIAN    1
86 #define AFS_HAVE_FFS        1   /* Use system's ffs. */
87 #define AFS_HAVE_STATVFS    0   /* System doesn't support statvfs */
88 #define AFS_VM_RDWR_ENV            1    /* read/write implemented via VM */
89 #define AFS_USE_GETTIMEOFDAY       1    /* use gettimeofday to implement rx clock */
90
91 #ifdef KERNEL
92 #ifndef MIN
93 #define MIN(A,B) ((A) < (B) ? (A) : (B))
94 #endif
95 #ifndef MAX
96 #define MAX(A,B) ((A) > (B) ? (A) : (B))
97 #endif
98 #endif /* KERNEL */
99
100 #define USE_UCONTEXT            /* should be in afsconfig.h */
101
102 #endif /* _PARAM_IA64_LINUX20_H_ */
103
104 #else /* !defined(UKERNEL) */
105
106 /* This section for user space compiles only */
107
108 /* 
109  * Copyright 2000, International Business Machines Corporation and others.
110  * All Rights Reserved.
111  * 
112  * This software has been released under the terms of the IBM Public
113  * License.  For details, see the LICENSE file in the top-level source
114  * directory or online at http://www.openafs.org/dl/license10.html
115  */
116
117
118 #ifndef AFS_PARAM_H
119 #define AFS_PARAM_H
120
121 /* In user space the AFS_LINUX20_ENV should be sufficient. In the kernel,
122  * it's a judgment call. If something is obviously i386 specific, use that
123  * #define instead. Note that "20" refers to the linux 2.0 kernel. The "2"
124  * in the sysname is the current version of the client. This takes into
125  * account the perferred OS user space configuration as well as the kernel.
126  */
127
128 #define UKERNEL                        1        /* user space kernel */
129 #define AFS_ENV                        1
130 #define AFS_USR_LINUX20_ENV    1
131 #define AFS_USR_LINUX22_ENV    1
132 #define AFS_USR_LINUX24_ENV    1
133 #define AFS_USR_LINUX26_ENV    1
134 #define AFS_NONFSTRANS 1
135
136 #define AFS_MOUNT_AFS "afs"     /* The name of the filesystem type. */
137 #define AFS_SYSCALL 1141
138 #define AFS_64BIT_IOPS_ENV  1
139 #define AFS_NAMEI_ENV     1     /* User space interface to file system */
140 #include <afs/afs_sysnames.h>
141
142 #define AFS_USERSPACE_IP_ADDR 1
143 #define RXK_LISTENER_ENV 1
144 #define AFS_GCPAGS             0        /* if nonzero, garbage collect PAGs */
145
146
147 /* Machine / Operating system information */
148 #define SYS_NAME        "ia64_linux26"
149 #define SYS_NAME_ID     SYS_NAME_ID_ia64_linux26
150 #define AFSLITTLE_ENDIAN    1
151 #define AFS_HAVE_FFS        1   /* Use system's ffs. */
152 #define AFS_HAVE_STATVFS    0   /* System doesn't support statvfs */
153 #define AFS_VM_RDWR_ENV            1    /* read/write implemented via VM */
154
155 #define        afsio_iov       uio_iov
156 #define        afsio_iovcnt    uio_iovcnt
157 #define        afsio_offset    uio_offset
158 #define        afsio_seg       uio_segflg
159 #define        afsio_fmode     uio_fmode
160 #define        afsio_resid     uio_resid
161 #define        AFS_UIOSYS      1
162 #define        AFS_UIOUSER     UIO_USERSPACE
163 #define        AFS_CLBYTES     MCLBYTES
164 #define        AFS_MINCHANGE   2
165 #define        VATTR_NULL      usr_vattr_null
166
167 #define AFS_DIRENT
168 #ifndef CMSERVERPREF
169 #define CMSERVERPREF
170 #endif
171
172 #define USE_UCONTEXT            /* should be in afsconfig.h */
173
174 #endif /* AFS_PARAM_H */
175
176 #endif /* !defined(UKERNEL) */