Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036 #ifndef __SYSSGI_H__
00037 #define __SYSSGI_H__
00038
00039 #ifdef __cplusplus
00040 extern "C" {
00041 #endif
00042
00043
00044 #include <sys/types.h>
00045
00046
00047
00048
00049
00050 #define SGI_SYSID 1
00051 #define SGI_BUFINFO 2
00052 #define SGI_TUNE_SET 3
00053
00054 #define SGI_TUNE SGI_TUNE_SET
00055 #define SGI_IDBG 4
00056 #define SGI_INVENT 5
00057 #define SGI_RDNAME 6
00058 #define SGI_SETLED 7
00059 #define SGI_SETNVRAM 8
00060 #define SGI_GETNVRAM 9
00061 #define SGI_SETKOPT 10
00062 #define SGI_QUERY_FTIMER 12
00063 #define SGI_QUERY_CYCLECNTR 13
00064
00065
00066 #define SGI_SETSID 20
00067 #define SGI_SETPGID 21
00068 #define SGI_SYSCONF 22
00069 #define SGI_PATHCONF 24
00070
00071
00072 #define SGI_TITIMER 29
00073
00074
00075
00076
00077 #define SGI_READB 30
00078 #define SGI_WRITEB 31
00079
00080
00081 #define SGI_SETGROUPS 40
00082 #define SGI_GETGROUPS 41
00083
00084 #define SGI_SETTIMEOFDAY 52
00085 #define SGI_SETTIMETRIM 53
00086 #define SGI_GETTIMETRIM 54
00087 #define SGI_SPROFIL 55
00088 #define SGI_RUSAGE 56
00089 #define SGI_SIGSTACK 57
00090 #define SGI_NETPROC 59
00091 #define SGI_SIGALTSTACK 60
00092 #define SGI_BDFLUSHCNT 61
00093 #define SGI_SSYNC 62
00094 #define SGI_NFSCNVT 63
00095 #define SGI_GETPGID 64
00096 #define SGI_GETSID 65
00097 #define SGI_IOPROBE 66
00098 #define SGI_CONFIG 67
00099 #define SGI_ELFMAP 68
00100 #define SGI_MCONFIG 69
00101
00102
00103
00104
00105
00106 #define SGI_GETPLABEL 70
00107 #define SGI_SETPLABEL 71
00108 #define SGI_GETLABEL 72
00109 #define SGI_SETLABEL 73
00110
00111 #define SGI_SATREAD 74
00112 #define SGI_SATWRITE 75
00113 #define SGI_SATCTL 76
00114
00115 #define SGI_LOADATTR 77
00116 #define SGI_UNLOADATTR 78
00117
00118 #define SGI_RECVLUMSG 79
00119
00120 #define SGI_PLANGMOUNT 80
00121
00122 #define SGI_GETPSOACL 81
00123 #define SGI_SETPSOACL 82
00124
00125 #define SGI_CAP_GET 83
00126 #define SGI_CAP_SET 84
00127 #define SGI_PROC_ATTR_GET 85
00128 #define SGI_EAG_GETPROCATTR SGI_PROC_ATTR_GET
00129 #define SGI_PROC_ATTR_SET 86
00130 #define SGI_EAG_SETPROCATTR SGI_PROC_ATTR_SET
00131 #define SGI_REVOKE 87
00132 #define SGI_FREVOKE SGI_REVOKE
00133 #define SGI_ACL_GET 88
00134 #define SGI_ACL_SET 89
00135 #define SGI_MAC_GET 90
00136 #define SGI_MAC_SET 91
00137 #define SGI_RXEV_GET 92
00138
00139
00140
00141 #define SGI_SBE_GET_INFO 98
00142 #define SGI_SBE_CLR_INFO 99
00143 #define SGI_GET_EVCONF 102
00144
00145
00146 #define SGI_MPCWAROFF 103
00147 #define SGI_SET_AUTOPWRON 104
00148 #define SGI_SPIPE 105
00149 #define SGI_SYMTAB 106
00150 #define SGI_SET_FP_PRECISE 107
00151 #define SGI_TOSSTSAVE 108
00152 #define SGI_FDHI 109
00153 #define SGI_SET_CONFIG_SMM 110
00154 #define SGI_SET_FP_PRESERVE 111
00155 #define SGI_MINRSS 112
00156 #define SGI_GRIO 113
00157 #define SGI_XLV_SET_TAB 114
00158 #define SGI_XLV_GET_TAB 115
00159 #define SGI_GET_FP_PRECISE 116
00160 #define SGI_GET_CONFIG_SMM 117
00161 #define SGI_FP_IMPRECISE_SUPP 118
00162 #define SGI_CONFIG_NSMM_SUPP 119
00163
00164
00165
00166
00167 #define SGI_RT_TSTAMP_CREATE 122
00168 #define SGI_RT_TSTAMP_DELETE 123
00169 #define SGI_RT_TSTAMP_START 124
00170 #define SGI_RT_TSTAMP_STOP 125
00171 #define SGI_RT_TSTAMP_ADDR 126
00172 #define SGI_RT_TSTAMP_MASK 127
00173 #define SGI_RT_TSTAMP_EOB_MODE 128
00174
00175 #define SGI_USE_FP_BCOPY 129
00176
00177 #define SGI_GET_UST 130
00178
00179 #define SGI_SPECULATIVE_EXEC 131
00180
00181 #define SGI_XLV_NEXT_RQST 132
00182
00183 #define SGI_XLV_ATTR_CURSOR 133
00184 #define SGI_XLV_ATTR_GET 134
00185 #define SGI_XLV_ATTR_SET 135
00186
00187
00188 #define SGI_BTOOLSIZE 136
00189 #define SGI_BTOOLGET 137
00190 #define SGI_BTOOLREINIT 138
00191
00192 #define SGI_CREATE_UUID 139
00193
00194
00195 #define SGI_NOFPE 140
00196
00197 #define SGI_OLD_SOFTFP 141
00198 #define SGI_FS_INUMBERS 142
00199 #define SGI_FS_BULKSTAT 143
00200
00201
00202 #define SGI_RT_TSTAMP_WAIT 144
00203 #define SGI_RT_TSTAMP_UPDATE 145
00204
00205
00206 #define SGI_PATH_TO_HANDLE 146
00207 #define SGI_PATH_TO_FSHANDLE 147
00208 #define SGI_FD_TO_HANDLE 148
00209 #define SGI_OPEN_BY_HANDLE 149
00210 #define SGI_READLINK_BY_HANDLE 150
00211
00212 #define SGI_READ_DANGID 151
00213
00214
00215 #define SGI_CONST 152
00216 #define SGI_XFS_FSOPERATIONS 153
00217
00218
00219
00220 #define SGI_SETASH 154
00221 #define SGI_GETASH 155
00222 #define SGI_SETPRID 156
00223 #define SGI_GETPRID 157
00224 #define SGI_SETSPINFO 158
00225 #define SGI_GETSPINFO 159
00226 #define SGI_SHAREII 160
00227 #define SGI_NEWARRAYSESS 161
00228 #define SGI_GETDFLTPRID 162
00229 #define SGI_SET_DISMISSED_EXC_CNT 163
00230 #define SGI_GET_DISMISSED_EXC_CNT 164
00231
00232 #define SGI_CYCLECNTR_SIZE 165
00233 #define SGI_QUERY_FASTTIMER 166
00234 #define SGI_PIDSINASH 167
00235 #define SGI_ULI 168
00236
00237 #define SGI_CACHEFS_SYS 171
00238 #define SGI_NFSNOTIFY 172
00239 #define SGI_LOCKDSYS 173
00240
00241
00242
00243
00244 #define SGI_EVENTCTR 174
00245 #define SGI_GETPRUSAGE 175
00246
00247 #define SGI_PROCMASK_LOCATION 176
00248
00249 #define SGI_CKPT_SYS 178
00250 #define SGI_GETGRPPID 179
00251 #define SGI_GETSESPID 180
00252
00253 #define SGI_ENUMASHS 181
00254 #define SGI_SETASMACHID 182
00255 #define SGI_GETASMACHID 183
00256 #define SGI_GETARSESS 184
00257 #define SGI_JOINARRAYSESS 185
00258
00259 #define SGI_DBA_CONFIG 187
00260
00261
00262
00263
00264
00265
00266
00267
00268 #define SGI_RELEASE_NAME 188
00269
00270
00271 #define SGI_SYNCH_CACHE_HANDLER 189
00272 #define SGI_SWASH_INIT 190
00273
00274
00275
00276
00277
00278
00279
00280 #define SGI_NUM_MODULES 191
00281 #define SGI_MODULE_INFO 192
00282
00283
00284
00285
00286
00287
00288 #define SGI_GET_CONTEXT_NAME 193
00289 #define SGI_GET_CONTEXT_INFO 194
00290
00291
00292
00293
00294 #define SGI_PART_OPERATIONS 195
00295
00296
00297
00298
00299 #define SGI_EARLY_ADD_SWAP 197
00300
00301
00302
00303
00304
00305 #define SGI_NUMA_MIGR_PAGE 200
00306 #define SGI_NUMA_MIGR_PAGE_ALT 201
00307
00308 #define SGI_KAIO_USERINIT 202
00309 #define SGI_KAIO_READ 203
00310 #define SGI_KAIO_WRITE 204
00311 #define SGI_KAIO_SUSPEND 205
00312
00313 #define SGI_DBA_GETSTATS 206
00314
00315
00316
00317
00318 #define SGI_IO_SHOW_AUX_INFO 207
00319
00320 #define SGI_PMOCTL 208
00321
00322 #define SGI_ALLOCSHARENA 209
00323 #define SGI_SETVPID 210
00324 #define SGI_GETVPID 211
00325
00326
00327
00328
00329 #define SGI_NUMA_TUNE 212
00330
00331 #define SGI_ERROR_FORCE 214
00332
00333
00334 #define SGI_NUMA_STATS_GET 218
00335
00336
00337
00338
00339 #define SGI_DPIPE_FSPE_BIND 219
00340
00341
00342 #define SGI_DYIELD 220
00343 #define SGI_TUNE_GET 221
00344 #define SGI_CHPROJ 222
00345 #define SGI_LCHPROJ 223
00346 #define SGI_FCHPROJ 224
00347
00348 #define SGI_ARSESS_CTL 225
00349 #define SGI_ARSESS_OP 226
00350
00351
00352 #define SGI_FETCHOP_SETUP 227
00353
00354 #define SGI_FS_BULKSTAT_SINGLE 228
00355
00356 #define SGI_WRITE_IP32_FLASH 230
00357
00358 #define SGI_ROUTERSTATS_ENABLED 231
00359
00360
00361 #define SGI_DBA_CLRSTATS 232
00362 #define SGI_IPC_AUTORMID_SHM 233
00363
00364 #define SGI_IS_DEBUG_KERNEL 300
00365 #define SGI_IS_TRAPLOG_DEBUG_KERNEL 301
00366
00367 #define SGI_POKE 320
00368 #define SGI_PEEK 321
00369
00370 #define SGI_XLV_INDUCE_IO_ERROR 350
00371
00372
00373 #define SGI_XLV_UNINDUCE_IO_ERROR 351
00374 #define SGI_DKSC_INDUCE_IO_ERROR 352
00375 #define SGI_DKSC_UNINDUCE_IO_ERROR 353
00376
00377
00378
00379
00380
00381
00382
00383
00384 #define SGI_XFS_INJECT_ERROR 360
00385 #define SGI_XFS_CLEAR_ERROR 361
00386 #define SGI_XFS_CLEARALL_ERROR 362
00387
00388 #define SGI_XFS_MAKE_SHARED_RO 363
00389
00390
00391 #define SGI_XFS_CLEAR_SHARED_RO 364
00392
00393
00394
00395 #define SGI_FO_DUMP 400
00396 #define SGI_FO_SWITCH 401
00397 #define SGI_NOHANG 402
00398 #define SGI_UNFS 403
00399
00400
00401 #define SGI_ATTR_LIST_BY_HANDLE 404
00402 #define SGI_ATTR_MULTI_BY_HANDLE 405
00403 #define SGI_FSSETDM_BY_HANDLE 406
00404
00405 #define SGI_PHYSP 1011
00406
00407
00408
00409
00410 #define SGI_KTHREAD 1012
00411
00412
00413
00414
00415 #define SGI_FLUSH_ICACHE 1015
00416
00417
00418
00419
00420
00421
00422 #define SGI_DEBUGLPAGE 1030
00423
00424
00425
00426
00427 #define SGI_MAPLPAGE 1031
00428
00429
00430 #ifdef DEBUG
00431 #define SGI_MUTEX_TEST 1040
00432 #define SGI_MUTEX_TEST_INIT 1041
00433 #define SGI_MUTEX_TESTER_INIT 1042
00434 #endif
00435
00436
00437
00438
00439 #define SGI_CREATE_MISER_POOL 1043
00440 #define SGI_CREATE_MISER_JOB 1044
00441 #define SGI_MISER_CRITICAL 1045
00442
00443
00444
00445
00446 #define SGI_CONTEXT_SWITCH 1046
00447 #define SGI_MRLOCK_TEST_INIT 1047
00448 #define SGI_MRLOCK_TEST_RLOCK 1048
00449
00450
00451
00452
00453 #define SGI_KMEM_TEST 1051
00454 #define SGI_SHAKE_ZONES 1052
00455
00456
00457
00458
00459 #define SGI_UNICENTER 1053
00460
00461
00462
00463
00464
00465 #define SGI_CELL 1060
00466
00467
00468 enum {
00469 SGI_IS_OS_CELLULAR ,
00470 SGI_CELL_PID_TO_CELLID,
00471 SGI_CELL_OBJ_EVICT,
00472 SGI_LEAVE_MEMBERSHIP,
00473 SGI_SEND_TEST_MESG,
00474 SGI_FAIL_CELL,
00475 SGI_MEMBERSHIP_STATS ,
00476 SGI_MESG_STATS
00477 };
00478
00479
00480 enum {
00481 SGI_RESET_COUNT ,
00482 SGI_REPORT_MESSAGE_COUNT,
00483 SGI_REPORT_MESSAGE_STATS,
00484 SGI_REPORT_MESSAGESIZE_COUNT ,
00485 SGI_REPORT_MESSAGESIZE_STATS
00486 };
00487
00488
00489
00490
00491
00492
00493
00494 #define SGI_NUMA_MIGR_INT_VADDR 1100
00495 #define SGI_NUMA_MIGR_INT_PFN 1101
00496 #define SGI_NUMA_PAGEMIGR_TEST 1102
00497 #define SGI_NUMA_TESTS 1103
00498 #define SGI_NUMA_RESERVED 1104
00499
00500 #define SGI_MEMPROF_START 1105
00501 #define SGI_MEMPROF_GET 1106
00502 #define SGI_MEMPROF_CLEARALL 1107
00503 #define SGI_MEMPROF_STOP 1108
00504
00505 #define SGI_HW_CPU_CONFREG 1200
00506 #define SGI_UPANIC_SET 1201
00507 #define SGI_UPANIC 1202
00508
00509
00510 #define VA_PROC 0
00511 #define VA_INTR 1
00512 #define PA_PROC 2
00513 #define PA_INTR 3
00514
00515
00516
00517
00518
00519
00520 #define PATHCONF 1
00521 #define FPATHCONF 2
00522
00523
00524 #define GET_SYSID SGI_SYSID
00525 #define MAXSYSIDSIZE 64
00526
00527
00528 #define SGI_INV_SIZEOF 1
00529 #define SGI_INV_READ 2
00530
00531
00532 #define ADAP_READ 1
00533 #define ADD_NODE 2
00534 #define DELETE_NODE 3
00535 #define GET_NODE 4
00536
00537
00538 #define IOPROBE_READ 0
00539 #define IOPROBE_WRITE 1
00540
00541
00542 #define SGI_NVSTRSIZE 4096
00543
00544
00545 #define MINRSS_ADDPNAME 1
00546 #define MINRSS_DELPNAME 2
00547 #define MINRSS_LISTPNAME 3
00548 #define MINRSS_ADDVNODE 4
00549 #define MINRSS_DELVNODE 5
00550 #define MINRSS_LISTVNODE 6
00551
00552 #define MINRSS_PNAMESZ 20
00553
00554 typedef long pgno_t;
00555
00556 struct getpname {
00557 char g_name[MINRSS_PNAMESZ];
00558 pgno_t g_minrss;
00559 };
00560
00561 struct getvnode {
00562 dev_t g_fsid;
00563 ino_t g_nodeid;
00564 pgno_t g_minrss;
00565 };
00566
00567 #ifdef _KERNEL
00568 struct irix5_getvnode {
00569 __int32_t g_fsid;
00570 __uint32_t g_nodeid;
00571 __int32_t g_minrss;
00572 };
00573 #endif
00574
00575
00576
00577
00578
00579
00580 #define SGIFAST_PIOMEM_BREAD32 0
00581 #define SGIFAST_PIOMEM_BWRITE32 1
00582 #define SGIFAST_PIOMEM_NULL 2
00583
00584
00585
00586
00587 #define SGICONST_MBUF 1
00588 #define SGICONST_PTE 2
00589 #define SGICONST_PAGESZ 3
00590 #define SGICONST_PARAM 4
00591
00592
00593 enum {
00594
00595
00596
00597
00598 ULI_SLEEP,
00599 ULI_DEBUG,
00600 ULI_SET_DEBUG_SIG,
00601
00602
00603
00604
00605
00606 ULI_RETURN,
00607 ULI_CPUID,
00608 ULI_WAKEUP,
00609 ULI_CONWRITE,
00610
00611 ULI_MAXCALL
00612 };
00613
00614
00615
00616
00617 #define USER_LEVEL 1
00618 #define KERNEL_LEVEL 2
00619
00620 #if defined(_LANGUAGE_C) || defined(_LANGUAGE_C_PLUS_PLUS)
00621 #ifndef _KERNEL
00622 #include <stddef.h>
00623 extern ptrdiff_t syssgi(int, ...);
00624 #endif
00625 #endif
00626
00627 #if _KERNEL
00628 #include <sys/systm.h>
00629
00630 struct syssgia {
00631 sysarg_t cmd;
00632 sysarg_t arg1, arg2, arg3, arg4, arg5, arg6, arg7;
00633 };
00634
00635 extern int syssgi(struct syssgia *, rval_t *);
00636
00637
00638 struct findashinfo {
00639 ash_t ash;
00640 pid_t *useraddr;
00641 int usermax;
00642 int count;
00643 int current;
00644 int errno;
00645 };
00646 #endif
00647
00648 #ifdef __cplusplus
00649 }
00650 #endif
00651 #endif