1640e9ba0819b32101bc9e65ee91638b5171272d
[openafs.git] / src / config / param.ppc_darwin_12.h
1 #ifndef _PARAM_PPC_DARWIN_H_
2 #define _PARAM_PPC_DARWIN_H_
3
4 #define AFS_ENV                 1
5 #define AFS_64BIT_ENV           1       /* Defines afs_int32 as int, not long. */
6 #define AFS_PPC_ENV 1
7 #define AFS_VFSINCL_ENV 1
8
9 #include <afs/afs_sysnames.h>
10
11 #define AFS_DARWIN_ENV
12 #define AFS_NONFSTRANS
13 #define AFS_SYSCALL             230
14
15 /* File system entry (used if mount.h doesn't define MOUNT_AFS */
16 #define AFS_MOUNT_AFS    "afs"
17
18 /* Machine / Operating system information */
19 #define sys_ppc_darwin_12   1
20 #define SYS_NAME        "ppc_darwin_12"
21 #define SYS_NAME_ID     SYS_NAME_ID_ppc_darwin_12
22 #define AFSBIG_ENDIAN   1
23 #define AFS_HAVE_FFS    1       /* Use system's ffs. */
24
25 #define AFS_GCPAGS                1       /* if nonzero, garbage collect PAGs */
26 #define RXK_LISTENER_ENV         1
27
28 #ifdef KERNEL
29 #undef MACRO_BEGIN
30 #undef MACRO_END
31 #include <kern/macro_help.h>
32 #define AFS_GLOBAL_SUNLOCK        1
33 #define AFS_VFS34       1       /* What is VFS34??? */
34 #define afsio_iov       uio_iov
35 #define afsio_iovcnt    uio_iovcnt
36 #define afsio_offset    uio_offset
37 #define afsio_seg       uio_segflg
38 #define afsio_resid     uio_resid
39 #define AFS_UIOSYS      UIO_SYSSPACE
40 #define AFS_UIOUSER     UIO_USERSPACE
41 #define AFS_CLBYTES     CLBYTES
42 #define osi_GetTime(x)  microtime(x)
43 #define AFS_KALLOC(x)   kalloc(x)
44 #define AFS_KFREE(x,y)  kfree(x,y)
45 #define v_count         v_usecount
46 #define v_vfsp          v_mount
47 #define vfs_bsize       mnt_stat.f_bsize
48 #define vfs_fsid        mnt_stat.f_fsid
49 #define va_nodeid       va_fileid
50 #define vfs_vnodecovered mnt_vnodecovered
51 #define direct          dirent
52 #define vnode_t         struct vnode
53
54 #define VN_RELE(vp)     vrele(((struct vnode *)(vp)))
55 #define VN_HOLD(vp)     VREF(((struct vnode *)(vp)))
56
57 #endif
58 #endif  _PARAM_PPC_DARWIN_H_