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_IOPS_ENV 1
11 #define AFS_VFSINCL_ENV 1
13 #include <afs/afs_sysnames.h>
15 #define AFS_DARWIN_ENV
16 #define AFS_DARWIN70_ENV
18 #define AFS_NONFSTRANS
19 #define AFS_SYSCALL 230
20 #define AFS_NAMEI_ENV 1
21 #define DARWIN_REFBASE 3
23 /* File system entry (used if mount.h doesn't define MOUNT_AFS */
24 #define AFS_MOUNT_AFS "afs"
26 /* Machine / Operating system information */
27 #define sys_ppc_darwin_12 1
28 #define sys_ppc_darwin_13 1
29 #define sys_ppc_darwin_14 1
30 #define sys_ppc_darwin_60 1
31 #define sys_ppc_darwin_70 1
32 #define SYS_NAME "ppc_darwin_70"
33 #define SYS_NAME_ID SYS_NAME_ID_ppc_darwin_70
34 #define AFSBIG_ENDIAN 1
35 #define AFS_HAVE_FFS 1 /* Use system's ffs. */
37 #define AFS_GCPAGS 1 /* if nonzero, garbage collect PAGs */
38 #define RXK_LISTENER_ENV 1
43 #include <kern/macro_help.h>
44 #define AFS_GLOBAL_SUNLOCK 1
45 #define AFS_VFS34 1 /* What is VFS34??? */
46 #define afsio_iov uio_iov
47 #define afsio_iovcnt uio_iovcnt
48 #define afsio_offset uio_offset
49 #define afsio_seg uio_segflg
50 #define afsio_resid uio_resid
51 #define AFS_UIOSYS UIO_SYSSPACE
52 #define AFS_UIOUSER UIO_USERSPACE
53 #define AFS_CLBYTES CLBYTES
54 #define osi_GetTime(x) microtime(x)
55 #define AFS_KALLOC(x) kalloc(x)
56 #define AFS_KFREE(x,y) kfree(x,y)
57 #define v_count v_usecount
58 #define v_vfsp v_mount
59 #define vfs_bsize mnt_stat.f_bsize
60 #define vfs_fsid mnt_stat.f_fsid
61 #define va_nodeid va_fileid
62 #define vfs_vnodecovered mnt_vnodecovered
64 #define vnode_t struct vnode *
65 #define mount_t struct mount *
67 //#define VN_RELE(vp) vrele(((struct vnode *)(vp)))
68 //#define VN_HOLD(vp) VREF(((struct vnode *)(vp)))
72 #endif /* AFS_PARAM_H */
74 #else /* !defined(UKERNEL) */
76 /* This section for user space compiles only */
81 #define AFS_VFSINCL_ENV 1 /* NOBODY uses this.... */
83 #define AFS_64BIT_ENV 1 /* Defines afs_int32 as int, not long. */
86 #include <afs/afs_sysnames.h>
87 #define AFS_USERSPACE_ENV
88 #define AFS_USR_DARWIN_ENV
89 #define AFS_USR_DARWIN70_ENV
91 #define AFS_NONFSTRANS
92 #define AFS_SYSCALL 230
93 #define DARWIN_REFBASE 0
95 /* File system entry (used if mount.h doesn't define MOUNT_AFS */
96 #define AFS_MOUNT_AFS "afs"
98 /* Machine / Operating system information */
99 #define sys_ppc_darwin_12 1
100 #define sys_ppc_darwin_13 1
101 #define sys_ppc_darwin_14 1
102 #define sys_ppc_darwin_60 1
103 #define sys_ppc_darwin_70 1
104 #define SYS_NAME "ppc_darwin_70"
105 #define SYS_NAME_ID SYS_NAME_ID_ppc_darwin_70
106 #define AFSBIG_ENDIAN 1
107 #define AFS_HAVE_FFS 1 /* Use system's ffs. */
109 #define AFS_UIOSYS UIO_SYSSPACE
110 #define AFS_UIOUSER UIO_USERSPACE
112 #define AFS_GCPAGS 0 /* if nonzero, garbage collect PAGs */
113 #define RXK_LISTENER_ENV 1
115 #define AFS_VFS34 1 /* What is VFS34??? */
116 #define afsio_iov uio_iov
117 #define afsio_iovcnt uio_iovcnt
118 #define afsio_offset uio_offset
119 #define afsio_seg uio_segflg
120 #define afsio_resid uio_resid
121 #define AFS_UIOSYS UIO_SYSSPACE
122 #define AFS_UIOUSER UIO_USERSPACE
123 #define VATTR_NULL usr_vattr_null
130 #define BIND_8_COMPAT
131 #endif /* AFS_PARAM_H */
133 #endif /* !defined(UKERNEL) */