aac7925281c7199cc2d04f4001ee4072b99ff87c
[openafs.git] / src / config / param.ppc_darwin_13.h
1 #ifndef UKERNEL
2 /* This section for kernel libafs compiles only */
3
4 #ifndef AFS_PARAM_H
5 #define AFS_PARAM_H
6
7 #define AFS_ENV                 1
8 #define AFS_64BIT_ENV           1       /* Defines afs_int32 as int, not long. */
9 #define AFS_PPC_ENV 1
10 #define AFS_VFSINCL_ENV 1
11
12 #include <afs/afs_sysnames.h>
13
14 #define AFS_DARWIN_ENV
15 #define AFS_DARWIN13_ENV
16 #undef  AFS_NONFSTRANS
17 #define AFS_NONFSTRANS
18 #define AFS_SYSCALL             230
19 #define DARWIN_REFBASE 0
20
21 /* File system entry (used if mount.h doesn't define MOUNT_AFS */
22 #define AFS_MOUNT_AFS    "afs"
23
24 /* Machine / Operating system information */
25 #define sys_ppc_darwin_12   1
26 #define sys_ppc_darwin_13   1
27 #define SYS_NAME        "ppc_darwin_13"
28 #define SYS_NAME_ID     SYS_NAME_ID_ppc_darwin_13
29 #define AFSBIG_ENDIAN   1
30 #define AFS_HAVE_FFS    1       /* Use system's ffs. */
31
32 #define AFS_GCPAGS                1     /* if nonzero, garbage collect PAGs */
33 #define RXK_LISTENER_ENV         1
34
35 #ifdef KERNEL
36 #undef MACRO_BEGIN
37 #undef MACRO_END
38 #include <kern/macro_help.h>
39 #define AFS_GLOBAL_SUNLOCK        1
40 #define AFS_VFS34       1       /* What is VFS34??? */
41 #define afsio_iov       uio_iov
42 #define afsio_iovcnt    uio_iovcnt
43 #define afsio_offset    uio_offset
44 #define afsio_seg       uio_segflg
45 #define afsio_resid     uio_resid
46 #define AFS_UIOSYS      UIO_SYSSPACE
47 #define AFS_UIOUSER     UIO_USERSPACE
48 #define AFS_CLBYTES     CLBYTES
49 #define osi_GetTime(x)  microtime(x)
50 #define AFS_KALLOC(x)   kalloc(x)
51 #define AFS_KFREE(x,y)  kfree(x,y)
52 #define v_count         v_usecount
53 #define v_vfsp          v_mount
54 #define vfs_bsize       mnt_stat.f_bsize
55 #define vfs_fsid        mnt_stat.f_fsid
56 #define va_nodeid       va_fileid
57 #define vfs_vnodecovered mnt_vnodecovered
58 #define direct          dirent
59 #define vnode_t         struct vnode
60
61 #define VN_RELE(vp)     vrele(((struct vnode *)(vp)))
62 #define VN_HOLD(vp)     VREF(((struct vnode *)(vp)))
63
64 #endif
65 #endif /* AFS_PARAM_H */
66
67 #else /* !defined(UKERNEL) */
68
69 /* This section for user space compiles only */
70
71 #ifndef AFS_PARAM_H
72 #define AFS_PARAM_H
73
74 #define AFS_VFSINCL_ENV 1       /* NOBODY uses this.... */
75 #define AFS_ENV                 1
76 #define AFS_64BIT_ENV           1       /* Defines afs_int32 as int, not long. */
77 #define AFS_PPC_ENV 1
78
79 #include <afs/afs_sysnames.h>
80 #define AFS_USERSPACE_ENV
81 #define AFS_USR_DARWIN_ENV
82 #define AFS_USR_DARWIN13_ENV
83 #undef  AFS_NONFSTRANS
84 #define AFS_NONFSTRANS
85 #define AFS_SYSCALL             230
86 #define DARWIN_REFBASE 0
87
88 /* File system entry (used if mount.h doesn't define MOUNT_AFS */
89 #define AFS_MOUNT_AFS    "afs"
90
91 /* Machine / Operating system information */
92 #define sys_ppc_darwin_12   1
93 #define sys_ppc_darwin_13   1
94 #define SYS_NAME        "ppc_darwin_13"
95 #define SYS_NAME_ID     SYS_NAME_ID_ppc_darwin_13
96 #define AFSBIG_ENDIAN   1
97 #define AFS_HAVE_FFS    1       /* Use system's ffs. */
98
99 #define AFS_UIOSYS      UIO_SYSSPACE
100 #define AFS_UIOUSER     UIO_USERSPACE
101
102 #define AFS_GCPAGS                0     /* if nonzero, garbage collect PAGs */
103 #define RXK_LISTENER_ENV          1
104
105 #define AFS_VFS34       1       /* What is VFS34??? */
106 #define afsio_iov       uio_iov
107 #define afsio_iovcnt    uio_iovcnt
108 #define afsio_offset    uio_offset
109 #define afsio_seg       uio_segflg
110 #define afsio_resid     uio_resid
111 #define AFS_UIOSYS      UIO_SYSSPACE
112 #define AFS_UIOUSER     UIO_USERSPACE
113 #define        VATTR_NULL      usr_vattr_null
114
115 #define AFS_DIRENT
116 #ifndef CMSERVERPREF
117 #define CMSERVERPREF
118 #endif
119
120 #endif /* AFS_PARAM_H */
121
122 #endif /* !defined(UKERNEL) */