2 /* This section for kernel libafs compiles only */
8 /* Used only in vfsck code; is it needed any more???? */
10 #define AFS_VFSINCL_ENV 1 /* NOBODY uses this.... */
11 #define AFS_GREEDY43_ENV 1 /* Used only in rx/rx_user.c */
14 #define AFS_SUN5_ENV 1
15 #define AFS_SUN59_ENV 1
17 #define AFS_64BIT_CLIENT 1
19 #define AFS_HAVE_FLOCK_SYSID 1
22 #define AFS_64BIT_IOPS_ENV 1 /* needed for NAMEI... */
23 #else /* AFS_NAMEI_ENV */
24 #define AFS_3DISPARES 1 /* Utilize the 3 available disk inode 'spares' */
25 #endif /* AFS_NAMEI_ENV */
27 #include <afs/afs_sysnames.h>
29 #define AFS_GLOBAL_SUNLOCK 1 /* For global locking */
30 #define RXK_LISTENER_ENV 1
31 #define AFS_GCPAGS 1 /* if nonzero, garbage collect PAGs */
33 #define AFS_SYSCALL 65
35 /* Machine / Operating system information */
36 #define sys_sun4x_59 1
37 #define SYS_NAME "sun4x_59"
38 #define SYS_NAME_ID SYS_NAME_ID_sun4x_59
39 #define AFSBIG_ENDIAN 1
40 #define AFS_HAVE_FFS 1 /* Use system's ffs. */
41 #define AFS_HAVE_VXFS 1 /* Support cache on Veritas vxfs file system */
42 #define AFS_HAVE_STATVFS 1 /* System supports statvfs */
43 #define AFS_HAVE_STATVFS64 1 /* System supports statvfs64 */
44 #define AFS_VM_RDWR_ENV 1 /* read/write implemented via VM */
45 #define AFS_USE_GETTIMEOFDAY 1 /* use gettimeofday to implement rx clock */
47 #define NEARINODE_HINT 1 /* hint to ufs module to scatter inodes on disk */
48 #define nearInodeHash(volid, hval) { \
49 unsigned char* ts = (unsigned char*)&(volid)+sizeof(volid)-1;\
50 for ( (hval)=0; ts >= (unsigned char*)&(volid); ts--){\
56 /* Extra kernel definitions (from kdefs file) */
58 /* sun definitions here */
59 #define AFS_UIOFMODE 1 /* Only in afs/afs_vnodeops.c (afs_ustrategy) */
60 #define AFS_SYSVLOCK 1 /* sys v locking supported */
61 #define afsio_iov uio_iov
62 #define afsio_iovcnt uio_iovcnt
63 #define afsio_offset uio_loffset
64 #define afsio_seg uio_segflg
65 #define afsio_fmode uio_fmode
66 #define afsio_resid uio_resid
67 #define AFS_UIOSYS UIO_SYSSPACE
68 #define AFS_UIOUSER UIO_USERSPACE
69 #define AFS_CLBYTES MCLBYTES
70 #define AFS_MINCHANGE 2
73 * These defines are for the 64 bit Solaris 7 port
74 * AFS_SYSCALL32 is used to protect the ILP32 syscall interface
76 #if defined(__sparcv9)
77 #define AFS_SUN5_64BIT_ENV 1
78 #define AFS_64BIT_INO 1
81 #define AFS_KALLOC(n) kmem_alloc(n, KM_SLEEP)
82 #define AFS_KALLOC_NOSLEEP(n) kmem_alloc(n, KM_NOSLEEP)
83 #define AFS_KFREE kmem_free
84 #define VATTR_NULL vattr_null
85 #define memset(A, B, S) bzero(A, S)
86 #define memcpy(B, A, S) bcopy(A, B, S)
87 #define memcmp(A, B, S) bcmp(A, B, S)
93 #define ROOTINO UFSROOTINO
95 #endif /* AFS_PARAM_H */
97 #else /* !defined(UKERNEL) */
99 /* This section for user space compiles only */
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 */
110 #define UKERNEL 1 /* user space kernel */
111 #define AFS_GREEDY43_ENV 1 /* Used only in rx/rx_user.c */
113 #define AFS_USR_SUN5_ENV 1
114 #define AFS_USR_SUN6_ENV 1
115 #define AFS_USR_SUN7_ENV 1
116 #define AFS_USR_SUN8_ENV 1
117 #define AFS_USR_SUN9_ENV 1
119 #include <afs/afs_sysnames.h>
121 #define AFS_3DISPARES 1 /* Utilize the 3 available disk inode 'spares' */
122 #define AFS_SYSCALL 65
126 /* Machine / Operating system information */
127 #define sys_sun4x_59 1
128 #define SYS_NAME "sun4x_59"
129 #define SYS_NAME_ID SYS_NAME_ID_sun4x_59
130 #define AFSBIG_ENDIAN 1
131 #define AFS_HAVE_FFS 1 /* Use system's ffs. */
132 #define AFS_HAVE_STATVFS 1 /* System supports statvfs */
133 #define AFS_HAVE_STATVFS64 1 /* System supports statvfs64 */
135 /* Extra kernel definitions (from kdefs file) */
137 #define AFS_UIOFMODE 1 /* Only in afs/afs_vnodeops.c (afs_ustrategy) */
138 #define AFS_SYSVLOCK 1 /* sys v locking supported */
139 #define afsio_iov uio_iov
140 #define afsio_iovcnt uio_iovcnt
141 #define afsio_offset uio_offset
142 #define afsio_seg uio_segflg
143 #define afsio_fmode uio_fmode
144 #define afsio_resid uio_resid
146 #define AFS_UIOUSER UIO_USERSPACE
147 #define AFS_CLBYTES MCLBYTES
148 #define AFS_MINCHANGE 2
149 #define VATTR_NULL usr_vattr_null
155 #define ROOTINO UFSROOTINO
157 #endif /* AFS_PARAM_H */
159 #endif /* !defined(UKERNEL) */