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_NONFSTRANS
22 #define AFS_SYSCALL 230
23 #define AFS_NAMEI_ENV 1
24 #define DARWIN_REFBASE 3
26 /* File system entry (used if mount.h doesn't define MOUNT_AFS */
27 #define AFS_MOUNT_AFS "afs"
29 /* Machine / Operating system information */
30 #define sys_ppc_darwin_12 1
31 #define sys_ppc_darwin_13 1
32 #define sys_ppc_darwin_14 1
33 #define sys_ppc_darwin_60 1
34 #define sys_ppc_darwin_70 1
35 #define SYS_NAME "ppc_darwin_70"
36 #define SYS_NAME_ID SYS_NAME_ID_ppc_darwin_70
37 #define AFSBIG_ENDIAN 1
38 #define AFS_HAVE_FFS 1 /* Use system's ffs. */
40 #define AFS_GCPAGS 1 /* if nonzero, garbage collect PAGs */
41 #define RXK_LISTENER_ENV 1
46 #include <kern/macro_help.h>
47 #define AFS_GLOBAL_SUNLOCK 1
48 #define AFS_VFS34 1 /* What is VFS34??? */
49 #define afsio_iov uio_iov
50 #define afsio_iovcnt uio_iovcnt
51 #define afsio_offset uio_offset
52 #define afsio_seg uio_segflg
53 #define afsio_resid uio_resid
54 #define AFS_UIOSYS UIO_SYSSPACE
55 #define AFS_UIOUSER UIO_USERSPACE
56 #define AFS_CLBYTES CLBYTES
57 #define osi_GetTime(x) microtime(x)
58 #define AFS_KALLOC(x) kalloc(x)
59 #define AFS_KFREE(x,y) kfree(x,y)
60 #define v_count v_usecount
61 #define v_vfsp v_mount
62 #define vfs_bsize mnt_stat.f_bsize
63 #define vfs_fsid mnt_stat.f_fsid
64 #define va_nodeid va_fileid
65 #define vfs_vnodecovered mnt_vnodecovered
67 #define vnode_t struct vnode
69 //#define VN_RELE(vp) vrele(((struct vnode *)(vp)))
70 //#define VN_HOLD(vp) VREF(((struct vnode *)(vp)))
74 #endif /* AFS_PARAM_H */
76 #else /* !defined(UKERNEL) */
78 /* This section for user space compiles only */
83 #define AFS_VFSINCL_ENV 1 /* NOBODY uses this.... */
85 #define AFS_64BIT_ENV 1 /* Defines afs_int32 as int, not long. */
88 #include <afs/afs_sysnames.h>
89 #define AFS_USERSPACE_ENV
90 #define AFS_USR_DARWIN_ENV
91 #define AFS_USR_DARWIN13_ENV
92 #define AFS_USR_DARWIN14_ENV
93 #define AFS_USR_DARWIN60_ENV
94 #define AFS_USR_DARWIN70_ENV
95 #define AFS_NONFSTRANS
96 #define AFS_SYSCALL 230
97 #define DARWIN_REFBASE 0
99 /* File system entry (used if mount.h doesn't define MOUNT_AFS */
100 #define AFS_MOUNT_AFS "afs"
102 /* Machine / Operating system information */
103 #define sys_ppc_darwin_12 1
104 #define sys_ppc_darwin_13 1
105 #define sys_ppc_darwin_14 1
106 #define sys_ppc_darwin_60 1
107 #define sys_ppc_darwin_70 1
108 #define SYS_NAME "ppc_darwin_70"
109 #define SYS_NAME_ID SYS_NAME_ID_ppc_darwin_70
110 #define AFSBIG_ENDIAN 1
111 #define AFS_HAVE_FFS 1 /* Use system's ffs. */
113 #define AFS_UIOSYS UIO_SYSSPACE
114 #define AFS_UIOUSER UIO_USERSPACE
116 #define AFS_GCPAGS 0 /* if nonzero, garbage collect PAGs */
117 #define RXK_LISTENER_ENV 1
119 #define AFS_VFS34 1 /* What is VFS34??? */
120 #define afsio_iov uio_iov
121 #define afsio_iovcnt uio_iovcnt
122 #define afsio_offset uio_offset
123 #define afsio_seg uio_segflg
124 #define afsio_resid uio_resid
125 #define AFS_UIOSYS UIO_SYSSPACE
126 #define AFS_UIOUSER UIO_USERSPACE
127 #define VATTR_NULL usr_vattr_null
134 #define BIND_8_COMPAT
135 #endif /* AFS_PARAM_H */
137 #endif /* !defined(UKERNEL) */