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