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
33 #define AFS_NONFSTRANS
34 #define AFS_SYSCALL 230
35 #define AFS_NAMEI_ENV 1
36 #define DARWIN_REFBASE 3
37 #define AFS_WARNUSER_MARINER_ENV 1
38 #define AFS_CACHE_VNODE_PATH
42 /* File system entry (used if mount.h doesn't define MOUNT_AFS */
43 #define AFS_MOUNT_AFS "afs"
45 /* Machine / Operating system information */
47 #define sys_ppc_darwin_12 1
48 #define sys_ppc_darwin_13 1
49 #define sys_ppc_darwin_14 1
50 #define sys_ppc_darwin_60 1
51 #define sys_ppc_darwin_70 1
52 #define sys_ppc_darwin_80 1
53 #define sys_ppc_darwin_90 1
54 #define sys_ppc_darwin_100 1
55 #define SYS_NAME "ppc_darwin_100"
56 #define SYS_NAME_ID SYS_NAME_ID_ppc_darwin_100
57 #define AFSBIG_ENDIAN 1
58 #elif defined(__ppc64__)
59 #define sys_ppc_darwin_12 1
60 #define sys_ppc_darwin_13 1
61 #define sys_ppc_darwin_14 1
62 #define sys_ppc_darwin_60 1
63 #define sys_ppc_darwin_70 1
64 #define sys_ppc_darwin_80 1
65 #define sys_ppc_darwin_90 1
66 #define sys_ppc_darwin_100 1
67 #define sys_ppc64_darwin_100 1
68 #define SYS_NAME "ppc64_darwin_100"
69 #define SYS_NAME_ID SYS_NAME_ID_ppc64_darwin_100
70 #define AFSBIG_ENDIAN 1
71 #elif defined(__i386__)
72 #define sys_x86_darwin_12 1
73 #define sys_x86_darwin_13 1
74 #define sys_x86_darwin_14 1
75 #define sys_x86_darwin_60 1
76 #define sys_x86_darwin_70 1
77 #define sys_x86_darwin_80 1
78 #define sys_x86_darwin_90 1
79 #define sys_x86_darwin_100 1
80 #define sys_x86_darwin_110 1
81 #define sys_x86_darwin_120 1
82 #define sys_x86_darwin_130 1
83 #define SYS_NAME "x86_darwin_130"
84 #define SYS_NAME_ID SYS_NAME_ID_x86_darwin_130
85 #define AFSLITTLE_ENDIAN 1
86 #elif defined(__amd64__)
87 #define sys_x86_darwin_12 1
88 #define sys_x86_darwin_13 1
89 #define sys_x86_darwin_14 1
90 #define sys_x86_darwin_60 1
91 #define sys_x86_darwin_70 1
92 #define sys_x86_darwin_80 1
93 #define sys_x86_darwin_90 1
94 #define sys_x86_darwin_100 1
95 #define sys_amd64_darwin_100 1
96 #define sys_amd64_darwin_110 1
97 #define sys_amd64_darwin_120 1
98 #define sys_amd64_darwin_130 1
99 #define SYS_NAME "amd64_darwin_130"
100 #define SYS_NAME_ID SYS_NAME_ID_amd64_darwin_130
101 #define AFSLITTLE_ENDIAN 1
103 #error Unsupported architecture
105 #define AFS_HAVE_FFS 1 /* Use system's ffs. */
108 #define RXK_UPCALL_ENV 1
109 #define RXK_TIMEDSLEEP_ENV 1
114 #include <kern/macro_help.h>
115 #define AFS_GLOBAL_SUNLOCK 1
116 #define AFS_VFS34 1 /* What is VFS34??? */
117 #define afsio_iov uio_iov
118 #define afsio_iovcnt uio_iovcnt
119 #define afsio_offset uio_offset
120 #define afsio_seg uio_segflg
121 #define afsio_resid uio_resid
122 #define AFS_UIOSYS UIO_SYSSPACE
123 #define AFS_UIOUSER UIO_USERSPACE
124 #define AFS_CLBYTES CLBYTES
125 #define osi_GetTime(x) microtime(x)
126 #define AFS_KALLOC(x) _MALLOC(x, M_TEMP, M_WAITOK)
127 #define AFS_KFREE(x,y) _FREE(x,M_TEMP)
128 #define v_count v_usecount
129 #define v_vfsp v_mount
130 #define vfs_bsize mnt_stat.f_bsize
131 #define vfs_fsid mnt_stat.f_fsid
132 #define va_nodeid va_fileid
133 #define vfs_vnodecovered mnt_vnodecovered
134 #define direct dirent
136 #define BIND_8_COMPAT
139 #endif /* AFS_PARAM_H */
141 #else /* !defined(UKERNEL) */
143 /* This section for user space compiles only */
149 #define AFS_64BIT_ENV 1 /* Defines afs_int32 as int, not long. */
150 #define AFS_64BIT_CLIENT 1
152 #define AFS_PPC_ENV 1
153 #elif defined(__i386__) || defined(__amd64__)
154 #define AFS_X86_ENV 1
156 #error Unsupported architecture
159 #define AFS_64BITUSERPOINTER_ENV 1
162 #include <afs/afs_sysnames.h>
163 #define AFS_USERSPACE_ENV
164 #define AFS_USR_DARWIN_ENV
165 #define AFS_USR_DARWIN70_ENV
166 #define AFS_USR_DARWIN80_ENV
167 #define AFS_USR_DARWIN90_ENV
168 #define AFS_USR_DARWIN100_ENV
169 #define AFS_USR_DARWIN110_ENV
170 #define AFS_USR_DARWIN120_ENV
171 #define AFS_USR_DARWIN130_ENV
172 #undef AFS_NONFSTRANS
173 #define AFS_NONFSTRANS
174 #define AFS_SYSCALL 230
175 #define DARWIN_REFBASE 0
176 #define AFS_WARNUSER_MARINER_ENV 1
178 /* File system entry (used if mount.h doesn't define MOUNT_AFS */
179 #define AFS_MOUNT_AFS "afs"
181 /* Machine / Operating system information */
183 #define sys_ppc_darwin_12 1
184 #define sys_ppc_darwin_13 1
185 #define sys_ppc_darwin_14 1
186 #define sys_ppc_darwin_60 1
187 #define sys_ppc_darwin_70 1
188 #define sys_ppc_darwin_80 1
189 #define sys_ppc_darwin_90 1
190 #define sys_ppc_darwin_100 1
191 #define SYS_NAME "ppc_darwin_100"
192 #define SYS_NAME_ID SYS_NAME_ID_ppc_darwin_100
193 #define AFSBIG_ENDIAN 1
194 #elif defined(__i386__)
195 #define sys_x86_darwin_12 1
196 #define sys_x86_darwin_13 1
197 #define sys_x86_darwin_14 1
198 #define sys_x86_darwin_60 1
199 #define sys_x86_darwin_70 1
200 #define sys_x86_darwin_80 1
201 #define sys_x86_darwin_100 1
202 #define sys_x86_darwin_110 1
203 #define sys_x86_darwin_120 1
204 #define sys_x86_darwin_130 1
205 #define SYS_NAME "x86_darwin_130"
206 #define SYS_NAME_ID SYS_NAME_ID_x86_darwin_130
207 #define AFSLITTLE_ENDIAN 1
208 #elif defined(__amd64__)
209 #define sys_x86_darwin_12 1
210 #define sys_x86_darwin_13 1
211 #define sys_x86_darwin_14 1
212 #define sys_x86_darwin_60 1
213 #define sys_x86_darwin_70 1
214 #define sys_x86_darwin_80 1
215 #define sys_x86_darwin_100 1
216 #define sys_amd64_darwin_100 1
217 #define sys_amd64_darwin_110 1
218 #define sys_amd64_darwin_120 1
219 #define sys_amd64_darwin_130 1
220 #define SYS_NAME "amd64_darwin_130"
221 #define SYS_NAME_ID SYS_NAME_ID_amd64_darwin_130
222 #define AFSLITTLE_ENDIAN 1
224 #error Unsupported architecture
226 #define AFS_HAVE_FFS 1 /* Use system's ffs. */
228 #define AFS_UIOSYS UIO_SYSSPACE
229 #define AFS_UIOUSER UIO_USERSPACE
231 #define AFS_GCPAGS 0 /* if nonzero, garbage collect PAGs */
232 #define RXK_LISTENER_ENV 1
234 #define AFS_VFS34 1 /* What is VFS34??? */
235 #define afsio_iov uio_iov
236 #define afsio_iovcnt uio_iovcnt
237 #define afsio_offset uio_offset
238 #define afsio_seg uio_segflg
239 #define afsio_resid uio_resid
240 #define AFS_UIOSYS UIO_SYSSPACE
241 #define AFS_UIOUSER UIO_USERSPACE
242 #define VATTR_NULL usr_vattr_null
249 #define BIND_8_COMPAT
250 #endif /* AFS_PARAM_H */
252 #endif /* !defined(UKERNEL) */