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_DARWIN70_ENV
24 #define AFS_DARWIN80_ENV
26 #define AFS_NONFSTRANS
27 #define AFS_SYSCALL 230
28 #define AFS_NAMEI_ENV 1
29 #define AFS_WARNUSER_MARINER_ENV 1
30 #define DARWIN_REFBASE 3
32 /* File system entry (used if mount.h doesn't define MOUNT_AFS */
33 #define AFS_MOUNT_AFS "afs"
35 /* Machine / Operating system information */
37 #define sys_ppc_darwin_12 1
38 #define sys_ppc_darwin_13 1
39 #define sys_ppc_darwin_14 1
40 #define sys_ppc_darwin_60 1
41 #define sys_ppc_darwin_70 1
42 #define sys_ppc_darwin_80 1
43 #define SYS_NAME "ppc_darwin_80"
44 #define SYS_NAME_ID SYS_NAME_ID_ppc_darwin_80
45 #define AFSBIG_ENDIAN 1
46 #elif defined(__i386__)
47 #define sys_x86_darwin_12 1
48 #define sys_x86_darwin_13 1
49 #define sys_x86_darwin_14 1
50 #define sys_x86_darwin_60 1
51 #define sys_x86_darwin_70 1
52 #define sys_x86_darwin_80 1
53 #define SYS_NAME "x86_darwin_80"
54 #define SYS_NAME_ID SYS_NAME_ID_x86_darwin_80
55 #define AFSLITTLE_ENDIAN 1
57 #error Unsupported architecture
59 #define AFS_HAVE_FFS 1 /* Use system's ffs. */
62 #define RXK_LISTENER_ENV 1
67 #include <kern/macro_help.h>
68 #define AFS_GLOBAL_SUNLOCK 1
69 #define AFS_VFS34 1 /* What is VFS34??? */
70 #define afsio_iov uio_iov
71 #define afsio_iovcnt uio_iovcnt
72 #define afsio_offset uio_offset
73 #define afsio_seg uio_segflg
74 #define afsio_resid uio_resid
75 #define AFS_UIOSYS UIO_SYSSPACE
76 #define AFS_UIOUSER UIO_USERSPACE
77 #define AFS_CLBYTES CLBYTES
78 #define osi_GetTime(x) microtime(x)
79 #define AFS_KALLOC(x) _MALLOC(x, M_TEMP, M_WAITOK)
80 #define AFS_KFREE(x,y) _FREE(x,M_TEMP)
81 #define v_count v_usecount
82 #define v_vfsp v_mount
83 #define vfs_bsize mnt_stat.f_bsize
84 #define vfs_fsid mnt_stat.f_fsid
85 #define va_nodeid va_fileid
86 #define vfs_vnodecovered mnt_vnodecovered
92 #endif /* AFS_PARAM_H */
94 #else /* !defined(UKERNEL) */
96 /* This section for user space compiles only */
101 #define AFS_VFSINCL_ENV 1 /* NOBODY uses this.... */
103 #define AFS_64BIT_ENV 1 /* Defines afs_int32 as int, not long. */
105 #define AFS_PPC_ENV 1
106 #elif defined(__i386__)
107 #define AFS_X86_ENV 1
109 #error Unsupported architecture
112 #include <afs/afs_sysnames.h>
113 #define AFS_USERSPACE_ENV
114 #define AFS_USR_DARWIN_ENV
115 #define AFS_USR_DARWIN70_ENV
116 #define AFS_USR_DARWIN80_ENV
117 #undef AFS_NONFSTRANS
118 #define AFS_NONFSTRANS
119 #define AFS_SYSCALL 230
120 #define AFS_WARNUSER_MARINER_ENV 1
121 #define DARWIN_REFBASE 0
123 /* File system entry (used if mount.h doesn't define MOUNT_AFS */
124 #define AFS_MOUNT_AFS "afs"
126 /* Machine / Operating system information */
128 #define sys_ppc_darwin_12 1
129 #define sys_ppc_darwin_13 1
130 #define sys_ppc_darwin_14 1
131 #define sys_ppc_darwin_60 1
132 #define sys_ppc_darwin_70 1
133 #define sys_ppc_darwin_80 1
134 #define SYS_NAME "ppc_darwin_80"
135 #define SYS_NAME_ID SYS_NAME_ID_ppc_darwin_80
136 #define AFSBIG_ENDIAN 1
137 #elif defined(__i386__)
138 #define sys_x86_darwin_12 1
139 #define sys_x86_darwin_13 1
140 #define sys_x86_darwin_14 1
141 #define sys_x86_darwin_60 1
142 #define sys_x86_darwin_70 1
143 #define sys_x86_darwin_80 1
144 #define SYS_NAME "x86_darwin_80"
145 #define SYS_NAME_ID SYS_NAME_ID_x86_darwin_80
146 #define AFSLITTLE_ENDIAN 1
148 #error Unsupported architecture
150 #define AFS_HAVE_FFS 1 /* Use system's ffs. */
152 #define AFS_UIOSYS UIO_SYSSPACE
153 #define AFS_UIOUSER UIO_USERSPACE
155 #define AFS_GCPAGS 0 /* if nonzero, garbage collect PAGs */
156 #define RXK_LISTENER_ENV 1
158 #define AFS_VFS34 1 /* What is VFS34??? */
159 #define afsio_iov uio_iov
160 #define afsio_iovcnt uio_iovcnt
161 #define afsio_offset uio_offset
162 #define afsio_seg uio_segflg
163 #define afsio_resid uio_resid
164 #define AFS_UIOSYS UIO_SYSSPACE
165 #define AFS_UIOUSER UIO_USERSPACE
166 #define VATTR_NULL usr_vattr_null
173 #define BIND_8_COMPAT
174 #endif /* AFS_PARAM_H */
176 #endif /* !defined(UKERNEL) */