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__)
16 #error Unsupported architecture
18 #define AFS_VFSINCL_ENV 1
20 #include <afs/afs_sysnames.h>
22 #define AFS_DARWIN_ENV
23 #define AFS_DARWIN13_ENV
24 #define AFS_DARWIN14_ENV
25 #define AFS_DARWIN60_ENV
26 #define AFS_DARWIN70_ENV
27 #define AFS_DARWIN80_ENV
28 #define AFS_DARWIN90_ENV
29 #define AFS_NONFSTRANS
30 #define AFS_SYSCALL 230
31 #define AFS_NAMEI_ENV 1
32 #define DARWIN_REFBASE 3
34 /* File system entry (used if mount.h doesn't define MOUNT_AFS */
35 #define AFS_MOUNT_AFS "afs"
37 /* Machine / Operating system information */
39 #define sys_ppc_darwin_12 1
40 #define sys_ppc_darwin_13 1
41 #define sys_ppc_darwin_14 1
42 #define sys_ppc_darwin_60 1
43 #define sys_ppc_darwin_70 1
44 #define sys_ppc_darwin_80 1
45 #define sys_ppc_darwin_90 1
46 #define SYS_NAME "ppc_darwin_90"
47 #define SYS_NAME_ID SYS_NAME_ID_ppc_darwin_90
48 #define AFSBIG_ENDIAN 1
49 #elif defined(__i386__)
50 #define sys_x86_darwin_12 1
51 #define sys_x86_darwin_13 1
52 #define sys_x86_darwin_14 1
53 #define sys_x86_darwin_60 1
54 #define sys_x86_darwin_70 1
55 #define sys_x86_darwin_80 1
56 #define sys_x86_darwin_90 1
57 #define SYS_NAME "x86_darwin_90"
58 #define SYS_NAME_ID SYS_NAME_ID_x86_darwin_90
59 #define AFSLITTLE_ENDIAN 1
61 #error Unsupported architecture
63 #define AFS_HAVE_FFS 1 /* Use system's ffs. */
66 #define RXK_LISTENER_ENV 1
71 #include <kern/macro_help.h>
72 #define AFS_GLOBAL_SUNLOCK 1
73 #define AFS_VFS34 1 /* What is VFS34??? */
74 #define afsio_iov uio_iov
75 #define afsio_iovcnt uio_iovcnt
76 #define afsio_offset uio_offset
77 #define afsio_seg uio_segflg
78 #define afsio_resid uio_resid
79 #define AFS_UIOSYS UIO_SYSSPACE
80 #define AFS_UIOUSER UIO_USERSPACE
81 #define AFS_CLBYTES CLBYTES
82 #define osi_GetTime(x) microtime(x)
83 #define AFS_KALLOC(x) _MALLOC(x, M_TEMP, M_WAITOK)
84 #define AFS_KFREE(x,y) _FREE(x,M_TEMP)
85 #define v_count v_usecount
86 #define v_vfsp v_mount
87 #define vfs_bsize mnt_stat.f_bsize
88 #define vfs_fsid mnt_stat.f_fsid
89 #define va_nodeid va_fileid
90 #define vfs_vnodecovered mnt_vnodecovered
96 #endif /* AFS_PARAM_H */
98 #else /* !defined(UKERNEL) */
100 /* This section for user space compiles only */
105 #define AFS_VFSINCL_ENV 1 /* NOBODY uses this.... */
107 #define AFS_64BIT_ENV 1 /* Defines afs_int32 as int, not long. */
109 #define AFS_PPC_ENV 1
110 #elif defined(__i386__)
111 #define AFS_X86_ENV 1
113 #error Unsupported architecture
116 #include <afs/afs_sysnames.h>
117 #define AFS_USERSPACE_ENV
118 #define AFS_USR_DARWIN_ENV
119 #define AFS_USR_DARWIN13_ENV
120 #define AFS_USR_DARWIN14_ENV
121 #define AFS_USR_DARWIN60_ENV
122 #define AFS_USR_DARWIN70_ENV
123 #define AFS_USR_DARWIN80_ENV
124 #define AFS_USR_DARWIN90_ENV
125 #define AFS_NONFSTRANS
126 #define AFS_SYSCALL 230
127 #define DARWIN_REFBASE 0
129 /* File system entry (used if mount.h doesn't define MOUNT_AFS */
130 #define AFS_MOUNT_AFS "afs"
132 /* Machine / Operating system information */
134 #define sys_ppc_darwin_12 1
135 #define sys_ppc_darwin_13 1
136 #define sys_ppc_darwin_14 1
137 #define sys_ppc_darwin_60 1
138 #define sys_ppc_darwin_70 1
139 #define sys_ppc_darwin_80 1
140 #define sys_ppc_darwin_90 1
141 #define SYS_NAME "ppc_darwin_90"
142 #define SYS_NAME_ID SYS_NAME_ID_ppc_darwin_90
143 #define AFSBIG_ENDIAN 1
144 #elif defined(__i386__)
145 #define sys_x86_darwin_12 1
146 #define sys_x86_darwin_13 1
147 #define sys_x86_darwin_14 1
148 #define sys_x86_darwin_60 1
149 #define sys_x86_darwin_70 1
150 #define sys_x86_darwin_80 1
151 #define sys_x86_darwin_90 1
152 #define SYS_NAME "x86_darwin_90"
153 #define SYS_NAME_ID SYS_NAME_ID_x86_darwin_90
154 #define AFSLITTLE_ENDIAN 1
156 #error Unsupported architecture
158 #define AFS_HAVE_FFS 1 /* Use system's ffs. */
160 #define AFS_UIOSYS UIO_SYSSPACE
161 #define AFS_UIOUSER UIO_USERSPACE
163 #define AFS_GCPAGS 0 /* if nonzero, garbage collect PAGs */
164 #define RXK_LISTENER_ENV 1
166 #define AFS_VFS34 1 /* What is VFS34??? */
167 #define afsio_iov uio_iov
168 #define afsio_iovcnt uio_iovcnt
169 #define afsio_offset uio_offset
170 #define afsio_seg uio_segflg
171 #define afsio_resid uio_resid
172 #define AFS_UIOSYS UIO_SYSSPACE
173 #define AFS_UIOUSER UIO_USERSPACE
174 #define VATTR_NULL usr_vattr_null
181 #define BIND_8_COMPAT
182 #endif /* AFS_PARAM_H */
184 #endif /* !defined(UKERNEL) */