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
10 #ifndef _PARAM_I386_LINUX22_H_
11 #define _PARAM_I386_LINUX22_H_
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 */
30 #include <afs/afs_sysnames.h>
32 #define AFS_USERSPACE_IP_ADDR 1
33 #define RXK_LISTENER_ENV 1
34 #define AFS_GCPAGS 0 /* if nonzero, garbage collect PAGs */
37 /* Machine / Operating system information */
38 #define SYS_NAME "i386_linux22"
39 #define SYS_NAME_ID SYS_NAME_ID_i386_linux22
40 #define AFSLITTLE_ENDIAN 1
41 #define AFS_HAVE_FFS 1 /* Use system's ffs. */
42 #define AFS_HAVE_STATVFS 0 /* System doesn't support statvfs */
43 #define AFS_VM_RDWR_ENV 1 /* read/write implemented via VM */
45 #if defined(__KERNEL__) && !defined(KDUMP_KERNEL)
46 #include <linux/config.h>
50 /* Using "AFS_SMP" to map to however many #define's are required to get
51 * MP to compile for Linux
55 #ifndef CONFIG_X86_LOCAL_APIC
56 #define CONFIG_X86_LOCAL_APIC
59 #define AFS_GLOBAL_SUNLOCK
62 #if defined(MODULE) && defined(CONFIG_MODVERSIONS)
64 #include <linux/modversions.h>
67 #endif /* __KERNEL__ && !DUMP_KERNEL*/
71 #define MIN(A,B) ((A) < (B) ? (A) : (B))
74 #define MAX(A,B) ((A) > (B) ? (A) : (B))
78 #endif /* _PARAM_I386_LINUX20_H_ */