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 /* In user space the AFS_LINUX20_ENV should be sufficient. In the kernel,
17 * it's a judgment call. If something is obviously i386 specific, use that
18 * #define instead. Note that "20" refers to the linux 2.0 kernel. The "2"
19 * in the sysname is the current version of the client. This takes into
20 * account the perferred OS user space configuration as well as the kernel.
23 #define AFS_LINUX20_ENV 1
24 #define AFS_LINUX22_ENV 1
25 #define AFS_I386_LINUX20_ENV 1
26 #define AFS_I386_LINUX22_ENV 1
27 #define AFS_I386_UMLINUX20_ENV 1
28 #define AFS_I386_UMLINUX22_ENV 1
29 #define AFS_NONFSTRANS 1
31 #define AFS_MOUNT_AFS "afs" /* The name of the filesystem type. */
32 #define AFS_SYSCALL 137
33 #define AFS_64BIT_IOPS_ENV 1
34 #define AFS_NAMEI_ENV 1 /* User space interface to file system */
36 #if defined(__KERNEL__) && !defined(KDUMP_KERNEL)
37 #include <linux/config.h>
41 /* Using "AFS_SMP" to map to however many #define's are required to get
42 * MP to compile for Linux
46 #ifndef CONFIG_X86_LOCAL_APIC
47 #define CONFIG_X86_LOCAL_APIC 1
52 #define AFS_GLOBAL_SUNLOCK
55 #if defined(MODULE) && defined(CONFIG_MODVERSIONS)
57 #include <linux/modversions.h>
60 #endif /* __KERNEL__ && !DUMP_KERNEL */
62 #include <afs/afs_sysnames.h>
64 #define AFS_USERSPACE_IP_ADDR 1
65 #define RXK_LISTENER_ENV 1
66 #define AFS_GCPAGS 2 /* Set to Userdisabled, allow sysctl to override */
69 /* Machine / Operating system information */
70 #define SYS_NAME "i386_umlinux22"
71 #define SYS_NAME_ID SYS_NAME_ID_i386_umlinux22
72 #define AFSLITTLE_ENDIAN 1
73 #define AFS_HAVE_FFS 1 /* Use system's ffs. */
74 #define AFS_HAVE_STATVFS 0 /* System doesn't support statvfs */
75 #define AFS_VM_RDWR_ENV 1 /* read/write implemented via VM */
76 #define AFS_USE_GETTIMEOFDAY 1 /* use gettimeofday to implement rx clock */
80 #define MIN(A,B) ((A) < (B) ? (A) : (B))
83 #define MAX(A,B) ((A) > (B) ? (A) : (B))
87 #endif /* AFS_PARAM_H */
89 #else /* !defined(UKERNEL) */
91 /* This section for user space compiles only */
94 * Copyright 2000, International Business Machines Corporation and others.
95 * All Rights Reserved.
97 * This software has been released under the terms of the IBM Public
98 * License. For details, see the LICENSE file in the top-level source
99 * directory or online at http://www.openafs.org/dl/license10.html
105 /* In user space the AFS_LINUX20_ENV should be sufficient. In the kernel,
106 * it's a judgment call. If something is obviously i386 specific, use that
107 * #define instead. Note that "20" refers to the linux 2.0 kernel. The "2"
108 * in the sysname is the current version of the client. This takes into
109 * account the perferred OS user space configuration as well as the kernel.
112 #define UKERNEL 1 /* user space kernel */
114 #define AFS_USR_LINUX20_ENV 1
115 #define AFS_USR_LINUX22_ENV 1
116 #define AFS_NONFSTRANS 1
118 #define AFS_MOUNT_AFS "afs" /* The name of the filesystem type. */
119 #define AFS_SYSCALL 137
120 #define AFS_64BIT_IOPS_ENV 1
121 #define AFS_NAMEI_ENV 1 /* User space interface to file system */
122 #include <afs/afs_sysnames.h>
124 #define AFS_USERSPACE_IP_ADDR 1
125 #define RXK_LISTENER_ENV 1
126 #define AFS_GCPAGS 0 /* if nonzero, garbage collect PAGs */
129 /* Machine / Operating system information */
130 #define SYS_NAME "i386_umlinux22"
131 #define SYS_NAME_ID SYS_NAME_ID_i386_umlinux22
132 #define AFSLITTLE_ENDIAN 1
133 #define AFS_HAVE_FFS 1 /* Use system's ffs. */
134 #define AFS_HAVE_STATVFS 0 /* System doesn't support statvfs */
135 #define AFS_VM_RDWR_ENV 1 /* read/write implemented via VM */
137 #define afsio_iov uio_iov
138 #define afsio_iovcnt uio_iovcnt
139 #define afsio_offset uio_offset
140 #define afsio_seg uio_segflg
141 #define afsio_fmode uio_fmode
142 #define afsio_resid uio_resid
144 #define AFS_UIOUSER UIO_USERSPACE
145 #define AFS_CLBYTES MCLBYTES
146 #define AFS_MINCHANGE 2
147 #define VATTR_NULL usr_vattr_null
154 #endif /* AFS_PARAM_H */
156 #endif /* !defined(UKERNEL) */