Sync usage with man page.
[netbsd-mini2440.git] / sys / compat / irix / irix_sysmp.h
blobdb652595ac68b9ab1edd29ad90b4dfb132dce128
1 /* $NetBSD: irix_sysmp.h,v 1.3 2002/03/26 10:54:40 manu Exp $ */
3 /*-
4 * Copyright (c) 2001-2002 The NetBSD Foundation, Inc.
5 * All rights reserved.
7 * This code is derived from software contributed to The NetBSD Foundation
8 * by Emmanuel Dreyfus.
10 * Redistribution and use in source and binary forms, with or without
11 * modification, are permitted provided that the following conditions
12 * are met:
13 * 1. Redistributions of source code must retain the above copyright
14 * notice, this list of conditions and the following disclaimer.
15 * 2. Redistributions in binary form must reproduce the above copyright
16 * notice, this list of conditions and the following disclaimer in the
17 * documentation and/or other materials provided with the distribution.
19 * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
20 * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
21 * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
22 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
23 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
24 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
25 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
27 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29 * POSSIBILITY OF SUCH DAMAGE.
32 #ifndef _IRIX_SYSMP_H_
33 #define _IRIX_SYSMP_H_
35 /* From IRIX's <sys/sysmp.h> */
36 #define IRIX_MP_NPROCS 1
37 #define IRIX_MP_NAPROCS 2
38 #define IRIX_MP_SPACE 3
39 #define IRIX_MP_ENABLE 4
40 #define IRIX_MP_DISABLE 5
41 #define IRIX_MP_KERNADDR 8
42 #define IRIX_MP_SASZ 9
43 #define IRIX_MP_SAGET 10
44 #define IRIX_MP_SCHED 13
45 #define IRIX_MP_PGSIZE 14
46 #define IRIX_MP_SAGET1 15
47 #define IRIX_MP_EMPOWER 16
48 #define IRIX_MP_RESTRICT 17
49 #define IRIX_MP_CLOCK 18
50 #define IRIX_MP_MUSTRUN 19
51 #define IRIX_MP_RUNANYWHERE 20
52 #define IRIX_MP_STAT 21
53 #define IRIX_MP_ISOLATE 22
54 #define IRIX_MP_UNISOLATE 23
55 #define IRIX_MP_PREEMPTIVE 24
56 #define IRIX_MP_NONPREEMPTIVE 25
57 #define IRIX_MP_FASTCLOCK 26
58 #define IRIX_MP_CLEARNFSSTAT 28
59 #define IRIX_MP_GETMUSTRUN 29
60 #define IRIX_MP_MUSTRUN_PID 30
61 #define IRIX_MP_RUNANYWHERE_PID 31
62 #define IRIX_MP_GETMUSTRUN_PID 32
63 #define IRIX_MP_CLEARCFSSTAT 33
64 #define IRIX_MP_CPUSET 35
65 #define IRIX_MP_MISER_GETREQUEST 36
66 #define IRIX_MP_MISER_SENDREQUEST 37
67 #define IRIX_MP_MISER_RESPOND 38
68 #define IRIX_MP_MISER_GETRESOURCE 39
69 #define IRIX_MP_MISER_SETRESOURCE 40
70 #define IRIX_MP_MISER_CHECKACCESS 41
71 #define IRIX_MP_NUMNODES 42
72 #define IRIX_MP_NUMA_GETDISTMATRIX 43
73 #define IRIX_MP_NUMA_GETCPUNODEMAP 44
74 #define IRIX_MP_DISABLE_CPU 45
75 #define IRIX_MP_ENABLE_CPU 46
76 #define IRIX_MP_CPU_PATH 47
77 #define IRIX_MP_KLSTAT 48
78 #define IRIX_MP_NUM_CPU_PER_NODE 49
80 /* IRIX_MP_KERNADDR subcommands */
81 #define IRIX_MPKA_VAR 2
82 #define IRIX_MPKA_SWPLO 3
83 #define IRIX_MPKA_INO 4
84 #define IRIX_MPKA_SEMAMETER 7
85 #define IRIX_MPKA_PROCSIZE 9
86 #define IRIX_MPKA_TIME 10
87 #define IRIX_MPKA_MSG 11
88 #define IRIX_MPKA_MSGINFO 14
89 #define IRIX_MPKA_SPLOCKMETER 17
90 #define IRIX_MPKA_SPLOCKMETERTAB 18
91 #define IRIX_MPKA_AVENRUN 19
92 #define IRIX_MPKA_PHYSMEM 20
93 #define IRIX_MPKA_KPBASE 21
94 #define IRIX_MPKA_PFDAT 22
95 #define IRIX_MPKA_FREEMEM 23
96 #define IRIX_MPKA_USERMEM 24
97 #define IRIX_MPKA_PDWRIMEM 25
98 #define IRIX_MPKA_BUFMEM 26
99 #define IRIX_MPKA_BUF 27
100 #define IRIX_MPKA_CHUNKMEM 30
101 #define IRIX_MPKA_MAXCLICK 31
102 #define IRIX_MPKA_PSTART 32
103 #define IRIX_MPKA_TEXT 33
104 #define IRIX_MPKA_ETEXT 34
105 #define IRIX_MPKA_EDATA 35
106 #define IRIX_MPKA_END 36
107 #define IRIX_MPKA_SYSSEGSZ 37
108 #define IRIX_MPKA_SEM_MAC 38
109 #define IRIX_MPKA_MSG_MAC 40
110 #define IRIX_MPKA_BSD_KERNADDRS 41
112 /* SASZ/SAGET subcommands */
113 #define IRIX_MPSA_SINFO 1
114 #define IRIX_MPSA_MINFO 2
115 #define IRIX_MPSA_DINFO 3
116 #define IRIX_MPSA_SERR 4
117 #define IRIX_MPSA_NCSTATS 5
118 #define IRIX_MPSA_EFS 6
119 #define IRIX_MPSA_RMINFO 8
120 #define IRIX_MPSA_BUFINFO 9
121 #define IRIX_MPSA_RUNQ 10
122 #define IRIX_MPSA_DISPQ 11
123 #define IRIX_MPSA_VOPINFO 13
124 #define IRIX_MPSA_TCPIPSTATS 14
125 #define IRIX_MPSA_RCSTAT 15
126 #define IRIX_MPSA_CLSTAT 16
127 #define IRIX_MPSA_RSSTAT 17
128 #define IRIX_MPSA_SVSTAT 18
129 #define IRIX_MPSA_XFSSTATS 20
130 #define IRIX_MPSA_CLSTAT3 21
131 #define IRIX_MPSA_TILEINFO 22
132 #define IRIX_MPSA_CFSSTAT 23
133 #define IRIX_MPSA_SVSTAT3 24
134 #define IRIX_MPSA_NODE_INFO 25
135 #define IRIX_MPSA_LPGSTATS 26
136 #define IRIX_MPSA_SHMSTAT 27
137 #define IRIX_MPSA_KSYM 28
138 #define IRIX_MPSA_MSGQUEUE 29
139 #define IRIX_MPSA_SEM 30
140 #define IRIX_MPSA_SOCKSTATS 31
141 #define IRIX_MPSA_SINFO_CPU 32
142 #define IRIX_MPSA_STREAMSTATS 33
143 #define IRIX_MPSA_TILEINFO 22
144 #define IRIX_MPSA_CFSSTAT 23
145 #define IRIX_MPSA_SVSTAT3 24
146 #define IRIX_MPSA_NODE_INFO 25
147 #define IRIX_MPSA_LPGSTATS 26
148 #define IRIX_MPSA_SHMSTAT 27
149 #define IRIX_MPSA_KSYM 28
150 #define IRIX_MPSA_MSGQUEUE 29
151 #define IRIX_MPSA_SEM 30
152 #define IRIX_MPSA_SOCKSTATS 31
153 #define IRIX_MPSA_SINFO_CPU 32
154 #define IRIX_MPSA_STREAMSTATS 33
156 /* Real Memory system accounting struct */
157 struct irix_sysmp_rminfo {
158 uint32_t freemem;
159 uint32_t availsmem;
160 uint32_t availrmem;
161 uint32_t bufmem;
162 uint32_t physmem;
163 uint32_t dchunkpages;
164 uint32_t pmapmem;
165 uint32_t strmem;
166 uint32_t chunkpages;
167 uint32_t dpages;
168 uint32_t emptymem;
169 uint32_t ravailrmem;
172 #endif /* _IRIX_SYSIRIX_IRIX_MP_H_ */