4a6487973c6c0ac7527751c1c3b5c44e9a0fa9ef
[openafs.git] / src / config / param.rs_aix52.h
1 #ifndef UKERNEL
2 /* This section for kernel libafs compiles only */
3
4 /*
5  * Copyright 2000, International Business Machines Corporation and others.
6  * All Rights Reserved.
7  *
8  * This software has been released under the terms of the IBM Public
9  * License.  For details, see the LICENSE file in the top-level source
10  * directory or online at http://www.openafs.org/dl/license10.html
11  */
12
13 #ifndef AFS_PARAM_H
14 #define AFS_PARAM_H
15
16 #define AFS_AIX_ENV             1
17 #define AFS_AIX32_ENV           1
18 #define AFS_AIX41_ENV           1
19 #define AFS_AIX42_ENV           1
20 #define AFS_AIX51_ENV           1
21 #define AFS_AIX52_ENV           1
22
23 #define AFS_64BIT_CLIENT        1
24 #define AFS_NAMEI_ENV           1
25 #ifdef AFS_NAMEI_ENV
26 #define AFS_64BIT_IOPS_ENV      1
27 #endif
28
29 #define AFS_HAVE_FLOCK_SYSID    1
30
31 #include <afs/afs_sysnames.h>
32
33 /* Global lock in AFS part of client. */
34 #define AFS_GLOBAL_SUNLOCK 1
35 #define AFS_GCPAGS              1       /* if nonzero, garbage collect PAGs */
36
37 /* File system entry (used if vmount.h doesn't define MNT_AFS */
38 #define AFS_MOUNT_AFS   4
39 #define AFS_SYSCALL    31
40
41 /* Machine / Operating system information */
42 #define SYS_NAME        "rs_aix52"
43 #define SYS_NAME_ID     SYS_NAME_ID_rs_aix52
44 #define AFSBIG_ENDIAN   1
45 #define RIOS            1       /* POWERseries 6000. (sj/pc)    */
46 #define AFS_VM_RDWR_ENV 1       /* read/write implemented via VM */
47 #define AFS_USE_GETTIMEOFDAY 1  /* use gettimeofday to implement rx clock */
48 #define AFS_HAVE_STATVFS        1       /* System supports statvfs */
49
50 #ifndef _POWER
51 #define _POWER          1       /* _POWERseries!                */
52 #endif
53 #ifndef COMPAT_43
54 #define COMPAT_43
55 #endif
56
57 #define KERNEL_HAVE_UERROR 1
58 #define KERNEL_HAVE_PIN 1
59
60 /* Extra kernel definitions (from kdefs file) */
61 #ifdef _KERNEL
62 #define AFS_UIOFMODE    1
63 #define afsio_iov       uio_iov
64 #define afsio_iovcnt    uio_iovcnt
65 #define afsio_offset    uio_offset
66 #define afsio_seg       uio_segflg
67 #define afsio_fmode     uio_fmode
68 #define afsio_resid     uio_resid
69 #define AFS_UIOSYS      UIO_SYSSPACE
70 #define AFS_UIOUSER     UIO_USERSPACE
71 #define AFS_CLBYTES     CLBYTES
72 #define AFS_MINCHANGE   2
73 #define osi_GTime(x)    time    /* something for the silly time(0)?? */
74 #define AFS_KALLOC      kmem_alloc
75 #define AFS_KFREE       kmem_free
76 #define VATTR_NULL(V)   memset((void*)V, -1, sizeof(*(V)))
77 #define va_nodeid       va_serialno
78 #endif /* !_KERNEL      */
79 #define AFS_DIRENT
80 #endif /* AFS_PARAM_H */
81
82 #else /* !defined(UKERNEL) */
83
84 /* This section for user space compiles only */
85
86 /*
87  * Copyright 2000, International Business Machines Corporation and others.
88  * All Rights Reserved.
89  *
90  * This software has been released under the terms of the IBM Public
91  * License.  For details, see the LICENSE file in the top-level source
92  * directory or online at http://www.openafs.org/dl/license10.html
93  */
94
95 #ifndef AFS_PARAM_H
96 #define AFS_PARAM_H
97
98 #define AFS_64BIT_CLIENT        1
99 #define AFS_NAMEI_ENV           1
100 #ifdef AFS_NAMEI_ENV
101 #define AFS_64BIT_IOPS_ENV      1
102 #endif
103
104 #define AFS_VFS_ENV     1
105 /* Used only in vfsck code; is it needed any more???? */
106 #define RXK_LISTENER_ENV        1
107 #define AFS_USERSPACE_IP_ADDR   1
108 #define AFS_GCPAGS              0       /* if nonzero, garbage collect PAGs */
109
110 #ifdef KERNEL
111
112 #define UKERNEL                 1       /* user space kernel */
113 #define AFS_ENV                 1
114 #define AFS_USR_AIX_ENV         1
115 #define AFS_USR_AIX41_ENV       1
116 #define AFS_USR_AIX42_ENV       1
117 #define AFS_USR_AIX51_ENV               1
118
119 #else /* KERNEL */
120
121 #define AFS_AIX_ENV             1
122 #define AFS_AIX32_ENV           1
123 #define AFS_AIX41_ENV           1
124 #define AFS_AIX42_ENV           1
125 #define AFS_AIX51_ENV           1
126
127 #define AFS_HAVE_FLOCK_SYSID    1
128
129 #endif /* KERNEL */
130
131 #include <afs/afs_sysnames.h>
132
133                                                                                                                /*#define AFS_GLOBAL_SUNLOCK    1 *//* For global locking */
134
135 #define AFS_3DISPARES           1       /* Utilize the 3 available disk inode 'spares' */
136 #define AFS_SYSCALL             105
137
138 /* File system entry (used if mount.h doesn't define MOUNT_AFS */
139 #define AFS_MOUNT_AFS    4
140
141 /* Machine / Operating system information */
142 #define sys_rs_aix51    1
143 #define SYS_NAME        "rs_aix51"
144 #define SYS_NAME_ID     SYS_NAME_ID_rs_aix51
145 #define AFSBIG_ENDIAN   1
146 #define AFS_HAVE_FFS            1       /* Use system's ffs. */
147 #define AFS_HAVE_STATVFS        1       /* System supports statvfs */
148
149 /* Extra kernel definitions (from kdefs file) */
150 #ifdef KERNEL
151 #define AFS_UIOFMODE            1       /* Only in afs/afs_vnodeops.c (afs_ustrategy) */
152 #define AFS_SYSVLOCK            1       /* sys v locking supported */
153 #define afsio_iov       uio_iov
154 #define afsio_iovcnt    uio_iovcnt
155 #define afsio_offset    uio_offset
156 #define afsio_seg       uio_segflg
157 #define afsio_fmode     uio_fmode
158 #define afsio_resid     uio_resid
159 #define AFS_UIOSYS      1
160 #define AFS_UIOUSER     UIO_USERSPACE
161 #define AFS_CLBYTES     MCLBYTES
162 #define AFS_MINCHANGE   2
163 #define VATTR_NULL      usr_vattr_null
164 #endif /* KERNEL */
165 #define AFS_DIRENT
166 #ifndef CMSERVERPREF
167 #define CMSERVERPREF
168 #endif
169
170 #endif /* AFS_PARAM_H */
171
172 #endif /* !defined(UKERNEL) */