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