darwin-x86-and-leopard-20060309
[openafs.git] / src / config / param.ppc_darwin_80.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__)
14 #define AFS_X86_ENV             1
15 #else
16 #error Unsupported architecture
17 #endif
18 #define AFS_VFSINCL_ENV         1
19
20 #include <afs/afs_sysnames.h>
21
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_NONFSTRANS
29 #define AFS_SYSCALL             230
30 #define AFS_NAMEI_ENV 1
31
32 #define AFS_BOZONLOCK_ENV 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_NAME                "ppc_darwin_80"
46 #define SYS_NAME_ID             SYS_NAME_ID_ppc_darwin_80
47 #define AFSBIG_ENDIAN           1
48 #elif defined(__i386__)
49 #define sys_x86_darwin_12       1
50 #define sys_x86_darwin_13       1
51 #define sys_x86_darwin_14       1
52 #define sys_x86_darwin_60       1
53 #define sys_x86_darwin_70       1
54 #define sys_x86_darwin_80       1
55 #define SYS_NAME                "x86_darwin_80"
56 #define SYS_NAME_ID             SYS_NAME_ID_x86_darwin_80
57 #define AFSLITTLE_ENDIAN        1
58 #else
59 #error Unsupported architecture
60 #endif
61 #define AFS_HAVE_FFS    1       /* Use system's ffs. */
62
63 #define AFS_GCPAGS               0
64 #define RXK_LISTENER_ENV         1
65
66 #ifdef KERNEL
67 #undef MACRO_BEGIN
68 #undef MACRO_END
69 #include <kern/macro_help.h>
70 #define AFS_GLOBAL_SUNLOCK        1
71 #define AFS_VFS34       1       /* What is VFS34??? */
72 #define afsio_iov       uio_iov
73 #define afsio_iovcnt    uio_iovcnt
74 #define afsio_offset    uio_offset
75 #define afsio_seg       uio_segflg
76 #define afsio_resid     uio_resid
77 #define AFS_UIOSYS      UIO_SYSSPACE
78 #define AFS_UIOUSER     UIO_USERSPACE
79 #define AFS_CLBYTES     CLBYTES
80 #define osi_GetTime(x)  microtime(x)
81 #define AFS_KALLOC(x)   _MALLOC(x, M_TEMP, M_WAITOK)
82 #define AFS_KFREE(x,y)  _FREE(x,M_TEMP)
83 #define v_count         v_usecount
84 #define v_vfsp          v_mount
85 #define vfs_bsize       mnt_stat.f_bsize
86 #define vfs_fsid        mnt_stat.f_fsid
87 #define va_nodeid       va_fileid
88 #define vfs_vnodecovered mnt_vnodecovered
89 #define direct          dirent
90
91 #define BIND_8_COMPAT
92
93 #endif
94 #endif /* AFS_PARAM_H */
95
96 #else /* !defined(UKERNEL) */
97
98 /* This section for user space compiles only */
99
100 #ifndef AFS_PARAM_H
101 #define AFS_PARAM_H
102
103 #define AFS_VFSINCL_ENV 1       /* NOBODY uses this.... */
104 #define AFS_ENV                 1
105 #define AFS_64BIT_ENV           1       /* Defines afs_int32 as int, not long. */
106 #if defined(__ppc__)
107 #define AFS_PPC_ENV             1
108 #elif defined(__i386__)
109 #define AFS_X86_ENV             1
110 #else
111 #error Unsupported architecture
112 #endif
113
114 #include <afs/afs_sysnames.h>
115 #define AFS_USERSPACE_ENV
116 #define AFS_USR_DARWIN_ENV
117 #define AFS_USR_DARWIN13_ENV
118 #define AFS_USR_DARWIN14_ENV
119 #define AFS_USR_DARWIN60_ENV
120 #define AFS_USR_DARWIN70_ENV
121 #define AFS_USR_DARWIN80_ENV
122 #define AFS_NONFSTRANS
123 #define AFS_SYSCALL             230
124 #define DARWIN_REFBASE 0
125
126 /* File system entry (used if mount.h doesn't define MOUNT_AFS */
127 #define AFS_MOUNT_AFS    "afs"
128
129 /* Machine / Operating system information */
130 #if defined(__ppc__)
131 #define sys_ppc_darwin_12       1
132 #define sys_ppc_darwin_13       1
133 #define sys_ppc_darwin_14       1
134 #define sys_ppc_darwin_60       1
135 #define sys_ppc_darwin_70       1
136 #define sys_ppc_darwin_80       1
137 #define SYS_NAME                "ppc_darwin_80"
138 #define SYS_NAME_ID             SYS_NAME_ID_ppc_darwin_80
139 #define AFSBIG_ENDIAN           1
140 #elif defined(__i386__)
141 #define sys_x86_darwin_12       1
142 #define sys_x86_darwin_13       1
143 #define sys_x86_darwin_14       1
144 #define sys_x86_darwin_60       1
145 #define sys_x86_darwin_70       1
146 #define sys_x86_darwin_80       1
147 #define SYS_NAME                "x86_darwin_80"
148 #define SYS_NAME_ID             SYS_NAME_ID_x86_darwin_80
149 #define AFSLITTLE_ENDIAN        1
150 #else
151 #error Unsupported architecture
152 #endif
153 #define AFS_HAVE_FFS    1       /* Use system's ffs. */
154
155 #define AFS_UIOSYS      UIO_SYSSPACE
156 #define AFS_UIOUSER     UIO_USERSPACE
157
158 #define AFS_GCPAGS                0     /* if nonzero, garbage collect PAGs */
159 #define RXK_LISTENER_ENV          1
160
161 #define AFS_VFS34       1       /* What is VFS34??? */
162 #define afsio_iov       uio_iov
163 #define afsio_iovcnt    uio_iovcnt
164 #define afsio_offset    uio_offset
165 #define afsio_seg       uio_segflg
166 #define afsio_resid     uio_resid
167 #define AFS_UIOSYS      UIO_SYSSPACE
168 #define AFS_UIOUSER     UIO_USERSPACE
169 #define        VATTR_NULL      usr_vattr_null
170
171 #define AFS_DIRENT
172 #ifndef CMSERVERPREF
173 #define CMSERVERPREF
174 #endif
175
176 #define BIND_8_COMPAT
177 #endif /* AFS_PARAM_H */
178
179 #endif /* !defined(UKERNEL) */