|
Lines 1-224
Link Here
|
| 1 |
diff --git src/config/param.amd64_fbsd_101.h src/config/param.amd64_fbsd_101.h |
|
|
| 2 |
new file mode 100644 |
| 3 |
index 0000000..73eda56 |
| 4 |
--- /dev/null |
| 5 |
+++ src/config/param.amd64_fbsd_101.h |
| 6 |
@@ -0,0 +1,218 @@ |
| 7 |
+#ifndef AFS_PARAM_H |
| 8 |
+#define AFS_PARAM_H |
| 9 |
+ |
| 10 |
+/* Machine / Operating system information */ |
| 11 |
+#define SYS_NAME "amd64_fbsd_101" |
| 12 |
+#define SYS_NAME_ID SYS_NAME_ID_amd64_fbsd_101 |
| 13 |
+ |
| 14 |
+#define AFSLITTLE_ENDIAN 1 |
| 15 |
+#define AFS_HAVE_FFS 1 /* Use system's ffs. */ |
| 16 |
+#define AFS_HAVE_STATVFS 1 /* System doesn't support statvfs */ |
| 17 |
+#define AFS_VM_RDWR_ENV 1 /* read/write implemented via VM */ |
| 18 |
+ |
| 19 |
+ |
| 20 |
+#ifndef UKERNEL |
| 21 |
+/* This section for kernel libafs compiles only */ |
| 22 |
+ |
| 23 |
+#ifndef IGNORE_STDS_H |
| 24 |
+#include <sys/param.h> |
| 25 |
+#endif |
| 26 |
+ |
| 27 |
+#define AFS_XBSD_ENV 1 /* {Free,Open,Net}BSD */ |
| 28 |
+#define AFS_X86_XBSD_ENV 1 |
| 29 |
+ |
| 30 |
+#define AFS_NAMEI_ENV 1 /* User space interface to file system */ |
| 31 |
+#define AFS_64BIT_ENV 1 |
| 32 |
+#define AFS_64BIT_CLIENT 1 |
| 33 |
+#define AFS_64BITPOINTER_ENV 1 |
| 34 |
+#define AFS_64BITUSERPOINTER_ENV 1 |
| 35 |
+#define AFS_64BIT_IOPS_ENV 1 /* Needed for NAMEI */ |
| 36 |
+#define AFS_FBSD_ENV 1 |
| 37 |
+#define AFS_FBSD50_ENV 1 |
| 38 |
+#define AFS_FBSD51_ENV 1 |
| 39 |
+#define AFS_FBSD52_ENV 1 |
| 40 |
+#define AFS_FBSD53_ENV 1 |
| 41 |
+#define AFS_FBSD60_ENV 1 |
| 42 |
+#define AFS_FBSD61_ENV 1 |
| 43 |
+#define AFS_FBSD62_ENV 1 |
| 44 |
+#define AFS_FBSD70_ENV 1 |
| 45 |
+#define AFS_FBSD71_ENV 1 |
| 46 |
+#define AFS_FBSD80_ENV 1 |
| 47 |
+#define AFS_FBSD81_ENV 1 |
| 48 |
+#define AFS_FBSD90_ENV 1 |
| 49 |
+#define AFS_FBSD91_ENV 1 |
| 50 |
+#define AFS_FBSD100_ENV 1 |
| 51 |
+#define AFS_FBSD101_ENV 1 |
| 52 |
+#define AFS_X86_FBSD_ENV 1 |
| 53 |
+#define AFS_X86_FBSD50_ENV 1 |
| 54 |
+#define AFS_X86_FBSD60_ENV 1 /* added at 70--ie, some changes should port <-- */ |
| 55 |
+#define AFS_X86_FBSD62_ENV 1 |
| 56 |
+#define AFS_X86_FBSD70_ENV 1 |
| 57 |
+#define AFS_X86_FBSD71_ENV 1 |
| 58 |
+#define AFS_X86_FBSD80_ENV 1 |
| 59 |
+#define AFS_X86_FBSD81_ENV 1 |
| 60 |
+#define AFS_X86_FBSD90_ENV 1 |
| 61 |
+#define AFS_X86_FBSD91_ENV 1 |
| 62 |
+#define AFS_X86_FBSD100_ENV 1 |
| 63 |
+#define AFS_X86_FBSD101_ENV 1 |
| 64 |
+#define AFS_X86_ENV 1 |
| 65 |
+#undef AFS_NONFSTRANS |
| 66 |
+#define AFS_NONFSTRANS 1 |
| 67 |
+#define FTRUNC O_TRUNC |
| 68 |
+ |
| 69 |
+#define IUPD 0x0010 |
| 70 |
+#define IACC 0x0020 |
| 71 |
+#define ICHG 0x0040 |
| 72 |
+#define IMOD 0x0080 |
| 73 |
+ |
| 74 |
+#define IN_LOCK(ip) lockmgr(&ip->i_lock, LK_EXCLUSIVE, \ |
| 75 |
+ NULL, curproc) |
| 76 |
+#define IN_UNLOCK(ip) lockmgr(&ip->i_lock, LK_RELEASE, \ |
| 77 |
+ NULL, curproc) |
| 78 |
+ |
| 79 |
+#include <afs/afs_sysnames.h> |
| 80 |
+ |
| 81 |
+#define AFS_VFS_ENV 1 |
| 82 |
+#define AFS_VFSINCL_ENV 1 |
| 83 |
+#define AFS_GREEDY43_ENV 1 |
| 84 |
+#define AFS_ENV 1 |
| 85 |
+ |
| 86 |
+#define AFS_SYSCALL 339 |
| 87 |
+#define AFS_MOUNT_AFS "afs" |
| 88 |
+ |
| 89 |
+#ifndef MOUNT_UFS |
| 90 |
+#define MOUNT_UFS "ufs" |
| 91 |
+#endif |
| 92 |
+ |
| 93 |
+#ifndef MOUNT_AFS |
| 94 |
+#define MOUNT_AFS AFS_MOUNT_AFS |
| 95 |
+#endif |
| 96 |
+ |
| 97 |
+#define RXK_LISTENER_ENV 1 |
| 98 |
+#define AFS_GCPAGS 0 /* if nonzero, garbage collect PAGs */ |
| 99 |
+#define AFS_USE_GETTIMEOFDAY 1 /* use gettimeofday to implement rx clock */ |
| 100 |
+ |
| 101 |
+/* Extra kernel definitions (from kdefs file) */ |
| 102 |
+#ifdef _KERNEL |
| 103 |
+#define AFS_GLOBAL_SUNLOCK 1 |
| 104 |
+#define AFS_VFS34 1 /* What is VFS34??? */ |
| 105 |
+#define AFS_SHORTGID 0 /* are group id's short? */ |
| 106 |
+#define afsio_iov uio_iov |
| 107 |
+#define afsio_iovcnt uio_iovcnt |
| 108 |
+#define afsio_offset uio_offset |
| 109 |
+#define afsio_seg uio_segflg |
| 110 |
+#define afsio_resid uio_resid |
| 111 |
+#define AFS_UIOSYS UIO_SYSSPACE |
| 112 |
+#define AFS_UIOUSER UIO_USERSPACE |
| 113 |
+#define AFS_CLBYTES CLBYTES |
| 114 |
+#define osi_GetTime(x) microtime(x) |
| 115 |
+#define AFS_KALLOC(x) osi_fbsd_alloc((x), 1) |
| 116 |
+#undef AFS_KALLOC_NOSLEEP |
| 117 |
+#define AFS_KALLOC_NOSLEEP(x) osi_fbsd_alloc((x), 0) |
| 118 |
+#define AFS_KFREE(x,y) osi_fbsd_free((x)) |
| 119 |
+#define v_count v_usecount |
| 120 |
+#define v_vfsp v_mount |
| 121 |
+#define vfs_bsize mnt_stat.f_bsize |
| 122 |
+#define vfs_fsid mnt_stat.f_fsid |
| 123 |
+#define va_nodeid va_fileid |
| 124 |
+#define vfs_vnodecovered mnt_vnodecovered |
| 125 |
+#define direct dirent |
| 126 |
+#define vnode_t struct vnode |
| 127 |
+ |
| 128 |
+#ifndef MUTEX_DEFAULT |
| 129 |
+#define MUTEX_DEFAULT 0 |
| 130 |
+#endif /* MUTEX_DEFAULT */ |
| 131 |
+ |
| 132 |
+#ifndef SSYS |
| 133 |
+#define SSYS 0x00002 |
| 134 |
+#endif /* SSYS */ |
| 135 |
+ |
| 136 |
+#define p_rcred p_ucred |
| 137 |
+ |
| 138 |
+#if !defined(ASSEMBLER) && !defined(__LANGUAGE_ASSEMBLY__) |
| 139 |
+enum vcexcl { NONEXCL, EXCL }; |
| 140 |
+ |
| 141 |
+#ifdef KERNEL |
| 142 |
+#ifndef MIN |
| 143 |
+#define MIN(A,B) ((A) < (B) ? (A) : (B)) |
| 144 |
+#endif |
| 145 |
+#ifndef MAX |
| 146 |
+#define MAX(A,B) ((A) > (B) ? (A) : (B)) |
| 147 |
+#endif |
| 148 |
+#endif /* KERNEL */ |
| 149 |
+ |
| 150 |
+#endif /* ! ASSEMBLER & ! __LANGUAGE_ASSEMBLY__ */ |
| 151 |
+#endif /* _KERNEL */ |
| 152 |
+ |
| 153 |
+#else /* !defined(UKERNEL) */ |
| 154 |
+ |
| 155 |
+/* This section for user space compiles only */ |
| 156 |
+ |
| 157 |
+#define UKERNEL 1 /* user space kernel */ |
| 158 |
+#define AFS_ENV 1 |
| 159 |
+#define AFS_VFSINCL_ENV 1 |
| 160 |
+#define AFS_USR_FBSD50_ENV 1 |
| 161 |
+#define AFS_USR_FBSD51_ENV 1 |
| 162 |
+#define AFS_USR_FBSD52_ENV 1 |
| 163 |
+#define AFS_USR_FBSD53_ENV 1 |
| 164 |
+#define AFS_USR_FBSD60_ENV 1 |
| 165 |
+#define AFS_USR_FBSD61_ENV 1 |
| 166 |
+#define AFS_USR_FBSD70_ENV 1 |
| 167 |
+#define AFS_USR_FBSD71_ENV 1 |
| 168 |
+#define AFS_USR_FBSD80_ENV 1 |
| 169 |
+#define AFS_USR_FBSD81_ENV 1 |
| 170 |
+#define AFS_USR_FBSD90_ENV 1 |
| 171 |
+#define AFS_USR_FBSD91_ENV 1 |
| 172 |
+#define AFS_USR_FBSD100_ENV 1 |
| 173 |
+#define AFS_USR_FBSD101_ENV 1 |
| 174 |
+#define AFS_USR_FBSD_ENV 1 |
| 175 |
+#undef AFS_NONFSTRANS |
| 176 |
+#define AFS_NONFSTRANS 1 |
| 177 |
+ |
| 178 |
+#define AFS_MOUNT_AFS "afs" /* The name of the filesystem type. */ |
| 179 |
+#define AFS_SYSCALL 339 |
| 180 |
+#define AFS_NAMEI_ENV 1 /* User space interface to file system */ |
| 181 |
+#define AFS_64BIT_ENV 1 |
| 182 |
+#define AFS_64BITPOINTER_ENV 1 |
| 183 |
+#define AFS_64BIT_IOPS_ENV 1 /* Needed for NAMEI */ |
| 184 |
+#define AFS_USERSPACE_IP_ADDR 1 |
| 185 |
+#define RXK_LISTENER_ENV 1 |
| 186 |
+#define AFS_GCPAGS 0 /* if nonzero, garbage collect PAGs */ |
| 187 |
+ |
| 188 |
+#include <afs/afs_sysnames.h> |
| 189 |
+ |
| 190 |
+#define afsio_iov uio_iov |
| 191 |
+#define afsio_iovcnt uio_iovcnt |
| 192 |
+#define afsio_offset uio_offset |
| 193 |
+#define afsio_seg uio_segflg |
| 194 |
+#define afsio_fmode uio_fmode |
| 195 |
+#define afsio_resid uio_resid |
| 196 |
+#define AFS_UIOSYS 1 |
| 197 |
+#define AFS_UIOUSER UIO_USERSPACE |
| 198 |
+#define AFS_CLBYTES MCLBYTES |
| 199 |
+#define AFS_MINCHANGE 2 |
| 200 |
+#define VATTR_NULL usr_vattr_null |
| 201 |
+ |
| 202 |
+#define AFS_DIRENT |
| 203 |
+#ifndef CMSERVERPREF |
| 204 |
+#define CMSERVERPREF |
| 205 |
+#endif |
| 206 |
+ |
| 207 |
+#include <sys/param.h> |
| 208 |
+#include <sys/types.h> |
| 209 |
+#include <sys/mount.h> |
| 210 |
+#include <sys/fcntl.h> |
| 211 |
+#include <sys/uio.h> |
| 212 |
+#include <sys/socket.h> |
| 213 |
+#include <netinet/in.h> |
| 214 |
+#include <limits.h> |
| 215 |
+ |
| 216 |
+#endif /* !defined(UKERNEL) */ |
| 217 |
+ |
| 218 |
+/* general user-space compiles */ |
| 219 |
+ |
| 220 |
+#if defined(UKERNEL) || !defined(KERNEL) |
| 221 |
+#define STDLIB_HAS_MALLOC_PROTOS 1 |
| 222 |
+#endif |
| 223 |
+ |
| 224 |
+#endif /* AFS_PARAM_H */ |