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
30 #define AFS_NONFSTRANS
31 #define AFS_SYSCALL 230
32 #define AFS_NAMEI_ENV 1
33 #define DARWIN_REFBASE 3
34 #define AFS_CACHE_VNODE_PATH
36 /* File system entry (used if mount.h doesn't define MOUNT_AFS */
37 #define AFS_MOUNT_AFS "afs"
39 /* Machine / Operating system information */
41 #define sys_ppc_darwin_12 1
42 #define sys_ppc_darwin_13 1
43 #define sys_ppc_darwin_14 1
44 #define sys_ppc_darwin_60 1
45 #define sys_ppc_darwin_70 1
46 #define sys_ppc_darwin_80 1
47 #define sys_ppc_darwin_90 1
48 #define SYS_NAME "ppc_darwin_90"
49 #define SYS_NAME_ID SYS_NAME_ID_ppc_darwin_90
50 #define AFSBIG_ENDIAN 1
51 #elif defined(__i386__)
52 #define sys_x86_darwin_12 1
53 #define sys_x86_darwin_13 1
54 #define sys_x86_darwin_14 1
55 #define sys_x86_darwin_60 1
56 #define sys_x86_darwin_70 1
57 #define sys_x86_darwin_80 1
58 #define sys_x86_darwin_90 1
59 #define SYS_NAME "x86_darwin_90"
60 #define SYS_NAME_ID SYS_NAME_ID_x86_darwin_90
61 #define AFSLITTLE_ENDIAN 1
63 #error Unsupported architecture
65 #define AFS_HAVE_FFS 1 /* Use system's ffs. */
68 #define RXK_LISTENER_ENV 1
73 #include <kern/macro_help.h>
74 #define AFS_GLOBAL_SUNLOCK 1
75 #define AFS_VFS34 1 /* What is VFS34??? */
76 #define afsio_iov uio_iov
77 #define afsio_iovcnt uio_iovcnt
78 #define afsio_offset uio_offset
79 #define afsio_seg uio_segflg
80 #define afsio_resid uio_resid
81 #define AFS_UIOSYS UIO_SYSSPACE
82 #define AFS_UIOUSER UIO_USERSPACE
83 #define AFS_CLBYTES CLBYTES
84 #define osi_GetTime(x) microtime(x)
85 #define AFS_KALLOC(x) _MALLOC(x, M_TEMP, M_WAITOK)
86 #define AFS_KFREE(x,y) _FREE(x,M_TEMP)
87 #define v_count v_usecount
88 #define v_vfsp v_mount
89 #define vfs_bsize mnt_stat.f_bsize
90 #define vfs_fsid mnt_stat.f_fsid
91 #define va_nodeid va_fileid
92 #define vfs_vnodecovered mnt_vnodecovered
97 #endif /* AFS_PARAM_H */
99 #else /* !defined(UKERNEL) */
101 /* This section for user space compiles only */
106 #define AFS_VFSINCL_ENV 1 /* NOBODY uses this.... */
108 #define AFS_64BIT_ENV 1 /* Defines afs_int32 as int, not long. */
110 #define AFS_PPC_ENV 1
111 #elif defined(__i386__)
112 #define AFS_X86_ENV 1
114 #error Unsupported architecture
117 #include <afs/afs_sysnames.h>
118 #define AFS_USERSPACE_ENV
119 #define AFS_USR_DARWIN_ENV
120 #define AFS_USR_DARWIN13_ENV
121 #define AFS_USR_DARWIN14_ENV
122 #define AFS_USR_DARWIN60_ENV
123 #define AFS_USR_DARWIN70_ENV
124 #define AFS_USR_DARWIN80_ENV
125 #define AFS_USR_DARWIN90_ENV
126 #undef AFS_NONFSTRANS
127 #define AFS_NONFSTRANS
128 #define AFS_SYSCALL 230
129 #define DARWIN_REFBASE 0
131 /* File system entry (used if mount.h doesn't define MOUNT_AFS */
132 #define AFS_MOUNT_AFS "afs"
134 /* Machine / Operating system information */
136 #define sys_ppc_darwin_12 1
137 #define sys_ppc_darwin_13 1
138 #define sys_ppc_darwin_14 1
139 #define sys_ppc_darwin_60 1
140 #define sys_ppc_darwin_70 1
141 #define sys_ppc_darwin_80 1
142 #define sys_ppc_darwin_90 1
143 #define SYS_NAME "ppc_darwin_90"
144 #define SYS_NAME_ID SYS_NAME_ID_ppc_darwin_90
145 #define AFSBIG_ENDIAN 1
146 #elif defined(__i386__)
147 #define sys_x86_darwin_12 1
148 #define sys_x86_darwin_13 1
149 #define sys_x86_darwin_14 1
150 #define sys_x86_darwin_60 1
151 #define sys_x86_darwin_70 1
152 #define sys_x86_darwin_80 1
153 #define sys_x86_darwin_90 1
154 #define SYS_NAME "x86_darwin_90"
155 #define SYS_NAME_ID SYS_NAME_ID_x86_darwin_90
156 #define AFSLITTLE_ENDIAN 1
158 #error Unsupported architecture
160 #define AFS_HAVE_FFS 1 /* Use system's ffs. */
162 #define AFS_UIOSYS UIO_SYSSPACE
163 #define AFS_UIOUSER UIO_USERSPACE
165 #define AFS_GCPAGS 0 /* if nonzero, garbage collect PAGs */
166 #define RXK_LISTENER_ENV 1
168 #define AFS_VFS34 1 /* What is VFS34??? */
169 #define afsio_iov uio_iov
170 #define afsio_iovcnt uio_iovcnt
171 #define afsio_offset uio_offset
172 #define afsio_seg uio_segflg
173 #define afsio_resid uio_resid
174 #define AFS_UIOSYS UIO_SYSSPACE
175 #define AFS_UIOUSER UIO_USERSPACE
176 #define VATTR_NULL usr_vattr_null
183 #endif /* AFS_PARAM_H */
185 #endif /* !defined(UKERNEL) */