original comment: +Wilson03172004,marked due to this pci host does not support MWI
[linux-2.4.git] / include / asm-ia64 / resource.h
1 #ifndef _ASM_IA64_RESOURCE_H
2 #define _ASM_IA64_RESOURCE_H
3
4 /*
5  * Resource limits
6  *
7  * Based on <asm-i386/resource.h>.
8  *
9  * Modified 1998, 1999
10  *      David Mosberger-Tang <davidm@hpl.hp.com>, Hewlett-Packard Co
11  */
12
13 #include <asm/ustack.h>
14
15 #define RLIMIT_CPU      0               /* CPU time in ms */
16 #define RLIMIT_FSIZE    1               /* Maximum filesize */
17 #define RLIMIT_DATA     2               /* max data size */
18 #define RLIMIT_STACK    3               /* max stack size */
19 #define RLIMIT_CORE     4               /* max core file size */
20 #define RLIMIT_RSS      5               /* max resident set size */
21 #define RLIMIT_NPROC    6               /* max number of processes */
22 #define RLIMIT_NOFILE   7               /* max number of open files */
23 #define RLIMIT_MEMLOCK  8               /* max locked-in-memory address space */
24 #define RLIMIT_AS       9               /* address space limit */
25 #define RLIMIT_LOCKS    10              /* maximum file locks held */
26
27 #define RLIM_NLIMITS    11
28
29 /*
30  * SuS says limits have to be unsigned.
31  * Which makes a ton more sense anyway.
32  */
33 #define RLIM_INFINITY  (~0UL)
34
35 # ifdef __KERNEL__
36
37 #define INIT_RLIMITS                                    \
38 {                                                       \
39         { RLIM_INFINITY, RLIM_INFINITY },               \
40         { RLIM_INFINITY, RLIM_INFINITY },               \
41         { RLIM_INFINITY, RLIM_INFINITY },               \
42         {      _STK_LIM, DEFAULT_USER_STACK_SIZE },     \
43         {             0, RLIM_INFINITY },               \
44         { RLIM_INFINITY, RLIM_INFINITY },               \
45         {             0,             0 },               \
46         {      INR_OPEN,     INR_OPEN  },               \
47         { RLIM_INFINITY, RLIM_INFINITY },               \
48         { RLIM_INFINITY, RLIM_INFINITY },               \
49         { RLIM_INFINITY, RLIM_INFINITY },               \
50 }
51
52 # endif /* __KERNEL__ */
53
54 #endif /* _ASM_IA64_RESOURCE_H */