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
12 #define AFS_VFSINCL_ENV 1
14 #include <afs/afs_sysnames.h>
16 #define AFS_DARWIN_ENV
17 #define AFS_DARWIN13_ENV
18 #define AFS_DARWIN14_ENV
19 #define AFS_DARWIN60_ENV
20 #define AFS_DARWIN70_ENV
21 #define AFS_DARWIN80_ENV
22 #define AFS_NONFSTRANS
23 #define AFS_SYSCALL 230
24 #define AFS_NAMEI_ENV 1
25 #define DARWIN_REFBASE 3
27 /* File system entry (used if mount.h doesn't define MOUNT_AFS */
28 #define AFS_MOUNT_AFS "afs"
30 /* Machine / Operating system information */
31 #define sys_ppc_darwin_12 1
32 #define sys_ppc_darwin_13 1
33 #define sys_ppc_darwin_14 1
34 #define sys_ppc_darwin_60 1
35 #define sys_ppc_darwin_70 1
36 #define sys_ppc_darwin_80 1
37 #define SYS_NAME "ppc_darwin_80"
38 #define SYS_NAME_ID SYS_NAME_ID_ppc_darwin_80
39 #define AFSBIG_ENDIAN 1
40 #define AFS_HAVE_FFS 1 /* Use system's ffs. */
42 #define AFS_GCPAGS 1 /* if nonzero, garbage collect PAGs */
43 #define RXK_LISTENER_ENV 1
48 #include <kern/macro_help.h>
49 #define AFS_GLOBAL_SUNLOCK 1
50 #define AFS_VFS34 1 /* What is VFS34??? */
51 #define afsio_iov uio_iov
52 #define afsio_iovcnt uio_iovcnt
53 #define afsio_offset uio_offset
54 #define afsio_seg uio_segflg
55 #define afsio_resid uio_resid
56 #define AFS_UIOSYS UIO_SYSSPACE
57 #define AFS_UIOUSER UIO_USERSPACE
58 #define AFS_CLBYTES CLBYTES
59 #define osi_GetTime(x) microtime(x)
60 #define AFS_KALLOC(x) kalloc(x)
61 #define AFS_KFREE(x,y) kfree(x,y)
62 #define v_count v_usecount
63 #define v_vfsp v_mount
64 #define vfs_bsize mnt_stat.f_bsize
65 #define vfs_fsid mnt_stat.f_fsid
66 #define va_nodeid va_fileid
67 #define vfs_vnodecovered mnt_vnodecovered
69 #define vnode_t struct vnode
71 //#define VN_RELE(vp) vrele(((struct vnode *)(vp)))
72 //#define VN_HOLD(vp) VREF(((struct vnode *)(vp)))
76 #endif /* AFS_PARAM_H */
78 #else /* !defined(UKERNEL) */
80 /* This section for user space compiles only */
85 #define AFS_VFSINCL_ENV 1 /* NOBODY uses this.... */
87 #define AFS_64BIT_ENV 1 /* Defines afs_int32 as int, not long. */
90 #include <afs/afs_sysnames.h>
91 #define AFS_USERSPACE_ENV
92 #define AFS_USR_DARWIN_ENV
93 #define AFS_USR_DARWIN13_ENV
94 #define AFS_USR_DARWIN14_ENV
95 #define AFS_USR_DARWIN60_ENV
96 #define AFS_USR_DARWIN70_ENV
97 #define AFS_USR_DARWIN80_ENV
98 #define AFS_NONFSTRANS
99 #define AFS_SYSCALL 230
100 #define DARWIN_REFBASE 0
102 /* File system entry (used if mount.h doesn't define MOUNT_AFS */
103 #define AFS_MOUNT_AFS "afs"
105 /* Machine / Operating system information */
106 #define sys_ppc_darwin_12 1
107 #define sys_ppc_darwin_13 1
108 #define sys_ppc_darwin_14 1
109 #define sys_ppc_darwin_60 1
110 #define sys_ppc_darwin_70 1
111 #define sys_ppc_darwin_80 1
112 #define SYS_NAME "ppc_darwin_80"
113 #define SYS_NAME_ID SYS_NAME_ID_ppc_darwin_80
114 #define AFSBIG_ENDIAN 1
115 #define AFS_HAVE_FFS 1 /* Use system's ffs. */
117 #define AFS_UIOSYS UIO_SYSSPACE
118 #define AFS_UIOUSER UIO_USERSPACE
120 #define AFS_GCPAGS 0 /* if nonzero, garbage collect PAGs */
121 #define RXK_LISTENER_ENV 1
123 #define AFS_VFS34 1 /* What is VFS34??? */
124 #define afsio_iov uio_iov
125 #define afsio_iovcnt uio_iovcnt
126 #define afsio_offset uio_offset
127 #define afsio_seg uio_segflg
128 #define afsio_resid uio_resid
129 #define AFS_UIOSYS UIO_SYSSPACE
130 #define AFS_UIOUSER UIO_USERSPACE
131 #define VATTR_NULL usr_vattr_null
138 #define BIND_8_COMPAT
139 #endif /* AFS_PARAM_H */
141 #endif /* !defined(UKERNEL) */