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