7326e4f6f96ff7dc5c98e52daea27a246728087c
[openafs.git] / src / config / param.sun4x_58.h
1 #ifndef _PARAM_SUN4X_58_H_
2 #define _PARAM_SUN4X_58_H_
3
4 #define AFS_VFS_ENV     1
5 /* Used only in vfsck/* code; is it needed any more???? */
6
7 #define AFS_VFSINCL_ENV 1       /* NOBODY uses this.... */
8 #define AFS_GREEDY43_ENV        1       /* Used only in rx/rx_user.c */
9 #define AFS_ENV                 1
10 #define AFS_SUN_ENV             1
11 #define AFS_SUN5_ENV            1
12 #define AFS_SUN52_ENV           1
13 #define AFS_SUN53_ENV           1
14 #define AFS_SUN54_ENV           1
15 #define AFS_SUN55_ENV           1
16 #define AFS_SUN56_ENV           1
17 #define AFS_SUN57_ENV           1
18 #define AFS_SUN58_ENV           1
19
20 #define AFS_64BIT_ENV           1       /* Defines afs_int32 as int, not long. */
21
22 #include <afs/afs_sysnames.h>
23
24 #define AFS_GLOBAL_SUNLOCK      1       /* For global locking */
25 #define RXK_LISTENER_ENV   1
26 #define AFS_GCPAGS              1       /* if nonzero, garbage collect PAGs */
27
28 #define AFS_3DISPARES           1       /* Utilize the 3 available disk inode 'spares' */
29 #define AFS_SYSCALL             101
30
31 /* File system entry (used if mount.h doesn't define MOUNT_AFS */
32 #define AFS_MOUNT_AFS    "afs"
33
34 /* Machine / Operating system information */
35 #define sys_sun4x_58    1
36 #define SYS_NAME        "sun4x_58"
37 #define SYS_NAME_ID     SYS_NAME_ID_sun4x_58
38 #define AFSBIG_ENDIAN   1
39 #define AFS_HAVE_FFS    1       /* Use system's ffs. */
40 #define AFS_HAVE_VXFS   1       /* Support cache on Veritas vxfs file system */
41 #define AFS_HAVE_STATVFS 1      /* System supports statvfs */
42 #define AFS_VM_RDWR_ENV 1       /* read/write implemented via VM */
43 #define AFS_USE_GETTIMEOFDAY 1  /* use gettimeofday to implement rx clock */
44
45 #define NEARINODE_HINT  1   /* hint to ufs module to scatter inodes on disk*/
46 #define nearInodeHash(volid, hval) {                                 \
47                 unsigned char*  ts = (unsigned char*)&(volid)+sizeof(volid)-1;\
48                 for ( (hval)=0; ts >= (unsigned char*)&(volid); ts--){\
49                     (hval) *= 173;                      \
50                     (hval) += *ts;                      \
51                 }                                       \
52                 }
53
54 /* Extra kernel definitions (from kdefs file) */
55 #ifdef KERNEL
56 /* sun definitions here */
57 #define AFS_UIOFMODE            1       /* Only in afs/afs_vnodeops.c (afs_ustrategy) */
58 #define AFS_SYSVLOCK            1       /* sys v locking supported */
59 /*#define       AFS_USEBUFFERS  1*/
60 #define afsio_iov               uio_iov
61 #define afsio_iovcnt    uio_iovcnt
62 #define afsio_offset    uio_offset
63 #define afsio_seg               uio_segflg
64 #define afsio_fmode     uio_fmode
65 #define afsio_resid     uio_resid
66 #define AFS_UIOSYS      UIO_SYSSPACE
67 #define AFS_UIOUSER     UIO_USERSPACE
68 #define AFS_CLBYTES     MCLBYTES
69 #define AFS_MINCHANGE   2
70 #define osi_GetTime(x)  uniqtime(x)
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   * AFS_64BIT_ENV is for use of 64 bit inode numbers
76   */
77 #if defined(__sparcv9)
78 #define AFS_SUN57_64BIT_ENV     1
79 #define AFS_64BIT_INO           1
80 #endif
81
82 /**
83   * Solaris 7 64 bit has two versions of uniqtime. Since we consistently
84   * use 32 bit quantities for time in afs, we now use uniqtime32
85   */
86 #if defined(AFS_SUN57_64BIT_ENV)
87 #undef osi_GetTime
88 #define osi_GetTime(x)  uniqtime32(x)
89 #endif
90
91
92
93 #define AFS_KALLOC(n)   kmem_alloc(n, KM_SLEEP)
94 #define AFS_KALLOC_NOSLEEP(n)   kmem_alloc(n, KM_NOSLEEP)
95 #define AFS_KFREE       kmem_free
96 #define VATTR_NULL      vattr_null
97 #endif KERNEL
98 #define AFS_DIRENT      
99 #ifndef CMSERVERPREF
100 #define CMSERVERPREF
101 #endif
102 #define ROOTINO         UFSROOTINO
103
104 #endif  _PARAM_SUN4X_58_H_