2 * Copyright 2000, International Business Machines Corporation and others.
5 * This software has been released under the terms of the IBM Public
6 * License. For details, see the LICENSE file in the top-level source
7 * directory or online at http://www.openafs.org/dl/license10.html
13 /* In user space the AFS_LINUX20_ENV should be sufficient. In the kernel,
14 * it's a judgment call. If something is obviously i386 specific, use that
15 * #define instead. Note that "20" refers to the linux 2.0 kernel. The "2"
16 * in the sysname is the current version of the client. This takes into
17 * account the perferred OS user space configuration as well as the kernel.
20 #define AFS_LINUX20_ENV 1
21 #define AFS_LINUX22_ENV 1
22 #define AFS_I386_LINUX20_ENV 1
23 #define AFS_I386_LINUX22_ENV 1
24 #define AFS_NONFSTRANS 1
26 #define AFS_MOUNT_AFS "afs" /* The name of the filesystem type. */
27 #define AFS_SYSCALL 137
28 #define AFS_64BIT_IOPS_ENV 1
29 #define AFS_NAMEI_ENV 1 /* User space interface to file system */
31 #if defined(__KERNEL__) && !defined(KDUMP_KERNEL)
32 #include <linux/config.h>
36 /* Using "AFS_SMP" to map to however many #define's are required to get
37 * MP to compile for Linux
41 #ifndef CONFIG_X86_LOCAL_APIC
42 #define CONFIG_X86_LOCAL_APIC
47 #define AFS_GLOBAL_SUNLOCK
50 #if defined(MODULE) && defined(CONFIG_MODVERSIONS)
52 #include <linux/modversions.h>
55 #endif /* __KERNEL__ && !DUMP_KERNEL*/
57 #include <afs/afs_sysnames.h>
59 #define AFS_USERSPACE_IP_ADDR 1
60 #define RXK_LISTENER_ENV 1
61 #define AFS_GCPAGS 0 /* if nonzero, garbage collect PAGs */
63 /* Machine / Operating system information */
64 #define SYS_NAME "i386_linux22"
65 #define SYS_NAME_ID SYS_NAME_ID_i386_linux22
66 #define AFSLITTLE_ENDIAN 1
67 #define AFS_HAVE_FFS 1 /* Use system's ffs. */
68 #define AFS_HAVE_STATVFS 0 /* System doesn't support statvfs */
69 #define AFS_VM_RDWR_ENV 1 /* read/write implemented via VM */
73 #define MIN(A,B) ((A) < (B) ? (A) : (B))
76 #define MAX(A,B) ((A) > (B) ? (A) : (B))
80 #endif /* AFS_PARAM_H */