2 /* This section for kernel libafs compiles only */
5 * Copyright 2000, International Business Machines Corporation and others.
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
17 /* Used only in vfsck code; is it needed any more???? */
19 #define AFS_VFSINCL_ENV 1 /* NOBODY uses this.... */
20 #define AFS_GREEDY43_ENV 1 /* Used only in rx/rx_user.c */
23 #define AFS_SUN5_ENV 1
24 #define AFS_SUN52_ENV 1
25 #define AFS_SUN53_ENV 1
26 #define AFS_SUN54_ENV 1
27 #define AFS_SUN55_ENV 1
28 #define AFS_SUN56_ENV 1
29 #define AFS_SUN57_ENV 1
30 #define AFS_SUN58_ENV 1
31 #define AFS_SUN59_ENV 1
34 #define AFS_64BIT_ENV 1 /* Defines afs_int32 as int, not long. */
35 #define AFS_64BIT_CLIENT 1
37 #define AFS_HAVE_FLOCK_SYSID 1
39 #include <afs/afs_sysnames.h>
41 #define AFS_GLOBAL_SUNLOCK 1 /* For global locking */
42 #define RXK_LISTENER_ENV 1
43 #define AFS_GCPAGS 1 /* if nonzero, garbage collect PAGs */
46 #define AFS_64BIT_IOPS_ENV 1 /* needed for NAMEI... */
47 #else /* AFS_NAMEI_ENV */
48 #define AFS_3DISPARES 1 /* Utilize the 3 available disk inode 'spares' */
49 #endif /* AFS_NAMEI_ENV */
51 #define AFS_SYSCALL 65
53 /* File system entry (used if mount.h doesn't define MOUNT_AFS */
54 #define AFS_MOUNT_AFS "afs"
56 /* Machine / Operating system information */
57 #define sys_sunx86_59 1
58 #define SYS_NAME "sunx86_59"
59 #define SYS_NAME_ID SYS_NAME_ID_sunx86_59
60 #define AFSLITTLE_ENDIAN 1
61 #define AFS_HAVE_FFS 1 /* Use system's ffs. */
62 #define AFS_HAVE_VXFS 1 /* Support cache on Veritas vxfs file system */
63 #define AFS_HAVE_STATVFS 1 /* System supports statvfs */
64 #define AFS_VM_RDWR_ENV 1 /* read/write implemented via VM */
65 #define AFS_USE_GETTIMEOFDAY 1 /* use gettimeofday to implement rx clock */
67 #define NEARINODE_HINT 1 /* hint to ufs module to scatter inodes on disk */
68 #define nearInodeHash(volid, hval) { \
69 unsigned char* ts = (unsigned char*)&(volid)+sizeof(volid)-1;\
70 for ( (hval)=0; ts >= (unsigned char*)&(volid); ts--){\
76 /* Extra kernel definitions (from kdefs file) */
78 /* sun definitions here */
79 #define AFS_UIOFMODE 1 /* Only in afs/afs_vnodeops.c (afs_ustrategy) */
80 #define AFS_SYSVLOCK 1 /* sys v locking supported */
81 /*#define AFS_USEBUFFERS 1*/
82 #define afsio_iov uio_iov
83 #define afsio_iovcnt uio_iovcnt
84 #define afsio_offset uio_offset
85 #define afsio_seg uio_segflg
86 #define afsio_fmode uio_fmode
87 #define afsio_resid uio_resid
88 #define AFS_UIOSYS UIO_SYSSPACE
89 #define AFS_UIOUSER UIO_USERSPACE
90 #define AFS_CLBYTES MCLBYTES
91 #define AFS_MINCHANGE 2
92 #define osi_GetTime(x) uniqtime(x)
95 * These defines are for the 64 bit Solaris 7 port
96 * AFS_SYSCALL32 is used to protect the ILP32 syscall interface
97 * AFS_64BIT_ENV is for use of 64 bit inode numbers
99 #if defined(__sparcv9)
100 #define AFS_SUN57_64BIT_ENV 1
101 #define AFS_64BIT_INO 1
105 * Solaris 7 64 bit has two versions of uniqtime. Since we consistently
106 * use 32 bit quantities for time in afs, we now use uniqtime32
108 #if defined(AFS_SUN57_64BIT_ENV)
110 #define osi_GetTime(x) uniqtime32(x)
115 #define AFS_KALLOC(n) kmem_alloc(n, KM_SLEEP)
116 #define AFS_KALLOC_NOSLEEP(n) kmem_alloc(n, KM_NOSLEEP)
117 #define AFS_KFREE kmem_free
118 #define VATTR_NULL vattr_null
119 #define memset(A, B, S) bzero(A, S)
120 #define memcpy(B, A, S) bcopy(A, B, S)
121 #define memcmp(A, B, S) bcmp(A, B, S)
127 #define ROOTINO UFSROOTINO
129 #endif /* AFS_PARAM_H */
131 #else /* !defined(UKERNEL) */
133 /* This section for user space compiles only */
136 * Copyright 2000, International Business Machines Corporation and others.
137 * All Rights Reserved.
139 * This software has been released under the terms of the IBM Public
140 * License. For details, see the LICENSE file in the top-level source
141 * directory or online at http://www.openafs.org/dl/license10.html
147 #define AFS_VFS_ENV 1
148 /* Used only in vfsck code; is it needed any more???? */
149 #define RXK_LISTENER_ENV 1
150 #define AFS_USERSPACE_IP_ADDR 1
151 #define AFS_GCPAGS 0 /* if nonzero, garbage collect PAGs */
153 #define UKERNEL 1 /* user space kernel */
154 #define AFS_GREEDY43_ENV 1 /* Used only in rx/rx_user.c */
156 #define AFS_USR_SUN5_ENV 1
157 #define AFS_USR_SUN6_ENV 1
158 #define AFS_USR_SUN7_ENV 1
159 #define AFS_USR_SUN8_ENV 1
160 #define AFS_USR_SUN9_ENV 1
162 #include <afs/afs_sysnames.h>
165 #define AFS_GLOBAL_SUNLOCK 1 /* For global locking */
168 #define AFS_3DISPARES 1 /* Utilize the 3 available disk inode 'spares' */
169 #define AFS_SYSCALL 65
171 /* File system entry (used if mount.h doesn't define MOUNT_AFS */
172 #define AFS_MOUNT_AFS 1
174 /* Machine / Operating system information */
175 #define sys_sunx86_59 1
176 #define SYS_NAME "sunx86_59"
177 #define SYS_NAME_ID SYS_NAME_ID_sunx86_59
178 #define AFSLITTLE_ENDIAN 1
179 #define AFS_HAVE_FFS 1 /* Use system's ffs. */
180 #define AFS_HAVE_STATVFS 0 /* System doesn't support statvfs */
182 /* Extra kernel definitions (from kdefs file) */
184 #define AFS_UIOFMODE 1 /* Only in afs/afs_vnodeops.c (afs_ustrategy) */
185 #define AFS_SYSVLOCK 1 /* sys v locking supported */
186 /*#define AFS_USEBUFFERS 1*/
187 #define afsio_iov uio_iov
188 #define afsio_iovcnt uio_iovcnt
189 #define afsio_offset uio_offset
190 #define afsio_seg uio_segflg
191 #define afsio_fmode uio_fmode
192 #define afsio_resid uio_resid
194 #define AFS_UIOUSER UIO_USERSPACE
195 #define AFS_CLBYTES MCLBYTES
196 #define AFS_MINCHANGE 2
197 #define VATTR_NULL usr_vattr_null
203 #define ROOTINO UFSROOTINO
205 #endif /* AFS_PARAM_H */
207 #endif /* !defined(UKERNEL) */