2 /* This section for kernel libafs compiles only */
8 #define AFS_64BIT_ENV 1 /* Defines afs_int32 as int, not long. */
10 #define AFS_VFSINCL_ENV 1
12 #include <afs/afs_sysnames.h>
14 #define AFS_DARWIN_ENV
15 #define AFS_NONFSTRANS
16 #define AFS_SYSCALL 230
17 #define DARWIN_REFBASE 0
19 /* File system entry (used if mount.h doesn't define MOUNT_AFS */
20 #define AFS_MOUNT_AFS "afs"
22 /* Machine / Operating system information */
23 #define sys_ppc_darwin_12 1
24 #define SYS_NAME "ppc_darwin_12"
25 #define SYS_NAME_ID SYS_NAME_ID_ppc_darwin_12
26 #define AFSBIG_ENDIAN 1
27 #define AFS_HAVE_FFS 1 /* Use system's ffs. */
29 #define AFS_GCPAGS 1 /* if nonzero, garbage collect PAGs */
30 #define RXK_LISTENER_ENV 1
35 #include <kern/macro_help.h>
36 #define AFS_GLOBAL_SUNLOCK 1
37 #define AFS_VFS34 1 /* What is VFS34??? */
38 #define afsio_iov uio_iov
39 #define afsio_iovcnt uio_iovcnt
40 #define afsio_offset uio_offset
41 #define afsio_seg uio_segflg
42 #define afsio_resid uio_resid
43 #define AFS_UIOSYS UIO_SYSSPACE
44 #define AFS_UIOUSER UIO_USERSPACE
45 #define AFS_CLBYTES CLBYTES
46 #define osi_GetTime(x) microtime(x)
47 #define AFS_KALLOC(x) kalloc(x)
48 #define AFS_KFREE(x,y) kfree(x,y)
49 #define v_count v_usecount
50 #define v_vfsp v_mount
51 #define vfs_bsize mnt_stat.f_bsize
52 #define vfs_fsid mnt_stat.f_fsid
53 #define va_nodeid va_fileid
54 #define vfs_vnodecovered mnt_vnodecovered
56 #define vnode_t struct vnode
58 #define VN_RELE(vp) vrele(((struct vnode *)(vp)))
59 #define VN_HOLD(vp) VREF(((struct vnode *)(vp)))
62 #endif /* AFS_PARAM_H */
64 #else /* !defined(UKERNEL) */
66 /* This section for user space compiles only */
71 #define AFS_VFSINCL_ENV 1 /* NOBODY uses this.... */
73 #define AFS_64BIT_ENV 1 /* Defines afs_int32 as int, not long. */
76 #include <afs/afs_sysnames.h>
77 #define AFS_USERSPACE_ENV
78 #define AFS_USR_DARWIN_ENV
79 #define AFS_NONFSTRANS
80 #define AFS_SYSCALL 230
81 #define DARWIN_REFBASE 0
83 /* File system entry (used if mount.h doesn't define MOUNT_AFS */
84 #define AFS_MOUNT_AFS "afs"
86 /* Machine / Operating system information */
87 #define sys_ppc_darwin_12 1
88 #define SYS_NAME "ppc_darwin_12"
89 #define SYS_NAME_ID SYS_NAME_ID_ppc_darwin_12
90 #define AFSBIG_ENDIAN 1
91 #define AFS_HAVE_FFS 1 /* Use system's ffs. */
93 #define AFS_UIOSYS UIO_SYSSPACE
94 #define AFS_UIOUSER UIO_USERSPACE
96 #define AFS_GCPAGS 0 /* if nonzero, garbage collect PAGs */
97 #define RXK_LISTENER_ENV 1
99 #define AFS_VFS34 1 /* What is VFS34??? */
100 #define afsio_iov uio_iov
101 #define afsio_iovcnt uio_iovcnt
102 #define afsio_offset uio_offset
103 #define afsio_seg uio_segflg
104 #define afsio_resid uio_resid
105 #define AFS_UIOSYS UIO_SYSSPACE
106 #define AFS_UIOUSER UIO_USERSPACE
107 #define VATTR_NULL usr_vattr_null
114 #endif /* AFS_PARAM_H */
116 #endif /* !defined(UKERNEL) */