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
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 */
118 struct sockaddr *rti_info[RTAX_MAX];
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
147 #define BIND_8_COMPAT
150 #endif /* AFS_PARAM_H */
152 #else /* !defined(UKERNEL) */
154 /* This section for user space compiles only */
161 #define AFS_PPC_ENV 1
162 #elif defined(__i386__) || defined(__amd64__)
163 #define AFS_X86_ENV 1
164 #elif defined(__arm__)
165 #define AFS_ARM_ENV 1
166 #define AFS_ARM_DARWIN_ENV 1
168 #error Unsupported architecture
171 #define AFS_64BITUSERPOINTER_ENV 1
174 #include <afs/afs_sysnames.h>
175 #define AFS_USERSPACE_ENV
176 #define AFS_USR_DARWIN_ENV
177 #define AFS_USR_DARWIN70_ENV
178 #define AFS_USR_DARWIN80_ENV
179 #define AFS_USR_DARWIN90_ENV
180 #define AFS_USR_DARWIN100_ENV
181 #undef AFS_NONFSTRANS
182 #define AFS_NONFSTRANS
183 #define AFS_SYSCALL 230
184 #define DARWIN_REFBASE 0
185 #define AFS_WARNUSER_MARINER_ENV 1
187 /* File system entry (used if mount.h doesn't define MOUNT_AFS */
188 #define AFS_MOUNT_AFS "afs"
190 /* Machine / Operating system information */
192 #define sys_ppc_darwin_12 1
193 #define sys_ppc_darwin_13 1
194 #define sys_ppc_darwin_14 1
195 #define sys_ppc_darwin_60 1
196 #define sys_ppc_darwin_70 1
197 #define sys_ppc_darwin_80 1
198 #define sys_ppc_darwin_90 1
199 #define sys_ppc_darwin_100 1
200 #define SYS_NAME "ppc_darwin_100"
201 #define SYS_NAME_ID SYS_NAME_ID_ppc_darwin_100
202 #define AFSBIG_ENDIAN 1
203 #elif defined(__i386__)
204 #define sys_x86_darwin_12 1
205 #define sys_x86_darwin_13 1
206 #define sys_x86_darwin_14 1
207 #define sys_x86_darwin_60 1
208 #define sys_x86_darwin_70 1
209 #define sys_x86_darwin_80 1
210 #define sys_x86_darwin_100 1
211 #define SYS_NAME "x86_darwin_100"
212 #define SYS_NAME_ID SYS_NAME_ID_x86_darwin_100
213 #define AFSLITTLE_ENDIAN 1
214 #elif defined(__amd64__)
215 #define sys_x86_darwin_12 1
216 #define sys_x86_darwin_13 1
217 #define sys_x86_darwin_14 1
218 #define sys_x86_darwin_60 1
219 #define sys_x86_darwin_70 1
220 #define sys_x86_darwin_80 1
221 #define sys_x86_darwin_100 1
222 #define sys_amd64_darwin_100 1
223 #define SYS_NAME "amd64_darwin_100"
224 #define SYS_NAME_ID SYS_NAME_ID_amd64_darwin_100
225 #define AFSLITTLE_ENDIAN 1
226 #elif defined(__arm__)
227 #define sys_arm_darwin_100 1
228 #define SYS_NAME "arm_darwin_100"
229 #define SYS_NAME_ID SYS_NAME_ID_arm_darwin_100
230 #define AFSLITTLE_ENDIAN 1
232 #error Unsupported architecture
234 #define AFS_HAVE_FFS 1 /* Use system's ffs. */
236 #define AFS_UIOSYS UIO_SYSSPACE
237 #define AFS_UIOUSER UIO_USERSPACE
239 #define AFS_GCPAGS 0 /* if nonzero, garbage collect PAGs */
240 #define RXK_LISTENER_ENV 1
242 #define AFS_VFS34 1 /* What is VFS34??? */
243 #define afsio_iov uio_iov
244 #define afsio_iovcnt uio_iovcnt
245 #define afsio_offset uio_offset
246 #define afsio_seg uio_segflg
247 #define afsio_resid uio_resid
248 #define AFS_UIOSYS UIO_SYSSPACE
249 #define AFS_UIOUSER UIO_USERSPACE
250 #define VATTR_NULL usr_vattr_null
257 #define BIND_8_COMPAT
258 #endif /* AFS_PARAM_H */
260 #endif /* !defined(UKERNEL) */