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