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
16 #define AFS_VFSINCL_ENV 1 /* NOBODY uses this.... */
19 #define AFS_SUN4_ENV 1
21 #include <afs/afs_sysnames.h>
23 #define AFS_GCPAGS 1 /* if nonzero, garbage collect PAGs */
24 #define AFS_GLOBAL_SUNLOCK 1 /* For global locking */
26 #define AFS_3DISPARES 1 /* Utilize the 3 available disk inode 'spares' */
27 #define AFS_SYSCALL 31
29 /* File system entry (used if mount.h doesn't define MOUNT_AFS */
30 #define AFS_MOUNT_AFS "afs"
32 /* Machine / Operating system information */
33 #define sys_sun4_413 1
34 #define SYS_NAME "sun4_413"
35 #define SYS_NAME_ID SYS_NAME_ID_sun4_411
36 #define AFSBIG_ENDIAN 1
37 #define AFS_HAVE_FFS 1 /* Use system's ffs. */
38 #define AFS_HAVE_STATVFS 0
39 #define AFS_VM_RDWR_ENV 1 /* read/write implemented via VM */
41 #define KERNEL_HAVE_UERROR 1
43 /* Extra kernel definitions (from kdefs file) */
45 /* sun definitions here */
46 #define AFS_UIOFMODE 1 /* Only in afs/afs_vnodeops.c (afs_ustrategy) */
47 #define afsio_iov uio_iov
48 #define afsio_iovcnt uio_iovcnt
49 #define afsio_offset uio_offset
50 #define afsio_seg uio_segflg
51 #define afsio_fmode uio_fmode
52 #define afsio_resid uio_resid
53 #define AFS_UIOSYS UIO_SYSSPACE
54 #define AFS_UIOUSER UIO_USERSPACE
55 #define AFS_CLBYTES MCLBYTES
56 #define AFS_MINCHANGE 2
57 #define osi_GetTime(x) uniqtime(x)
58 #define AFS_KALLOC(n) kmem_alloc(n, KMEM_SLEEP)
59 #define AFS_KALLOC_NOSLEEP(n) kmem_alloc(n, KMEM_NOSLEEP)
60 #define AFS_KFREE kmem_free
61 #define VATTR_NULL vattr_null
63 #define memset(A, B, S) bzero(A, S)
64 #define memcpy(B, A, S) bcopy(A, B, S)
65 #define memcmp(A, B, S) bcmp(A, B, S)
66 #define memmove(B, A, S) bcopy(A, B, S)
72 #endif /* AFS_PARAM_H */
73 #else /* !defined(UKERNEL) */
75 /* This section for user space compiles only */
78 * Copyright 2000, International Business Machines Corporation and others.
79 * All Rights Reserved.
81 * This software has been released under the terms of the IBM Public
82 * License. For details, see the LICENSE file in the top-level source
83 * directory or online at http://www.openafs.org/dl/license10.html
91 /* define AFS_USR_XXX_ENV XXX */
93 #include <afs/afs_sysnames.h>
95 #define RXK_LISTENER_ENV 1
96 #define AFS_USERSPACE_IP_ADDR 1
97 #define AFS_GCPAGS 0 /* if nonzero, garbage collect PAGs */
99 #define AFS_3DISPARES 1 /* Utilize the 3 available disk inode 'spares' */
100 #define AFS_SYSCALL 31
102 /* File system entry (used if mount.h doesn't define MOUNT_AFS */
103 #define AFS_MOUNT_AFS 1
105 /* Machine / Operating system information */
106 #define sys_sun4_413 1
107 #define SYS_NAME "sun4_413"
108 #define SYS_NAME_ID SYS_NAME_ID_sun4_411
109 #define AFSBIG_ENDIAN 1
110 #define AFS_HAVE_FFS 1 /* Use system's ffs. */
111 #define AFS_HAVE_STATVFS 0
113 /* Extra kernel definitions (from kdefs file) */
115 /* sun definitions here */
116 #define AFS_UIOFMODE 1 /* Only in afs/afs_vnodeops.c (afs_ustrategy) */
117 #define afsio_iov uio_iov
118 #define afsio_iovcnt uio_iovcnt
119 #define afsio_offset uio_offset
120 #define afsio_seg uio_segflg
121 #define afsio_fmode uio_fmode
122 #define afsio_resid uio_resid
124 #define AFS_UIOUSER UIO_USERSPACE
125 #define AFS_CLBYTES MCLBYTES
126 #define AFS_MINCHANGE 2
127 #define VATTR_NULL usr_vattr_null
134 #endif /* AFS_PARAM_H */
135 #endif /* !defined(UKERNEL) */