initial-darwin-support-20010327
[openafs.git] / src / config / param.ppc_darwin_13.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_DARWIN13_ENV
13 #define AFS_NONFSTRANS
14 #define AFS_SYSCALL             230
15
16 /* File system entry (used if mount.h doesn't define MOUNT_AFS */
17 #define AFS_MOUNT_AFS    "afs"
18
19 /* Machine / Operating system information */
20 #define sys_ppc_darwin_12   1
21 #define sys_ppc_darwin_13   1
22 #define SYS_NAME        "ppc_darwin_13"
23 #define SYS_NAME_ID     SYS_NAME_ID_ppc_darwin_13
24 #define AFSBIG_ENDIAN   1
25 #define AFS_HAVE_FFS    1       /* Use system's ffs. */
26
27 #define AFS_GCPAGS                1       /* if nonzero, garbage collect PAGs */
28 #define RXK_LISTENER_ENV         1
29
30 #ifdef KERNEL
31 #undef MACRO_BEGIN
32 #undef MACRO_END
33 #include <kern/macro_help.h>
34 #define AFS_GLOBAL_SUNLOCK        1
35 #define AFS_VFS34       1       /* What is VFS34??? */
36 #define afsio_iov       uio_iov
37 #define afsio_iovcnt    uio_iovcnt
38 #define afsio_offset    uio_offset
39 #define afsio_seg       uio_segflg
40 #define afsio_resid     uio_resid
41 #define AFS_UIOSYS      UIO_SYSSPACE
42 #define AFS_UIOUSER     UIO_USERSPACE
43 #define AFS_CLBYTES     CLBYTES
44 #define osi_GetTime(x)  microtime(x)
45 #define AFS_KALLOC(x)   kalloc(x)
46 #define AFS_KFREE(x,y)  kfree(x,y)
47 #define v_count         v_usecount
48 #define v_vfsp          v_mount
49 #define vfs_bsize       mnt_stat.f_bsize
50 #define vfs_fsid        mnt_stat.f_fsid
51 #define va_nodeid       va_fileid
52 #define vfs_vnodecovered mnt_vnodecovered
53 #define direct          dirent
54 #define vnode_t         struct vnode
55
56 #define VN_RELE(vp)     vrele(((struct vnode *)(vp)))
57 #define VN_HOLD(vp)     VREF(((struct vnode *)(vp)))
58
59 #endif
60 #endif  _PARAM_PPC_DARWIN_H_