⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 data.c

📁 操作系统SunOS 4.1.3版本的源码
💻 C
📖 第 1 页 / 共 4 页
字号:
#ifndef lintstatic	char sccsid[] = "%Z%%M% %I% %E% Copyright Sun Micro";#endif/* * Copyright (c) 1987 by Sun Microsystems, Inc. */#include "sundiag.h"#include "struct.h"/****************************************************************************** * Internal data structure of all possible tests.		      	      * * Note: should be initialized in the sequence of test i.d.(defined in	      * * struct.h). If you don't keep these two sequences the same, test control    * * panel will possibly be corrupted as data structure in a mess.	      * *****************************************************************************/struct	test_info tests_base[]={/***** physical memory test *****/  MEMGROUP,			/* group */  PMEM,				/* id */  -1,				/* unit, single */  0,				/* selection type */  1,				/* popup */  1,				/* test_no */  1,				/* which_test */  ENABLE,			/* dev_enable */  ENABLE,			/* enable */  0,				/* pass */  0,				/* error */  "10",				/* priority */  0,				/* pid */  "Physical",			/* label */  "mem",			/* devname */  "pmem",			/* testname */  NULL,				/* tail */  NULL,				/* environ */  NULL,				/* env */  NULL,				/* special */  NULL,				/* conf */  NULL,				/* select */  NULL,				/* option */  NULL,				/* msg */  NULL,				/* data *//***** virtual memory test *****/  MEMGROUP,			/* group */  VMEM,				/* id */  -1,				/* unit, single */  0,				/* selection type */  1,				/* popup */  1,				/* test_no */  1,				/* which_test */  ENABLE,			/* dev_enable */  ENABLE,			/* enable */  0,				/* pass */  0,				/* error */  "10",				/* priority */  0,				/* pid */  "Virtual",			/* label */  "kmem",			/* devname */  "vmem",			/* testname */  NULL,				/* tail */  NULL,				/* environ */  NULL,				/* env */  NULL,				/* special */  NULL,				/* conf */  NULL,				/* select */  NULL,				/* option */  NULL,				/* msg */  NULL,				/* data *//***** SCSI disk tests(read only) *****/  DISKGROUP,			/* group */  SCSIDISK1,			/* id */  0,				/* unit */  0,				/* selection type */  1,				/* popup */  2,				/* test_no */  1,				/* which_test */  ENABLE,			/* dev_enable */  ENABLE,			/* enable */  0,				/* pass */  0,				/* error */  "10",				/* priority */  0,				/* pid */  "SCSI Disk #",		/* label */  "sd\0\0",			/* devname */  "rawtest",			/* testname */  NULL,				/* tail */  NULL,				/* environ */  NULL,				/* env */  NULL,				/* special */  NULL,				/* conf */  NULL,				/* select */  NULL,				/* option */  NULL,				/* msg */  (caddr_t)0x2,			/* data(defaults to Test Mode = Readonly, Partition = 'c' *//***** SCSI disk tests(read/write) *****/  DISKGROUP,			/* group */  SCSIDISK2,			/* id */  0,				/* unit */  0,				/* selection type */  1,				/* popup */  2,				/* test_no */  2,				/* which_test */  ENABLE,			/* dev_enable */  ENABLE,			/* enable */  0,				/* pass */  0,				/* error */  "10",				/* priority */  0,				/* pid */  "SCSI Disk #",		/* label */  "sd\0\0",			/* devname */  "fstest",			/* testname */  NULL,				/* tail */  NULL,				/* environ */  NULL,				/* env */  NULL,				/* special */  NULL,				/* conf */  NULL,				/* select */  NULL,				/* option */  NULL,				/* msg */  NULL,				/* data *//****** XY disk tests(read only) *****/  DISKGROUP,			/* group */  XYDISK1,			/* id */  0,				/* unit */  0,				/* selection type */  1,				/* popup */  2,				/* test_no */  1,				/* which_test */  ENABLE,			/* dev_enable */  ENABLE,			/* enable */  0,				/* pass */  0,				/* error */  "10",				/* priority */  0,				/* pid */  "XY Disk #",			/* label */  "xy\0\0",			/* devname */  "rawtest",			/* testname */  NULL,				/* tail */  NULL,				/* environ */  NULL,				/* env */  NULL,				/* special */  NULL,				/* conf */  NULL,				/* select */  NULL,				/* option */  NULL,				/* msg */  (caddr_t)0x2,			/* data(defaults to Test Mode = Readonly, Partition = 'c' *//***** XY disk tests(read/write) *****/  DISKGROUP,			/* group */  XYDISK2,			/* id */  0,				/* unit */  0,				/* selection type */  1,				/* popup */  2,				/* test_no */  2,				/* which_test */  ENABLE,			/* dev_enable */  ENABLE,			/* enable */  0,				/* pass */  0,				/* error */  "10",				/* priority */  0,				/* pid */  "XY Disk #",			/* label */  "xy\0\0",			/* devname */  "fstest",			/* testname */  NULL,				/* tail */  NULL,				/* environ */  NULL,				/* env */  NULL,				/* special */  NULL,				/* conf */  NULL,				/* select */  NULL,				/* option */  NULL,				/* msg */  NULL,				/* data *//****** XD disk tests(read only) *****/  DISKGROUP,			/* group */  XDDISK1,			/* id */  0,				/* unit */  0,				/* selection type */  1,				/* popup */  2,				/* test_no */  1,				/* which_test */  ENABLE,			/* dev_enable */  ENABLE,			/* enable */  0,				/* pass */  0,				/* error */  "10",				/* priority */  0,				/* pid */  "XD Disk #",			/* label */  "xd\0\0",			/* devname */  "rawtest",			/* testname */  NULL,				/* tail */  NULL,				/* environ */  NULL,				/* env */  NULL,				/* special */  NULL,				/* conf */  NULL,				/* select */  NULL,				/* option */  NULL,				/* msg */  (caddr_t)2,			/* data(defaults to Test Mode = Readonly, Partition = 'c' *//***** XD disk tests(read/write) *****/  DISKGROUP,			/* group */  XDDISK2,			/* id */  0,				/* unit */  0,				/* selection type */  1,				/* popup */  2,				/* test_no */  2,				/* which_test */  ENABLE,			/* dev_enable */  ENABLE,			/* enable */  0,				/* pass */  0,				/* error */  "10",				/* priority */  0,				/* pid */  "XD Disk #",			/* label */  "xd\0\0",			/* devname */  "fstest",			/* testname */  NULL,				/* tail */  NULL,				/* environ */  NULL,				/* env */  NULL,				/* special */  NULL,				/* conf */  NULL,				/* select */  NULL,				/* option */  NULL,				/* msg */  NULL,				/* data *//****** IPI disk tests(read only) *****/  DISKGROUP,			/* group */  IPIDISK1,			/* id */  0,				/* unit */  0,				/* selection type */  1,				/* popup */  2,				/* test_no */  1,				/* which_test */  ENABLE,			/* dev_enable */  ENABLE,			/* enable */  0,				/* pass */  0,				/* error */  "10",				/* priority */  0,				/* pid */  "IPI Disk #",			/* label */  "ip\0\0",			/* devname */  "rawtest",			/* testname */  NULL,				/* tail */  NULL,				/* environ */  NULL,				/* env */  NULL,				/* special */  NULL,				/* conf */  NULL,				/* select */  NULL,				/* option */  NULL,				/* msg */  (caddr_t)0x2,			/* data(defaults to Test Mode = Readonly, Partition = 'c' *//***** IPI disk tests(read/write) *****/  DISKGROUP,			/* group */  IPIDISK2,			/* id */  0,				/* unit */  0,				/* selection type */  1,				/* popup */  2,				/* test_no */  2,				/* which_test */  ENABLE,			/* dev_enable */  ENABLE,			/* enable */  0,				/* pass */  0,				/* error */  "10",				/* priority */  0,				/* pid */  "IPI Disk #",			/* label */  "ip\0\0",			/* devname */  "fstest",			/* testname */  NULL,				/* tail */  NULL,				/* environ */  NULL,				/* env */  NULL,				/* special */  NULL,				/* conf */  NULL,				/* select */  NULL,				/* option */  NULL,				/* msg */  NULL,				/* data *//****** ID disk tests(read only) *****/  DISKGROUP,			/* group */  IDDISK1,			/* id */  0,				/* unit */  0,				/* selection type */  1,				/* popup */  2,				/* test_no */  1,				/* which_test */  ENABLE,			/* dev_enable */  ENABLE,			/* enable */  0,				/* pass */  0,				/* error */  "10",				/* priority */  0,				/* pid */  "ID Disk #",			/* label */  "id\0\0\0\0\0",		/* devname */  "rawtest",			/* testname */  NULL,				/* tail */  NULL,				/* environ */  NULL,				/* env */  NULL,				/* special */  NULL,				/* conf */  NULL,				/* select */  NULL,				/* option */  NULL,				/* msg */  (caddr_t)0x2,			/* data(defaults to Test Mode = Readonly, Partition = 'c' *//***** ID disk tests(read/write) *****/  DISKGROUP,			/* group */  IDDISK2,			/* id */  0,				/* unit */  0,				/* selection type */  1,				/* popup */  2,				/* test_no */  2,				/* which_test */  ENABLE,			/* dev_enable */  ENABLE,			/* enable */  0,				/* pass */  0,				/* error */  "10",				/* priority */  0,				/* pid */  "ID Disk #",			/* label */  "id\0\0\0\0\0",		/* devname */  "fstest",			/* testname */  NULL,				/* tail */  NULL,				/* environ */  NULL,				/* env */  NULL,				/* special */  NULL,				/* conf */  NULL,				/* select */  NULL,				/* option */  NULL,				/* msg */  NULL,				/* data *//****** SCSI floppy disk tests( raw write/read) *****/  DISKGROUP,			/* group */  SFDISK1,			/* id */  0,				/* unit */  0,				/* selection type */  1,				/* popup */  2,				/* test_no */  1,				/* which_test */  ENABLE,			/* dev_enable */  ENABLE,			/* enable */  0,				/* pass */  0,				/* error */  "10",				/* priority */  0,				/* pid */  "SCSI Floppy Disk #",		/* label */  "sf\0\0",			/* devname */  "rawtest",			/* testname */  NULL,				/* tail */  NULL,				/* environ */  NULL,				/* env */  NULL,				/* special */  NULL,				/* conf */  NULL,				/* select */  NULL,				/* option */  NULL,				/* msg */  (caddr_t)0x2,			/* data(defaults to Test Mode = Readonly, Partition = 'c' *//***** SCSI floppy disk tests( file system read/write) *****/  DISKGROUP,			/* group */  SFDISK2,			/* id */  0,				/* unit */  1,				/* selection type */  1,				/* popup */  2,				/* test_no */  2,				/* which_test */  ENABLE,			/* dev_enable */  DISABLE,			/* enable */  0,				/* pass */  0,				/* error */  "10",				/* priority */  0,				/* pid */  "SCSI Floppy Disk #",		/* label */  "sf\0\0",			/* devname */  "fstest",			/* testname */  NULL,				/* tail */  NULL,				/* environ */  NULL,				/* env */  NULL,				/* special */  NULL,				/* conf */  NULL,				/* select */  NULL,				/* option */  NULL,				/* msg */  NULL,				/* data *//****** on-board floppy disk tests(raw write/read) *****/  DISKGROUP,			/* group */  OBFDISK1,			/* id */  0,				/* unit */  0,				/* selection type */  1,				/* popup */  2,				/* test_no */  1,				/* which_test */  ENABLE,			/* dev_enable */  ENABLE,			/* enable */  0,				/* pass */  0,				/* error */  "10",				/* priority */  0,				/* pid */  "OB Floppy Disk #",		/* label */  "fd\0\0",			/* devname */  "rawtest",			/* testname */  NULL,				/* tail */  NULL,				/* environ */  NULL,				/* env */  NULL,				/* special */  NULL,				/* conf */  NULL,				/* select */  NULL,				/* option */  NULL,				/* msg */  (caddr_t)0x2,			/* data(defaults to Test Mode = Readonly, Partition = 'c' *//***** on-board floppy disk tests(file system read/write) *****/  DISKGROUP,			/* group */  OBFDISK2,			/* id */  0,				/* unit */  1,				/* selection type */  1,				/* popup */  2,				/* test_no */  2,				/* which_test */  ENABLE,			/* dev_enable */  DISABLE,			/* enable */  0,				/* pass */  0,				/* error */  "10",				/* priority */  0,				/* pid */  "OB Floppy Disk #",		/* label */  "fd\0\0",			/* devname */  "fstest",			/* testname */  NULL,				/* tail */  NULL,				/* environ */  NULL,				/* env */  NULL,				/* special */  NULL,				/* conf */  NULL,				/* select */  NULL,				/* option */  NULL,				/* msg */  NULL,				/* data *//***** CD_ROM test *****/  DISKGROUP,			/* group */  CDROM,			/* id */  0,				/* unit */  0,				/* selection type */  1,				/* popup */  1,				/* test_no */  1,				/* which_test */  ENABLE,			/* dev_enable */  ENABLE,			/* enable */  0,				/* pass */  0,				/* error */  "10",				/* priority */  0,				/* pid */  "SCSI CD-ROM #",		/* label */  "sr\0\0",			/* devname */  "cdtest",			/* testname */  NULL,				/* tail */  NULL,				/* environ */  NULL,				/* env */  (char *)255,			/* special(volume defaults to 255) */  NULL,				/* conf */  NULL,				/* select */  NULL,				/* option */  NULL,				/* msg */  (char *)(4+(100<<8)),		/* data(type default to "other") *//***** MC68881 test *****/  CPUGROUP,			/* group */  MC68881,			/* id */  -1,				/* unit, single */  0,				/* selection type */  0,				/* popup */  1,				/* test_no */  1,				/* which_test */  ENABLE,			/* dev_enable */  ENABLE,			/* enable */  0,				/* pass */  0,				/* error */  "10",				/* priority */  0,				/* pid */  "Floating Point",		/* label */  "68881",			/* devname */  "mc68881",			/* testname */  NULL,				/* tail */  NULL,				/* environ */  NULL,				/* env */  NULL,				/* special */  NULL,				/* conf */  NULL,				/* select */  NULL,				/* option */  NULL,				/* msg */  NULL,				/* data *//***** MC68882 test *****/  CPUGROUP,			/* group */  MC68882,			/* id */  -1,				/* unit, single */  0,				/* selection type */  0,				/* popup */  1,				/* test_no */  1,				/* which_test */  ENABLE,			/* dev_enable */  ENABLE,			/* enable */  0,				/* pass */  0,				/* error */  "10",				/* priority */  0,				/* pid */  "Floating Point",		/* label */  "68882",			/* devname */  "mc68881",			/* testname */  NULL,				/* tail */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -