sunos4-port-20020821
[openafs.git] / src / config / param.sun4_413.h
1 /*\r
2  * Copyright 2000, International Business Machines Corporation and others.\r
3  * All Rights Reserved.\r
4  * \r
5  * This software has been released under the terms of the IBM Public\r
6  * License.  For details, see the LICENSE file in the top-level source\r
7  * directory or online at http://www.openafs.org/dl/license10.html\r
8  */\r
9 \r
10 #ifndef AFS_PARAM_H\r
11 #define AFS_PARAM_H\r
12 \r
13 #define AFS_VFSINCL_ENV 1       /* NOBODY uses this.... */\r
14 #define AFS_ENV                 1\r
15 #define AFS_SUN_ENV             1\r
16 #define AFS_SUN4_ENV            1\r
17 \r
18 #include <afs/afs_sysnames.h>\r
19 \r
20 #define AFS_GCPAGS              1       /* if nonzero, garbage collect PAGs */\r
21 #define AFS_GLOBAL_SUNLOCK      1       /* For global locking */\r
22 \r
23 #define AFS_3DISPARES           1       /* Utilize the 3 available disk inode 'spares' */\r
24 #define AFS_SYSCALL             31\r
25 \r
26 /* File system entry (used if mount.h doesn't define MOUNT_AFS */\r
27 #define AFS_MOUNT_AFS    "afs"\r
28 \r
29 /* Machine / Operating system information */\r
30 #define sys_sun4_413    1\r
31 #define SYS_NAME        "sun4_413"\r
32 #define SYS_NAME_ID     SYS_NAME_ID_sun4_411\r
33 #define AFSBIG_ENDIAN   1\r
34 #define AFS_HAVE_FFS    1       /* Use system's ffs. */\r
35 #define AFS_HAVE_STATVFS 0\r
36 #define AFS_VM_RDWR_ENV 1       /* read/write implemented via VM */\r
37 \r
38 /* Extra kernel definitions (from kdefs file) */\r
39 #ifdef KERNEL\r
40 /* sun definitions here */\r
41 #define AFS_UIOFMODE            1       /* Only in afs/afs_vnodeops.c (afs_ustrategy) */\r
42 #define afsio_iov               uio_iov\r
43 #define afsio_iovcnt    uio_iovcnt\r
44 #define afsio_offset    uio_offset\r
45 #define afsio_seg               uio_segflg\r
46 #define afsio_fmode     uio_fmode\r
47 #define afsio_resid     uio_resid\r
48 #define AFS_UIOSYS      UIO_SYSSPACE\r
49 #define AFS_UIOUSER     UIO_USERSPACE\r
50 #define AFS_CLBYTES     MCLBYTES\r
51 #define AFS_MINCHANGE   2\r
52 #define osi_GetTime(x)  uniqtime(x)\r
53 #define AFS_KALLOC(n)   kmem_alloc(n, KMEM_SLEEP)\r
54 #define AFS_KALLOC_NOSLEEP(n)   kmem_alloc(n, KMEM_NOSLEEP)\r
55 #define AFS_KFREE       kmem_free\r
56 #define VATTR_NULL      vattr_null\r
57 #endif /* KERNEL */\r
58 #define memset(A, B, S) bzero(A, S)\r
59 #define memcpy(B, A, S) bcopy(A, B, S) \r
60 #define memcmp(A, B, S) bcmp(A, B, S)\r
61 #define memmove(B, A, S) bcopy(A, B, S)\r
62 #define AFS_DIRENT      \r
63 #ifndef CMSERVERPREF\r
64 #define CMSERVERPREF\r
65 #endif\r
66 \r
67 #endif /* AFS_PARAM_H */\r