Import Upstream version 1.8.5
[hcoop/debian/openafs.git] / src / config / param.x86_darwin_90.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_CLIENT 1
9 #define AFS_64BIT_IOPS_ENV 1
10 #if defined(__ppc__)
11 #define AFS_PPC_ENV 1
12 #elif defined(__i386__) || defined(__x86_64__)
13 #define AFS_X86_ENV 1
14 #else
15 #error Unsupported architecture
16 #endif
17 #define AFS_VFSINCL_ENV 1
18
19 #include <afs/afs_sysnames.h>
20
21 #define AFS_DARWIN_ENV
22 #define AFS_DARWIN70_ENV
23 #define AFS_DARWIN80_ENV
24 #define AFS_DARWIN90_ENV
25 #undef AFS_NONFSTRANS
26 #define AFS_NONFSTRANS
27 #define AFS_SYSCALL 230
28 #define AFS_NAMEI_ENV 1
29 #define DARWIN_REFBASE 3
30 #define AFS_WARNUSER_MARINER_ENV 1
31 #define AFS_CACHE_VNODE_PATH
32 #define AFS_NEW_BKG 1
33
34 /* File system entry (used if mount.h doesn't define MOUNT_AFS */
35 #define AFS_MOUNT_AFS "afs"
36
37 /* Machine / Operating system information */
38 #if defined(__ppc__)
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__) || defined(__x86_64__)
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
60 #else
61 #error Unsupported architecture
62 #endif
63 #define AFS_HAVE_FFS 1 /* Use system's ffs. */
64
65 #define AFS_GCPAGS 0
66 #define RXK_LISTENER_ENV 1
67 #define RXK_TIMEDSLEEP_ENV 1
68
69 #ifdef KERNEL
70 #undef MACRO_BEGIN
71 #undef MACRO_END
72 #include <kern/macro_help.h>
73 #define AFS_GLOBAL_SUNLOCK 1
74 #define AFS_VFS34 1 /* What is VFS34??? */
75 #define afsio_iov uio_iov
76 #define afsio_iovcnt uio_iovcnt
77 #define afsio_offset uio_offset
78 #define afsio_seg uio_segflg
79 #define afsio_resid uio_resid
80 #define AFS_UIOSYS UIO_SYSSPACE
81 #define AFS_UIOUSER UIO_USERSPACE
82 #define AFS_CLBYTES CLBYTES
83 #define osi_GetTime(x) microtime(x)
84 #define AFS_KALLOC(x) _MALLOC(x, M_TEMP, M_WAITOK)
85 #define AFS_KFREE(x,y) _FREE(x,M_TEMP)
86 #define v_count v_usecount
87 #define v_vfsp v_mount
88 #define vfs_bsize mnt_stat.f_bsize
89 #define vfs_fsid mnt_stat.f_fsid
90 #define va_nodeid va_fileid
91 #define vfs_vnodecovered mnt_vnodecovered
92 #define direct dirent
93
94
95 #endif
96 #endif /* AFS_PARAM_H */
97
98 #else /* !defined(UKERNEL) */
99
100 /* This section for user space compiles only */
101
102 #ifndef AFS_PARAM_H
103 #define AFS_PARAM_H
104
105 #define AFS_VFSINCL_ENV 1 /* NOBODY uses this.... */
106 #define AFS_ENV 1
107 #if defined(__ppc__)
108 #define AFS_PPC_ENV 1
109 #elif defined(__i386__) || defined(__x86_64__)
110 #define AFS_X86_ENV 1
111 #else
112 #error Unsupported architecture
113 #endif
114
115 #include <afs/afs_sysnames.h>
116 #define AFS_USERSPACE_ENV
117 #define AFS_USR_DARWIN_ENV
118 #define AFS_USR_DARWIN70_ENV
119 #define AFS_USR_DARWIN80_ENV
120 #define AFS_USR_DARWIN90_ENV
121 #undef AFS_NONFSTRANS
122 #define AFS_NONFSTRANS
123 #define AFS_SYSCALL 230
124 #define DARWIN_REFBASE 0
125 #define AFS_WARNUSER_MARINER_ENV 1
126
127 /* File system entry (used if mount.h doesn't define MOUNT_AFS */
128 #define AFS_MOUNT_AFS "afs"
129
130 /* Machine / Operating system information */
131 #if defined(__ppc__)
132 #define sys_ppc_darwin_12 1
133 #define sys_ppc_darwin_13 1
134 #define sys_ppc_darwin_14 1
135 #define sys_ppc_darwin_60 1
136 #define sys_ppc_darwin_70 1
137 #define sys_ppc_darwin_80 1
138 #define sys_ppc_darwin_90 1
139 #define SYS_NAME "ppc_darwin_90"
140 #define SYS_NAME_ID SYS_NAME_ID_ppc_darwin_90
141 #define AFSBIG_ENDIAN 1
142 #elif defined(__i386__) || defined(__x86_64__)
143 #define sys_x86_darwin_12 1
144 #define sys_x86_darwin_13 1
145 #define sys_x86_darwin_14 1
146 #define sys_x86_darwin_60 1
147 #define sys_x86_darwin_70 1
148 #define sys_x86_darwin_80 1
149 #define sys_x86_darwin_90 1
150 #define SYS_NAME "x86_darwin_90"
151 #define SYS_NAME_ID SYS_NAME_ID_x86_darwin_90
152 #define AFSLITTLE_ENDIAN 1
153 #else
154 #error Unsupported architecture
155 #endif
156 #define AFS_HAVE_FFS 1 /* Use system's ffs. */
157
158 #define AFS_UIOSYS UIO_SYSSPACE
159 #define AFS_UIOUSER UIO_USERSPACE
160
161 #define AFS_GCPAGS 0 /* if nonzero, garbage collect PAGs */
162 #define RXK_LISTENER_ENV 1
163
164 #define AFS_VFS34 1 /* What is VFS34??? */
165 #define afsio_iov uio_iov
166 #define afsio_iovcnt uio_iovcnt
167 #define afsio_offset uio_offset
168 #define afsio_seg uio_segflg
169 #define afsio_resid uio_resid
170 #define AFS_UIOSYS UIO_SYSSPACE
171 #define AFS_UIOUSER UIO_USERSPACE
172 #define VATTR_NULL usr_vattr_null
173
174 #define AFS_DIRENT
175 #ifndef CMSERVERPREF
176 #define CMSERVERPREF
177 #endif
178
179 #endif /* AFS_PARAM_H */
180
181 #endif /* !defined(UKERNEL) */