venus: Remove dedebug
[openafs.git] / src / config / param.sun4x_59.h
1 #ifndef UKERNEL
2 /* This section for kernel libafs compiles only */
3
4 #ifndef AFS_PARAM_H
5 #define AFS_PARAM_H
6
7 #define AFS_VFS_ENV     1
8 /* Used only in vfsck code; is it needed any more???? */
9
10 #define AFS_VFSINCL_ENV 1       /* NOBODY uses this.... */
11 #define AFS_GREEDY43_ENV        1       /* Used only in rx/rx_user.c */
12 #define AFS_ENV                 1
13 #define AFS_SUN_ENV             1
14 #define AFS_SUN5_ENV            1
15 #define AFS_SUN59_ENV           1
16
17 #define AFS_64BIT_CLIENT        1
18
19 #define AFS_HAVE_FLOCK_SYSID    1
20
21 #ifdef AFS_NAMEI_ENV
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 */
26
27 #include <afs/afs_sysnames.h>
28
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 */
32
33 #define AFS_SYSCALL             65
34
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 */
46
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--){\
51                     (hval) *= 173;                      \
52                     (hval) += *ts;                      \
53                 }                                       \
54                 }
55
56 /* Extra kernel definitions (from kdefs file) */
57 #ifdef KERNEL
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
71
72 /**
73   * These defines are for the 64 bit Solaris 7 port
74   * AFS_SYSCALL32 is used to protect the ILP32 syscall interface
75   */
76 #if defined(__sparcv9)
77 #define AFS_SUN5_64BIT_ENV      1
78 #define AFS_64BIT_INO           1
79 #endif
80
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)
88 #endif /* KERNEL */
89 #define AFS_DIRENT
90 #ifndef CMSERVERPREF
91 #define CMSERVERPREF
92 #endif
93 #define ROOTINO         UFSROOTINO
94
95 #endif /* AFS_PARAM_H */
96
97 #else /* !defined(UKERNEL) */
98
99 /* This section for user space compiles only */
100
101 #ifndef AFS_PARAM_H
102 #define AFS_PARAM_H
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 #define UKERNEL                 1       /* user space kernel */
111 #define AFS_GREEDY43_ENV        1       /* Used only in rx/rx_user.c */
112 #define AFS_ENV                 1
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
118
119 #include <afs/afs_sysnames.h>
120
121 #define AFS_3DISPARES           1       /* Utilize the 3 available disk inode 'spares' */
122 #define AFS_SYSCALL             65
123
124 #define AFS_FSNO         1
125
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 */
134
135 /* Extra kernel definitions (from kdefs file) */
136 #ifdef KERNEL
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
145 #define AFS_UIOSYS      1
146 #define AFS_UIOUSER     UIO_USERSPACE
147 #define AFS_CLBYTES     MCLBYTES
148 #define AFS_MINCHANGE   2
149 #define VATTR_NULL      usr_vattr_null
150 #endif /* KERNEL */
151 #define AFS_DIRENT
152 #ifndef CMSERVERPREF
153 #define CMSERVERPREF
154 #endif
155 #define ROOTINO         UFSROOTINO
156
157 #endif /* AFS_PARAM_H */
158
159 #endif /* !defined(UKERNEL) */