2 /* This section for kernel libafs compiles only */
8 #define AFS_64BIT_ENV 1 /* Defines afs_int32 as int, not long. */
9 #define AFS_64BIT_CLIENT 1
10 #define AFS_64BIT_IOPS_ENV 1
13 #elif defined(__i386__) || defined(__amd64__)
16 #error Unsupported architecture
19 #define AFS_64BITUSERPOINTER_ENV 1
21 #define AFS_64BIT_SIZEOF 1 /* seriously? */
22 #include <afs/afs_sysnames.h>
24 #define AFS_DARWIN_ENV
25 #define AFS_DARWIN70_ENV
26 #define AFS_DARWIN80_ENV
27 #define AFS_DARWIN90_ENV
28 #define AFS_DARWIN100_ENV
29 #define AFS_DARWIN110_ENV
30 #define AFS_DARWIN120_ENV
31 #define AFS_DARWIN130_ENV
32 #define AFS_DARWIN140_ENV
33 #define AFS_DARWIN150_ENV
35 #define AFS_NONFSTRANS
36 #define AFS_SYSCALL 230
37 #define AFS_NAMEI_ENV 1
38 #define DARWIN_REFBASE 3
39 #define AFS_WARNUSER_MARINER_ENV 1
40 #define AFS_CACHE_VNODE_PATH
44 /* File system entry (used if mount.h doesn't define MOUNT_AFS */
45 #define AFS_MOUNT_AFS "afs"
47 /* Machine / Operating system information */
49 #define sys_ppc_darwin_12 1
50 #define sys_ppc_darwin_13 1
51 #define sys_ppc_darwin_14 1
52 #define sys_ppc_darwin_60 1
53 #define sys_ppc_darwin_70 1
54 #define sys_ppc_darwin_80 1
55 #define sys_ppc_darwin_90 1
56 #define sys_ppc_darwin_100 1
57 #define SYS_NAME "ppc_darwin_100"
58 #define SYS_NAME_ID SYS_NAME_ID_ppc_darwin_100
59 #define AFSBIG_ENDIAN 1
60 #elif defined(__ppc64__)
61 #define sys_ppc_darwin_12 1
62 #define sys_ppc_darwin_13 1
63 #define sys_ppc_darwin_14 1
64 #define sys_ppc_darwin_60 1
65 #define sys_ppc_darwin_70 1
66 #define sys_ppc_darwin_80 1
67 #define sys_ppc_darwin_90 1
68 #define sys_ppc_darwin_100 1
69 #define sys_ppc64_darwin_100 1
70 #define SYS_NAME "ppc64_darwin_100"
71 #define SYS_NAME_ID SYS_NAME_ID_ppc64_darwin_100
72 #define AFSBIG_ENDIAN 1
73 #elif defined(__i386__)
74 #define sys_x86_darwin_12 1
75 #define sys_x86_darwin_13 1
76 #define sys_x86_darwin_14 1
77 #define sys_x86_darwin_60 1
78 #define sys_x86_darwin_70 1
79 #define sys_x86_darwin_80 1
80 #define sys_x86_darwin_90 1
81 #define sys_x86_darwin_100 1
82 #define sys_x86_darwin_110 1
83 #define sys_x86_darwin_120 1
84 #define sys_x86_darwin_130 1
85 #define sys_x86_darwin_140 1
86 #define sys_x86_darwin_150 1
87 #define SYS_NAME "x86_darwin_150"
88 #define SYS_NAME_ID SYS_NAME_ID_x86_darwin_150
89 #define AFSLITTLE_ENDIAN 1
90 #elif defined(__amd64__)
91 #define sys_x86_darwin_12 1
92 #define sys_x86_darwin_13 1
93 #define sys_x86_darwin_14 1
94 #define sys_x86_darwin_60 1
95 #define sys_x86_darwin_70 1
96 #define sys_x86_darwin_80 1
97 #define sys_x86_darwin_90 1
98 #define sys_x86_darwin_100 1
99 #define sys_amd64_darwin_100 1
100 #define sys_amd64_darwin_110 1
101 #define sys_amd64_darwin_120 1
102 #define sys_amd64_darwin_130 1
103 #define sys_amd64_darwin_140 1
104 #define sys_amd64_darwin_150 1
105 #define SYS_NAME "amd64_darwin_150"
106 #define SYS_NAME_ID SYS_NAME_ID_amd64_darwin_150
107 #define AFSLITTLE_ENDIAN 1
109 #error Unsupported architecture
111 #define AFS_HAVE_FFS 1 /* Use system's ffs. */
114 #define RXK_UPCALL_ENV 1
115 #define RXK_TIMEDSLEEP_ENV 1
120 #include <kern/macro_help.h>
121 #define AFS_GLOBAL_SUNLOCK 1
122 #define AFS_VFS34 1 /* What is VFS34??? */
123 #define afsio_iov uio_iov
124 #define afsio_iovcnt uio_iovcnt
125 #define afsio_offset uio_offset
126 #define afsio_seg uio_segflg
127 #define afsio_resid uio_resid
128 #define AFS_UIOSYS UIO_SYSSPACE
129 #define AFS_UIOUSER UIO_USERSPACE
130 #define AFS_CLBYTES CLBYTES
131 #define AFS_KALLOC(x) _MALLOC(x, M_TEMP, M_WAITOK)
132 #define AFS_KFREE(x,y) _FREE(x,M_TEMP)
133 #define v_count v_usecount
134 #define v_vfsp v_mount
135 #define vfs_bsize mnt_stat.f_bsize
136 #define vfs_fsid mnt_stat.f_fsid
137 #define va_nodeid va_fileid
138 #define vfs_vnodecovered mnt_vnodecovered
139 #define direct dirent
141 #define BIND_8_COMPAT
144 #endif /* AFS_PARAM_H */
146 #else /* !defined(UKERNEL) */
148 /* This section for user space compiles only */
154 #define AFS_64BIT_ENV 1 /* Defines afs_int32 as int, not long. */
155 #define AFS_64BIT_CLIENT 1
157 #define AFS_PPC_ENV 1
158 #elif defined(__i386__) || defined(__amd64__)
159 #define AFS_X86_ENV 1
161 #error Unsupported architecture
164 #define AFS_64BITUSERPOINTER_ENV 1
167 #include <afs/afs_sysnames.h>
168 #define AFS_USERSPACE_ENV
169 #define AFS_USR_DARWIN_ENV
170 #define AFS_USR_DARWIN70_ENV
171 #define AFS_USR_DARWIN80_ENV
172 #define AFS_USR_DARWIN90_ENV
173 #define AFS_USR_DARWIN100_ENV
174 #define AFS_USR_DARWIN110_ENV
175 #define AFS_USR_DARWIN120_ENV
176 #define AFS_USR_DARWIN130_ENV
177 #define AFS_USR_DARWIN140_ENV
178 #define AFS_USR_DARWIN150_ENV
179 #undef AFS_NONFSTRANS
180 #define AFS_NONFSTRANS
181 #define AFS_SYSCALL 230
182 #define DARWIN_REFBASE 0
183 #define AFS_WARNUSER_MARINER_ENV 1
185 /* File system entry (used if mount.h doesn't define MOUNT_AFS */
186 #define AFS_MOUNT_AFS "afs"
188 /* Machine / Operating system information */
190 #define sys_ppc_darwin_12 1
191 #define sys_ppc_darwin_13 1
192 #define sys_ppc_darwin_14 1
193 #define sys_ppc_darwin_60 1
194 #define sys_ppc_darwin_70 1
195 #define sys_ppc_darwin_80 1
196 #define sys_ppc_darwin_90 1
197 #define sys_ppc_darwin_100 1
198 #define SYS_NAME "ppc_darwin_100"
199 #define SYS_NAME_ID SYS_NAME_ID_ppc_darwin_100
200 #define AFSBIG_ENDIAN 1
201 #elif defined(__i386__)
202 #define sys_x86_darwin_12 1
203 #define sys_x86_darwin_13 1
204 #define sys_x86_darwin_14 1
205 #define sys_x86_darwin_60 1
206 #define sys_x86_darwin_70 1
207 #define sys_x86_darwin_80 1
208 #define sys_x86_darwin_100 1
209 #define sys_x86_darwin_110 1
210 #define sys_x86_darwin_120 1
211 #define sys_x86_darwin_130 1
212 #define sys_x64_darwin_140 1
213 #define sys_x64_darwin_150 1
214 #define SYS_NAME "x86_darwin_150"
215 #define SYS_NAME_ID SYS_NAME_ID_x86_darwin_150
216 #define AFSLITTLE_ENDIAN 1
217 #elif defined(__amd64__)
218 #define sys_x86_darwin_12 1
219 #define sys_x86_darwin_13 1
220 #define sys_x86_darwin_14 1
221 #define sys_x86_darwin_60 1
222 #define sys_x86_darwin_70 1
223 #define sys_x86_darwin_80 1
224 #define sys_x86_darwin_100 1
225 #define sys_amd64_darwin_100 1
226 #define sys_amd64_darwin_110 1
227 #define sys_amd64_darwin_120 1
228 #define sys_amd64_darwin_130 1
229 #define sys_amd64_darwin_140 1
230 #define sys_amd64_darwin_150 1
231 #define SYS_NAME "amd64_darwin_150"
232 #define SYS_NAME_ID SYS_NAME_ID_amd64_darwin_150
233 #define AFSLITTLE_ENDIAN 1
235 #error Unsupported architecture
237 #define AFS_HAVE_FFS 1 /* Use system's ffs. */
239 #define AFS_UIOSYS UIO_SYSSPACE
240 #define AFS_UIOUSER UIO_USERSPACE
242 #define AFS_GCPAGS 0 /* if nonzero, garbage collect PAGs */
243 #define RXK_LISTENER_ENV 1
245 #define AFS_VFS34 1 /* What is VFS34??? */
246 #define afsio_iov uio_iov
247 #define afsio_iovcnt uio_iovcnt
248 #define afsio_offset uio_offset
249 #define afsio_seg uio_segflg
250 #define afsio_resid uio_resid
251 #define AFS_UIOSYS UIO_SYSSPACE
252 #define AFS_UIOUSER UIO_USERSPACE
253 #define VATTR_NULL usr_vattr_null
260 #define BIND_8_COMPAT
261 #endif /* AFS_PARAM_H */
263 #endif /* !defined(UKERNEL) */