7558d8d7a2a3537ee5694a46e5d8d5436d6d0321
[openafs.git] / src / config / param.x86_darwin_100.h
1 #ifndef UKERNEL
2 /* This section for kernel libafs compiles only */
3
4 #ifndef AFS_PARAM_H
5 #define AFS_PARAM_H
6
7 #define AFS_ENV                 1
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
11 #if defined(__ppc__)
12 #define AFS_PPC_ENV             1
13 #elif defined(__i386__) || defined(__amd64__)
14 #define AFS_X86_ENV             1
15 #else
16 #error Unsupported architecture
17 #endif
18 #define AFS_VFSINCL_ENV         1
19 #ifdef __amd64__
20 #define AFS_64BITUSERPOINTER_ENV 1
21 #endif
22 #define AFS_64BIT_SIZEOF 1 /* seriously? */
23 #include <afs/afs_sysnames.h>
24
25 #define AFS_DARWIN_ENV
26 #define AFS_DARWIN70_ENV
27 #define AFS_DARWIN80_ENV
28 #define AFS_DARWIN90_ENV
29 #define AFS_DARWIN100_ENV
30 #undef  AFS_NONFSTRANS
31 #define AFS_NONFSTRANS
32 #define AFS_SYSCALL             230
33 #define AFS_NAMEI_ENV 1
34 #define DARWIN_REFBASE 3
35 #define AFS_CACHE_VNODE_PATH
36 #define NEED_IOCTL32 
37
38 /* File system entry (used if mount.h doesn't define MOUNT_AFS */
39 #define AFS_MOUNT_AFS    "afs"
40
41 /* Machine / Operating system information */
42 #if defined(__ppc__)
43 #define sys_ppc_darwin_12       1
44 #define sys_ppc_darwin_13       1
45 #define sys_ppc_darwin_14       1
46 #define sys_ppc_darwin_60       1
47 #define sys_ppc_darwin_70       1
48 #define sys_ppc_darwin_80       1
49 #define sys_ppc_darwin_90       1
50 #define sys_ppc_darwin_100      1
51 #define SYS_NAME                "ppc_darwin_100"
52 #define SYS_NAME_ID             SYS_NAME_ID_ppc_darwin_100
53 #define AFSBIG_ENDIAN           1
54 #elif defined(__ppc64__)
55 #define sys_ppc_darwin_12       1
56 #define sys_ppc_darwin_13       1
57 #define sys_ppc_darwin_14       1
58 #define sys_ppc_darwin_60       1
59 #define sys_ppc_darwin_70       1
60 #define sys_ppc_darwin_80       1
61 #define sys_ppc_darwin_90       1
62 #define sys_ppc_darwin_100      1
63 #define sys_ppc64_darwin_100    1
64 #define SYS_NAME                "ppc64_darwin_100"
65 #define SYS_NAME_ID             SYS_NAME_ID_ppc64_darwin_100
66 #define AFSBIG_ENDIAN           1
67 #elif defined(__i386__) 
68 #define sys_x86_darwin_12       1
69 #define sys_x86_darwin_13       1
70 #define sys_x86_darwin_14       1
71 #define sys_x86_darwin_60       1
72 #define sys_x86_darwin_70       1
73 #define sys_x86_darwin_80       1
74 #define sys_x86_darwin_90       1
75 #define sys_x86_darwin_100      1
76 #define SYS_NAME                "x86_darwin_100"
77 #define SYS_NAME_ID             SYS_NAME_ID_x86_darwin_100
78 #define AFSLITTLE_ENDIAN        1
79 #elif defined(__amd64__) 
80 #define sys_x86_darwin_12       1
81 #define sys_x86_darwin_13       1
82 #define sys_x86_darwin_14       1
83 #define sys_x86_darwin_60       1
84 #define sys_x86_darwin_70       1
85 #define sys_x86_darwin_80       1
86 #define sys_x86_darwin_90       1
87 #define sys_x86_darwin_100      1
88 #define sys_amd64_darwin_100    1
89 #define SYS_NAME                "amd64_darwin_100"
90 #define SYS_NAME_ID             SYS_NAME_ID_amd64_darwin_100
91 #define AFSLITTLE_ENDIAN        1
92 #else
93 #error Unsupported architecture
94 #endif
95 #define AFS_HAVE_FFS    1       /* Use system's ffs. */
96
97 #define AFS_GCPAGS               0
98 #define RXK_LISTENER_ENV         1
99
100 #ifdef KERNEL
101 #undef MACRO_BEGIN
102 #undef MACRO_END
103 #include <kern/macro_help.h>
104 #define AFS_GLOBAL_SUNLOCK        1
105 #define AFS_VFS34       1       /* What is VFS34??? */
106 #define afsio_iov       uio_iov
107 #define afsio_iovcnt    uio_iovcnt
108 #define afsio_offset    uio_offset
109 #define afsio_seg       uio_segflg
110 #define afsio_resid     uio_resid
111 #define AFS_UIOSYS      UIO_SYSSPACE
112 #define AFS_UIOUSER     UIO_USERSPACE
113 #define AFS_CLBYTES     CLBYTES
114 #define osi_GetTime(x)  microtime(x)
115 #define AFS_KALLOC(x)   _MALLOC(x, M_TEMP, M_WAITOK)
116 #define AFS_KFREE(x,y)  _FREE(x,M_TEMP)
117 #define v_count         v_usecount
118 #define v_vfsp          v_mount
119 #define vfs_bsize       mnt_stat.f_bsize
120 #define vfs_fsid        mnt_stat.f_fsid
121 #define va_nodeid       va_fileid
122 #define vfs_vnodecovered mnt_vnodecovered
123 #define direct          dirent
124
125 #define BIND_8_COMPAT
126
127 #endif
128 #endif /* AFS_PARAM_H */
129
130 #else /* !defined(UKERNEL) */
131
132 /* This section for user space compiles only */
133
134 #ifndef AFS_PARAM_H
135 #define AFS_PARAM_H
136
137 #define AFS_VFSINCL_ENV 1       /* NOBODY uses this.... */
138 #define AFS_ENV                 1
139 #define AFS_64BIT_ENV           1       /* Defines afs_int32 as int, not long. */
140 #if defined(__ppc__)
141 #define AFS_PPC_ENV             1
142 #elif defined(__i386__) || defined(__amd64__)
143 #define AFS_X86_ENV             1
144 #else
145 #error Unsupported architecture
146 #endif
147 #ifdef __amd64__
148 #define AFS_64BITUSERPOINTER_ENV 1
149 #endif
150
151 #include <afs/afs_sysnames.h>
152 #define AFS_USERSPACE_ENV
153 #define AFS_USR_DARWIN_ENV
154 #define AFS_USR_DARWIN70_ENV
155 #define AFS_USR_DARWIN80_ENV
156 #define AFS_USR_DARWIN90_ENV
157 #define AFS_USR_DARWIN100_ENV
158 #undef  AFS_NONFSTRANS
159 #define AFS_NONFSTRANS
160 #define AFS_SYSCALL             230
161 #define DARWIN_REFBASE 0
162
163 /* File system entry (used if mount.h doesn't define MOUNT_AFS */
164 #define AFS_MOUNT_AFS    "afs"
165
166 /* Machine / Operating system information */
167 #if defined(__ppc__)
168 #define sys_ppc_darwin_12       1
169 #define sys_ppc_darwin_13       1
170 #define sys_ppc_darwin_14       1
171 #define sys_ppc_darwin_60       1
172 #define sys_ppc_darwin_70       1
173 #define sys_ppc_darwin_80       1
174 #define sys_ppc_darwin_90       1
175 #define sys_ppc_darwin_100      1
176 #define SYS_NAME                "ppc_darwin_100"
177 #define SYS_NAME_ID             SYS_NAME_ID_ppc_darwin_100
178 #define AFSBIG_ENDIAN           1
179 #elif defined(__i386__)
180 #define sys_x86_darwin_12       1
181 #define sys_x86_darwin_13       1
182 #define sys_x86_darwin_14       1
183 #define sys_x86_darwin_60       1
184 #define sys_x86_darwin_70       1
185 #define sys_x86_darwin_80       1
186 #define sys_x86_darwin_100      1
187 #define SYS_NAME                "x86_darwin_100"
188 #define SYS_NAME_ID             SYS_NAME_ID_x86_darwin_100
189 #define AFSLITTLE_ENDIAN        1
190 #elif defined(__amd64__)
191 #define sys_x86_darwin_12       1
192 #define sys_x86_darwin_13       1
193 #define sys_x86_darwin_14       1
194 #define sys_x86_darwin_60       1
195 #define sys_x86_darwin_70       1
196 #define sys_x86_darwin_80       1
197 #define sys_x86_darwin_100      1
198 #define sys_amd64_darwin_100    1
199 #define SYS_NAME                "amd64_darwin_100"
200 #define SYS_NAME_ID             SYS_NAME_ID_amd64_darwin_100
201 #define AFSLITTLE_ENDIAN        1
202 #else
203 #error Unsupported architecture
204 #endif
205 #define AFS_HAVE_FFS    1       /* Use system's ffs. */
206
207 #define AFS_UIOSYS      UIO_SYSSPACE
208 #define AFS_UIOUSER     UIO_USERSPACE
209
210 #define AFS_GCPAGS                0     /* if nonzero, garbage collect PAGs */
211 #define RXK_LISTENER_ENV          1
212
213 #define AFS_VFS34       1       /* What is VFS34??? */
214 #define afsio_iov       uio_iov
215 #define afsio_iovcnt    uio_iovcnt
216 #define afsio_offset    uio_offset
217 #define afsio_seg       uio_segflg
218 #define afsio_resid     uio_resid
219 #define AFS_UIOSYS      UIO_SYSSPACE
220 #define AFS_UIOUSER     UIO_USERSPACE
221 #define        VATTR_NULL      usr_vattr_null
222
223 #define AFS_DIRENT
224 #ifndef CMSERVERPREF
225 #define CMSERVERPREF
226 #endif
227
228 #define BIND_8_COMPAT
229 #endif /* AFS_PARAM_H */
230
231 #endif /* !defined(UKERNEL) */