e4ddc6aa68e0bf954eb3baa9801e8674a8752182
[openafs.git] / src / config / param.i386_linux24.h
1 #ifndef AFS_PARAM_H
2 #define AFS_PARAM_H
3
4 /* In user space the AFS_LINUX20_ENV should be sufficient. In the kernel,
5  * it's a judgment call. If something is obviously i386 specific, use that
6  * #define instead. Note that "20" refers to the linux 2.0 kernel. The "2"
7  * in the sysname is the current version of the client. This takes into
8  * account the perferred OS user space configuration as well as the kernel.
9  */
10
11 #define AFS_LINUX20_ENV        1
12 #define AFS_LINUX22_ENV        1
13 #define AFS_LINUX24_ENV        1
14 #define AFS_I386_LINUX20_ENV   1
15 #define AFS_I386_LINUX22_ENV   1
16 #define AFS_I386_LINUX24_ENV   1
17 #define AFS_NONFSTRANS 1
18
19 #define AFS_MOUNT_AFS "afs"    /* The name of the filesystem type. */
20 #define AFS_SYSCALL 137
21 #define AFS_64BIT_IOPS_ENV  1
22 #define AFS_NAMEI_ENV     1   /* User space interface to file system */
23 #define AFS_64BIT_ENV           1
24 #define AFS_64BIT_CLIENT        1
25
26 #if defined(__KERNEL__) && !defined(KDUMP_KERNEL)
27 #include <linux/config.h>
28 #ifdef CONFIG_SMP
29 #undef CONFIG_SMP
30 #endif
31 /* Using "AFS_SMP" to map to however many #define's are required to get
32  * MP to compile for Linux
33  */
34 #ifdef AFS_SMP
35 #define CONFIG_SMP
36 #ifndef CONFIG_X86_LOCAL_APIC
37 #define CONFIG_X86_LOCAL_APIC
38 #endif
39 #ifndef __SMP__
40 #define __SMP__
41 #endif
42 #define AFS_GLOBAL_SUNLOCK
43 #endif
44
45 #if defined(MODULE) && defined(CONFIG_MODVERSIONS)
46 #define MODVERSIONS
47 #include <linux/modversions.h>
48 #endif
49
50 #endif /* __KERNEL__  && !DUMP_KERNEL*/
51
52 #include <afs/afs_sysnames.h>
53 #define AFS_USERSPACE_IP_ADDR 1
54 #define RXK_LISTENER_ENV 1
55 #define AFS_GCPAGS             0       /* if nonzero, garbage collect PAGs */
56
57 #define AFSLITTLE_ENDIAN    1
58 #define AFS_HAVE_FFS        1       /* Use system's ffs. */
59 #define AFS_HAVE_STATVFS    0  /* System doesn't support statvfs */
60 #define AFS_VM_RDWR_ENV            1   /* read/write implemented via VM */
61
62 #ifdef KERNEL
63 #ifndef MIN
64 #define MIN(A,B) ((A) < (B) ? (A) : (B))
65 #endif
66 #ifndef MAX
67 #define MAX(A,B) ((A) > (B) ? (A) : (B))
68 #endif
69 #endif /* KERNEL */
70
71 /* Machine / Operating system information */
72 #define SYS_NAME       "i386_linux24"
73 #define SYS_NAME_ID    SYS_NAME_ID_i386_linux24
74
75 #endif /* AFS_PARAM_H */
76
77