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