Import Upstream version 1.8.5
[hcoop/debian/openafs.git] / src / config / param.arm_darwin_100.h
1 #ifndef UKERNEL
2 /* This section for kernel libafs compiles only */
3
4 #ifndef AFS_PARAM_H
5 #define AFS_PARAM_H
6
7 #define AFS_ENV 1
8 #define AFS_64BIT_CLIENT 1
9 #define AFS_64BIT_IOPS_ENV 1
10 #if defined(__ppc__)
11 #define AFS_PPC_ENV 1
12 #elif defined(__i386__) || defined(__amd64__)
13 #define AFS_X86_ENV 1
14 #elif defined(__arm__)
15 #define AFS_ARM_ENV 1
16 #define AFS_ARM_DARWIN_ENV 1
17 #else
18 #error Unsupported architecture
19 #endif
20 #ifdef __amd64__
21 #define AFS_64BITUSERPOINTER_ENV 1
22 #endif
23 #define AFS_64BIT_SIZEOF 1 /* seriously? */
24 #include <afs/afs_sysnames.h>
25
26 #define AFS_DARWIN_ENV
27 #define AFS_DARWIN70_ENV
28 #define AFS_DARWIN80_ENV
29 #define AFS_DARWIN90_ENV
30 #define AFS_DARWIN100_ENV
31 #undef AFS_NONFSTRANS
32 #define AFS_NONFSTRANS
33 #define AFS_SYSCALL 230
34 #define AFS_NAMEI_ENV 1
35 #define DARWIN_REFBASE 3
36 #define AFS_WARNUSER_MARINER_ENV 1
37 #define AFS_CACHE_VNODE_PATH
38 #define NEED_IOCTL32
39
40 /* File system entry (used if mount.h doesn't define MOUNT_AFS */
41 #define AFS_MOUNT_AFS "afs"
42
43 /* Machine / Operating system information */
44 #if defined(__ppc__)
45 #define sys_ppc_darwin_12 1
46 #define sys_ppc_darwin_13 1
47 #define sys_ppc_darwin_14 1
48 #define sys_ppc_darwin_60 1
49 #define sys_ppc_darwin_70 1
50 #define sys_ppc_darwin_80 1
51 #define sys_ppc_darwin_90 1
52 #define sys_ppc_darwin_100 1
53 #define SYS_NAME "ppc_darwin_100"
54 #define SYS_NAME_ID SYS_NAME_ID_ppc_darwin_100
55 #define AFSBIG_ENDIAN 1
56 #elif defined(__ppc64__)
57 #define sys_ppc_darwin_12 1
58 #define sys_ppc_darwin_13 1
59 #define sys_ppc_darwin_14 1
60 #define sys_ppc_darwin_60 1
61 #define sys_ppc_darwin_70 1
62 #define sys_ppc_darwin_80 1
63 #define sys_ppc_darwin_90 1
64 #define sys_ppc_darwin_100 1
65 #define sys_ppc64_darwin_100 1
66 #define SYS_NAME "ppc64_darwin_100"
67 #define SYS_NAME_ID SYS_NAME_ID_ppc64_darwin_100
68 #define AFSBIG_ENDIAN 1
69 #elif defined(__i386__)
70 #define sys_x86_darwin_12 1
71 #define sys_x86_darwin_13 1
72 #define sys_x86_darwin_14 1
73 #define sys_x86_darwin_60 1
74 #define sys_x86_darwin_70 1
75 #define sys_x86_darwin_80 1
76 #define sys_x86_darwin_90 1
77 #define sys_x86_darwin_100 1
78 #define SYS_NAME "x86_darwin_100"
79 #define SYS_NAME_ID SYS_NAME_ID_x86_darwin_100
80 #define AFSLITTLE_ENDIAN 1
81 #elif defined(__amd64__)
82 #define sys_x86_darwin_12 1
83 #define sys_x86_darwin_13 1
84 #define sys_x86_darwin_14 1
85 #define sys_x86_darwin_60 1
86 #define sys_x86_darwin_70 1
87 #define sys_x86_darwin_80 1
88 #define sys_x86_darwin_90 1
89 #define sys_x86_darwin_100 1
90 #define sys_amd64_darwin_100 1
91 #define SYS_NAME "amd64_darwin_100"
92 #define SYS_NAME_ID SYS_NAME_ID_amd64_darwin_100
93 #define AFSLITTLE_ENDIAN 1
94 #elif defined(__arm__)
95 #define sys_arm_darwin_100 1
96 #define SYS_NAME "arm_darwin_100"
97 #define SYS_NAME_ID SYS_NAME_ID_arm_darwin_100
98 #define AFSLITTLE_ENDIAN 1
99 #else
100 #error Unsupported architecture
101 #endif
102 #define AFS_HAVE_FFS 1 /* Use system's ffs. */
103
104 #define AFS_GCPAGS 0
105 #define RXK_LISTENER_ENV 1
106
107
108 #ifndef IGNORE_STDS_H
109 /* a dodge to avoid including this in lwp process.s */
110 #define RTM_NEWADDR 0xc /* address being added to iface */
111 #define RTM_IFINFO 0xe /* iface going up/down etc. */
112 #define RTAX_NETMASK 2 /* netmask sockaddr present */
113 #define RTAX_IFA 5 /* interface addr sockaddr present */
114 #define RTAX_MAX 8 /* size of array to allocate */
115
116 struct rt_addrinfo {
117 int rti_addrs;
118 struct sockaddr *rti_info[RTAX_MAX];
119 };
120 #endif
121
122 #ifdef KERNEL
123 #undef MACRO_BEGIN
124 #undef MACRO_END
125 #include <kern/macro_help.h>
126 #define AFS_GLOBAL_SUNLOCK 1
127 #define AFS_VFS34 1 /* What is VFS34??? */
128 #define afsio_iov uio_iov
129 #define afsio_iovcnt uio_iovcnt
130 #define afsio_offset uio_offset
131 #define afsio_seg uio_segflg
132 #define afsio_resid uio_resid
133 #define AFS_UIOSYS UIO_SYSSPACE
134 #define AFS_UIOUSER UIO_USERSPACE
135 #define AFS_CLBYTES CLBYTES
136 #define osi_GetTime(x) microtime(x)
137 #define AFS_KALLOC(x) _MALLOC(x, M_TEMP, M_WAITOK)
138 #define AFS_KFREE(x,y) _FREE(x,M_TEMP)
139 #define v_count v_usecount
140 #define v_vfsp v_mount
141 #define vfs_bsize mnt_stat.f_bsize
142 #define vfs_fsid mnt_stat.f_fsid
143 #define va_nodeid va_fileid
144 #define vfs_vnodecovered mnt_vnodecovered
145 #define direct dirent
146
147 #define BIND_8_COMPAT
148
149 #endif
150 #endif /* AFS_PARAM_H */
151
152 #else /* !defined(UKERNEL) */
153
154 /* This section for user space compiles only */
155
156 #ifndef AFS_PARAM_H
157 #define AFS_PARAM_H
158
159 #define AFS_ENV 1
160 #define AFS_64BIT_CLIENT 1
161 #define AFS_64BIT_ENV 1 /* Defines afs_int32 as int, not long. */
162 #if defined(__ppc__)
163 #define AFS_PPC_ENV 1
164 #elif defined(__i386__) || defined(__amd64__)
165 #define AFS_X86_ENV 1
166 #elif defined(__arm__)
167 #define AFS_ARM_ENV 1
168 #define AFS_ARM_DARWIN_ENV 1
169 #else
170 #error Unsupported architecture
171 #endif
172 #ifdef __amd64__
173 #define AFS_64BITUSERPOINTER_ENV 1
174 #endif
175
176 #include <afs/afs_sysnames.h>
177 #define AFS_USERSPACE_ENV
178 #define AFS_USR_DARWIN_ENV
179 #define AFS_USR_DARWIN70_ENV
180 #define AFS_USR_DARWIN80_ENV
181 #define AFS_USR_DARWIN90_ENV
182 #define AFS_USR_DARWIN100_ENV
183 #undef AFS_NONFSTRANS
184 #define AFS_NONFSTRANS
185 #define AFS_SYSCALL 230
186 #define DARWIN_REFBASE 0
187 #define AFS_WARNUSER_MARINER_ENV 1
188
189 /* File system entry (used if mount.h doesn't define MOUNT_AFS */
190 #define AFS_MOUNT_AFS "afs"
191
192 /* Machine / Operating system information */
193 #if defined(__ppc__)
194 #define sys_ppc_darwin_12 1
195 #define sys_ppc_darwin_13 1
196 #define sys_ppc_darwin_14 1
197 #define sys_ppc_darwin_60 1
198 #define sys_ppc_darwin_70 1
199 #define sys_ppc_darwin_80 1
200 #define sys_ppc_darwin_90 1
201 #define sys_ppc_darwin_100 1
202 #define SYS_NAME "ppc_darwin_100"
203 #define SYS_NAME_ID SYS_NAME_ID_ppc_darwin_100
204 #define AFSBIG_ENDIAN 1
205 #elif defined(__i386__)
206 #define sys_x86_darwin_12 1
207 #define sys_x86_darwin_13 1
208 #define sys_x86_darwin_14 1
209 #define sys_x86_darwin_60 1
210 #define sys_x86_darwin_70 1
211 #define sys_x86_darwin_80 1
212 #define sys_x86_darwin_100 1
213 #define SYS_NAME "x86_darwin_100"
214 #define SYS_NAME_ID SYS_NAME_ID_x86_darwin_100
215 #define AFSLITTLE_ENDIAN 1
216 #elif defined(__amd64__)
217 #define sys_x86_darwin_12 1
218 #define sys_x86_darwin_13 1
219 #define sys_x86_darwin_14 1
220 #define sys_x86_darwin_60 1
221 #define sys_x86_darwin_70 1
222 #define sys_x86_darwin_80 1
223 #define sys_x86_darwin_100 1
224 #define sys_amd64_darwin_100 1
225 #define SYS_NAME "amd64_darwin_100"
226 #define SYS_NAME_ID SYS_NAME_ID_amd64_darwin_100
227 #define AFSLITTLE_ENDIAN 1
228 #elif defined(__arm__)
229 #define sys_arm_darwin_100 1
230 #define SYS_NAME "arm_darwin_100"
231 #define SYS_NAME_ID SYS_NAME_ID_arm_darwin_100
232 #define AFSLITTLE_ENDIAN 1
233 #else
234 #error Unsupported architecture
235 #endif
236 #define AFS_HAVE_FFS 1 /* Use system's ffs. */
237
238 #define AFS_UIOSYS UIO_SYSSPACE
239 #define AFS_UIOUSER UIO_USERSPACE
240
241 #define AFS_GCPAGS 0 /* if nonzero, garbage collect PAGs */
242 #define RXK_LISTENER_ENV 1
243
244 #define AFS_VFS34 1 /* What is VFS34??? */
245 #define afsio_iov uio_iov
246 #define afsio_iovcnt uio_iovcnt
247 #define afsio_offset uio_offset
248 #define afsio_seg uio_segflg
249 #define afsio_resid uio_resid
250 #define AFS_UIOSYS UIO_SYSSPACE
251 #define AFS_UIOUSER UIO_USERSPACE
252 #define VATTR_NULL usr_vattr_null
253
254 #define AFS_DIRENT
255 #ifndef CMSERVERPREF
256 #define CMSERVERPREF
257 #endif
258
259 #define BIND_8_COMPAT
260 #endif /* AFS_PARAM_H */
261
262 #endif /* !defined(UKERNEL) */