2 /* This section for kernel libafs compiles only */
8 #define AFS_64BIT_CLIENT 1
9 #define AFS_64BIT_IOPS_ENV 1
12 #elif defined(__i386__) || defined(__amd64__)
14 #elif defined(__arm__)
16 #define AFS_ARM_DARWIN_ENV 1
18 #error Unsupported architecture
21 #define AFS_64BITUSERPOINTER_ENV 1
23 #define AFS_64BIT_SIZEOF 1 /* seriously? */
24 #include <afs/afs_sysnames.h>
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
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
40 /* File system entry (used if mount.h doesn't define MOUNT_AFS */
41 #define AFS_MOUNT_AFS "afs"
43 /* Machine / Operating system information */
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
100 #error Unsupported architecture
102 #define AFS_HAVE_FFS 1 /* Use system's ffs. */
105 #define RXK_LISTENER_ENV 1
107 #define RTM_NEWADDR 0xc /* address being added to iface */
108 #define RTM_IFINFO 0xe /* iface going up/down etc. */
109 #define RTAX_NETMASK 2 /* netmask sockaddr present */
110 #define RTAX_IFA 5 /* interface addr sockaddr present */
111 #define RTAX_MAX 8 /* size of array to allocate */
115 struct sockaddr *rti_info[RTAX_MAX];
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 osi_GetTime(x) microtime(x)
132 #define AFS_KALLOC(x) _MALLOC(x, M_TEMP, M_WAITOK)
133 #define AFS_KFREE(x,y) _FREE(x,M_TEMP)
134 #define v_count v_usecount
135 #define v_vfsp v_mount
136 #define vfs_bsize mnt_stat.f_bsize
137 #define vfs_fsid mnt_stat.f_fsid
138 #define va_nodeid va_fileid
139 #define vfs_vnodecovered mnt_vnodecovered
140 #define direct dirent
142 #define BIND_8_COMPAT
145 #endif /* AFS_PARAM_H */
147 #else /* !defined(UKERNEL) */
149 /* This section for user space compiles only */
156 #define AFS_PPC_ENV 1
157 #elif defined(__i386__) || defined(__amd64__)
158 #define AFS_X86_ENV 1
159 #elif defined(__arm__)
160 #define AFS_ARM_ENV 1
161 #define AFS_ARM_DARWIN_ENV 1
163 #error Unsupported architecture
166 #define AFS_64BITUSERPOINTER_ENV 1
169 #include <afs/afs_sysnames.h>
170 #define AFS_USERSPACE_ENV
171 #define AFS_USR_DARWIN_ENV
172 #define AFS_USR_DARWIN70_ENV
173 #define AFS_USR_DARWIN80_ENV
174 #define AFS_USR_DARWIN90_ENV
175 #define AFS_USR_DARWIN100_ENV
176 #undef AFS_NONFSTRANS
177 #define AFS_NONFSTRANS
178 #define AFS_SYSCALL 230
179 #define DARWIN_REFBASE 0
180 #define AFS_WARNUSER_MARINER_ENV 1
182 /* File system entry (used if mount.h doesn't define MOUNT_AFS */
183 #define AFS_MOUNT_AFS "afs"
185 /* Machine / Operating system information */
187 #define sys_ppc_darwin_12 1
188 #define sys_ppc_darwin_13 1
189 #define sys_ppc_darwin_14 1
190 #define sys_ppc_darwin_60 1
191 #define sys_ppc_darwin_70 1
192 #define sys_ppc_darwin_80 1
193 #define sys_ppc_darwin_90 1
194 #define sys_ppc_darwin_100 1
195 #define SYS_NAME "ppc_darwin_100"
196 #define SYS_NAME_ID SYS_NAME_ID_ppc_darwin_100
197 #define AFSBIG_ENDIAN 1
198 #elif defined(__i386__)
199 #define sys_x86_darwin_12 1
200 #define sys_x86_darwin_13 1
201 #define sys_x86_darwin_14 1
202 #define sys_x86_darwin_60 1
203 #define sys_x86_darwin_70 1
204 #define sys_x86_darwin_80 1
205 #define sys_x86_darwin_100 1
206 #define SYS_NAME "x86_darwin_100"
207 #define SYS_NAME_ID SYS_NAME_ID_x86_darwin_100
208 #define AFSLITTLE_ENDIAN 1
209 #elif defined(__amd64__)
210 #define sys_x86_darwin_12 1
211 #define sys_x86_darwin_13 1
212 #define sys_x86_darwin_14 1
213 #define sys_x86_darwin_60 1
214 #define sys_x86_darwin_70 1
215 #define sys_x86_darwin_80 1
216 #define sys_x86_darwin_100 1
217 #define sys_amd64_darwin_100 1
218 #define SYS_NAME "amd64_darwin_100"
219 #define SYS_NAME_ID SYS_NAME_ID_amd64_darwin_100
220 #define AFSLITTLE_ENDIAN 1
221 #elif defined(__arm__)
222 #define sys_arm_darwin_100 1
223 #define SYS_NAME "arm_darwin_100"
224 #define SYS_NAME_ID SYS_NAME_ID_arm_darwin_100
225 #define AFSLITTLE_ENDIAN 1
227 #error Unsupported architecture
229 #define AFS_HAVE_FFS 1 /* Use system's ffs. */
231 #define AFS_UIOSYS UIO_SYSSPACE
232 #define AFS_UIOUSER UIO_USERSPACE
234 #define AFS_GCPAGS 0 /* if nonzero, garbage collect PAGs */
235 #define RXK_LISTENER_ENV 1
237 #define AFS_VFS34 1 /* What is VFS34??? */
238 #define afsio_iov uio_iov
239 #define afsio_iovcnt uio_iovcnt
240 #define afsio_offset uio_offset
241 #define afsio_seg uio_segflg
242 #define afsio_resid uio_resid
243 #define AFS_UIOSYS UIO_SYSSPACE
244 #define AFS_UIOUSER UIO_USERSPACE
245 #define VATTR_NULL usr_vattr_null
252 #define BIND_8_COMPAT
253 #endif /* AFS_PARAM_H */
255 #endif /* !defined(UKERNEL) */