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