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

📄 data.c

📁 操作系统SunOS 4.1.3版本的源码
💻 C
📖 第 1 页 / 共 4 页
字号:
  2,				/* selection type */  1,				/* popup */  2,				/* test_no */  2,				/* which_test */  DISABLE,			/* dev_enable */  ENABLE,			/* enable */  0,				/* pass */  0,				/* error */  "10",				/* priority */  0,				/* pid */  "MCP Printer #",		/* label */  "mcpp\0\0",			/* devname */  "printer",			/* testname */  NULL,				/* tail */  NULL,				/* environ */  NULL,				/* env */  NULL,				/* special */  NULL,				/* conf */  NULL,				/* select */  NULL,				/* option */  NULL,				/* msg */  NULL,				/* data *//***** SCP2(SunLink) test *****/  DEVGROUP,			/* group */  SCP2,				/* id */  0,				/* unit */  2,				/* selection type */  1,				/* popup */  1,				/* test_no */  1,				/* which_test */  ENABLE,			/* dev_enable */  DISABLE,			/* enable */  0,				/* pass */  0,				/* error */  "10",				/* priority */  0,				/* pid */  "SunLink(MCP) #",		/* label */  "mcph\0\0",			/* devname */  "sunlink",			/* testname */  NULL,				/* tail */  NULL,				/* environ */  NULL,				/* env */  NULL,				/* special */  NULL,				/* conf */  NULL,				/* select */  NULL,				/* option */  NULL,				/* msg */  NULL,				/* data *//***** DCP(SunLink)test *****/  DEVGROUP,			/* group */  SCP,				/* id */  0,				/* unit */  2,				/* selection type */  1,				/* popup */  1,				/* test_no */  1,				/* which_test */  ENABLE,			/* dev_enable */  DISABLE,			/* enable */  0,				/* pass */  0,				/* error */  "10",				/* priority */  0,				/* pid */  "SunLink(DCP) #",		/* label */  "dcp\0\0",			/* devname */  "sunlink",			/* testname */  NULL,				/* tail */  NULL,				/* environ */  NULL,				/* env */  NULL,				/* special */  NULL,				/* conf */  NULL,				/* select */  NULL,				/* option */  NULL,				/* msg */  NULL,				/* data *//***** HSI(SunLink)test *****/  DEVGROUP,			/* group */  HSI,				/* id */  0,				/* unit */  2,				/* selection type */  1,				/* popup */  1,				/* test_no */  1,				/* which_test */  ENABLE,			/* dev_enable */  DISABLE,			/* enable */  0,				/* pass */  0,				/* error */  "10",				/* priority */  0,				/* pid */  "SunLink(HSI) #",		/* label */  "hs\0\0",			/* devname */  "sunlink",			/* testname */  NULL,				/* tail */  NULL,				/* environ */  NULL,				/* env */  NULL,				/* special */  NULL,				/* conf */  NULL,				/* select */  NULL,				/* option */  NULL,				/* msg */  (caddr_t)3,			/* data(defaults to 0-1, 2-3 loopback) *//***** SCSI sp test #1 *****/  DEVGROUP,			/* group */  SCSISP1,			/* id */  -1,				/* unit, single(with non-zero device number) */  2,				/* selection type */  1,				/* popup */  1,				/* test_no */  1,				/* which_test */  ENABLE,			/* dev_enable */  DISABLE,			/* enable */  0,				/* pass */  0,				/* error */  "10",				/* priority */  0,				/* pid */  "SCSI ttys",			/* label */  "zs\0\0",			/* devname */  "sptest",			/* testname */  NULL,				/* tail */  NULL,				/* environ */  NULL,				/* env */  NULL,				/* special */  NULL,				/* conf */  NULL,				/* select */  NULL,				/* option */  NULL,				/* msg */  NULL,				/* data *//***** SCSI sp test #2 *****/  DEVGROUP,			/* group */  SCSISP2,			/* id */  -1,				/* unit, single(with non-zero device number) */  2,				/* selection type */  1,				/* popup */  1,				/* test_no */  1,				/* which_test */  ENABLE,			/* dev_enable */  DISABLE,			/* enable */  0,				/* pass */  0,				/* error */  "10",				/* priority */  0,				/* pid */  "SCSI ttyt",			/* label */  "zs\0\0",			/* devname */  "sptest",			/* testname */  NULL,				/* tail */  NULL,				/* environ */  NULL,				/* env */  NULL,				/* special */  NULL,				/* conf */  NULL,				/* select */  NULL,				/* option */  NULL,				/* msg */  NULL,				/* data *//***** TAAC test *****/  DEVGROUP,			/* group */  TAAC,				/* id */  0,				/* unit */  1,				/* selection type */  0,				/* popup */  1,				/* test_no */  1,				/* which_test */  ENABLE,			/* dev_enable */  DISABLE,			/* enable */  0,				/* pass */  0,				/* error */  "10",				/* priority */  0,				/* pid */  "TAAC",			/* label */  "taac\0\0",			/* devname */  "taactest",			/* testname */  NULL,				/* tail */  NULL,				/* environ */  NULL, 			/* env */  NULL,				/* special */  NULL,				/* conf */  NULL,				/* select */  NULL,				/* option */  NULL,				/* msg */  NULL,				/* data *//***** prestoserve test *****/  DEVGROUP,                     /* group */  PRESTO,                       /* 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 */  "NFS Accelerator",            /* label */  "pr\0\0",                     /* devname */  "pstest",                     /* testname */  NULL,                         /* tail */  NULL,                         /* environ */  NULL,                         /* env */  NULL,                         /* special */  NULL,                         /* conf */  NULL,                         /* select */  NULL,                         /* option */  NULL,                         /* msg */  NULL,                         /* data *//***** snapshot test *****/  DEVGROUP,                     /* group */  VFC,                          /* id */  0,                            /* unit */  0,                            /* selection type */  0,                            /* popup */  1,                            /* test_no */  1,                            /* which_test */  ENABLE,                       /* dev_enable */  ENABLE,                       /* enable */  0,                            /* pass */  0,                            /* error */  "10",                         /* priority */  0,                            /* pid */  "Vid Frame Capture",        	/* label */  "vfc\0\0",                    /* devname */  "vfctest",                    /* testname */  NULL,                         /* tail */  NULL,                         /* environ */  NULL,                         /* env */  NULL,                         /* special */  NULL,                         /* conf */  NULL,                         /* select */  NULL,                         /* option */  NULL,                         /* msg */  NULL,                         /* data *//***** Zebra (SBus Printer) bpp test - Bidirectional Parallel port *****/  DEVGROUP,                     /* group */  ZEBRA1,                       /* id */  0,                            /* unit */  2,                            /* selection type */  1,                            /* popup */  1,                            /* test_no */  1,                            /* which_test */  ENABLE,                       /* dev_enable */  DISABLE,                       /* enable */  0,                            /* pass */  0,                            /* error */  "10",                         /* priority */  0,                            /* pid */  "Parallel Port",            /* label */  "bpp\0\0",                    /* devname */  "bpptest",                    /* testname */  NULL,                         /* tail */  NULL,                         /* environ */  NULL,                         /* env */  NULL,                         /* special */  NULL,                         /* conf */  NULL,                         /* select */  NULL,                         /* option */  NULL,                         /* msg */  (char *) (0<<2),              /* data - fast mode */ /***** Zebra (SBus Printer) lpvi test - Serial Video port *****/  DEVGROUP,                     /* group */  ZEBRA2,                       /* id */  0,                            /* unit */  2,                            /* selection type */  1,                            /* popup */  1,                            /* test_no */  1,                            /* which_test */  ENABLE,                       /* dev_enable */  DISABLE,                       /* enable */  0,                            /* pass */  0,                            /* error */  "10",                         /* priority */  0,                            /* pid */  "Video Port",  	     	/* label */  "lpvi\0\0",                   /* devname */  "lpvitest",                     /* testname */  NULL,                         /* tail */  NULL,                         /* environ */  NULL,                         /* env */  NULL,                         /* special */  NULL,                         /* conf */  NULL,                         /* select */  NULL,                         /* option */  NULL,                         /* msg */  (char *) (0<<2),              /* data - fast mode *//***** magnetic tape test(mt) *****/  TAPEGROUP,			/* group */  MAGTAPE1,			/* id */  0,				/* unit */  2,				/* selection type */  1,				/* popup */  1,				/* test_no */  1,				/* which_test */  ENABLE,			/* dev_enable */  DISABLE,			/* enable */  0,				/* pass */  0,				/* error */  "10",				/* priority */  0,				/* pid */  "Mag Tape #",			/* label */  "mt\0\0",			/* devname */  "tapetest",			/* testname */  NULL,				/* tail */  NULL,				/* environ */  NULL,				/* env */  (char *)25300,		/* special, 200 big blocks + 100 small blocks */  NULL,				/* conf */  NULL,				/* select */  NULL,				/* option */  NULL,				/* msg */  (char *)0x190040,		/* data *//***** magnetic tape test(xt) *****/  TAPEGROUP,			/* group */  MAGTAPE2,			/* id */  0,				/* unit */  2,				/* selection type */  1,				/* popup */  1,				/* test_no */  1,				/* which_test */  ENABLE,			/* dev_enable */  DISABLE,			/* enable */  0,				/* pass */  0,				/* error */  "10",				/* priority */  0,				/* pid */  "Mag Tape #",			/* label */  "xt\0\0",			/* devname */  "tapetest",			/* testname */  NULL,				/* tail */  NULL,				/* environ */  NULL,				/* env */  (char *)25300,		/* special, 200 big blocks + 100 small blocks */  NULL,				/* conf */  NULL,				/* select */  NULL,				/* option */  NULL,				/* msg */  (char *)0x190040,		/* data *//***** SCSI tape test *****/  TAPEGROUP,			/* group */  SCSITAPE,			/* id */  0,				/* unit */  2,				/* selection type */  1,				/* popup */  1,				/* test_no */  1,				/* which_test */  ENABLE,			/* dev_enable */  DISABLE,			/* enable */  0,				/* pass */  0,				/* error */  "10",				/* priority */  0,				/* pid */  "SCSI Tape #",		/* label */  "st\0\0",			/* devname */  "tapetest",			/* testname */  NULL,				/* tail */  NULL,				/* environ */  NULL,				/* env */  (char *)25300,		/* special, 200 big blocks + 100 small blocks */  NULL,				/* conf */  NULL,				/* select */  NULL,				/* option */  NULL,				/* msg */  (char *)0xa0042,		/* data *//***** ipc test *****/  IPCGROUP,			/* group */  IPC,				/* id */  0,				/* unit */  1,				/* selection type */  1,				/* popup */  1,				/* test_no */  1,				/* which_test */  ENABLE,			/* dev_enable */  DISABLE,			/* enable */  0,				/* pass */  0,				/* error */  "10",				/* priority */  0,				/* pid */  "Sun-IPC #",			/* label */  "pc\0\0",			/* devname */  "ipctest",			/* testname */  NULL,				/* tail */  NULL,				/* environ */  NULL,				/* env */  NULL,				/* special */  NULL,				/* conf */  NULL,				/* select */  NULL,				/* option */  NULL,				/* msg */  NULL,				/* data *//***** user-defined tests *****/  USRGROUP,			/* group */  USER,				/* id */  -1,				/* unit, single */  1,				/* selection type */  0,				/* popup */  1,				/* test_no */  1,				/* which_test */  ENABLE,			/* dev_enable */  DISABLE,			/* enable */  0,				/* pass */  0,				/* error */  "10",				/* priority */  0,				/* pid */  NULL,				/* label */  "user",			/* devname */  NULL,				/* testname */  NULL,				/* tail */  NULL,				/* environ */  NULL,				/* env */  NULL,				/* special */  NULL,				/* conf */  NULL,				/* select */  NULL,				/* option */  NULL,				/* msg */  NULL,				/* data */};#define	NTESTS	sizeof(tests_base)/sizeof(struct test_info)/****************************************************************************** * Internal data structure of all possible test groups.			      * ******************************************************************************/struct	group_info groups[]={/***** memory tests group(group id: 0) *****/  "MEMORY DEVICES",		/* c_label */  "MEMORY DEVICE TESTS:",	/* s_label */  2,				/* max */  0,				/* no_tests */  DISABLE,			/* enable */  -1,				/* first */  -1,				/* last */  NULL,				/* select */  NULL,				/* msg *//***** disk tests group(goup id: 1) *****/  "DISK DEVICES",		/* c_label */  "DISK DEVICE TESTS:",		/* s_label */  2,				/* max */  0,				/* no_tests */  DISABLE,			/* enable */  -1,				/* first */  -1,				/* last */  NULL,				/* select */  NULL,				/* msg *//***** CPU devices group(group id: 2) *****/  "CPU DEVICES",		/* c_label */  "CPU DEVICE TESTS:", 		/* s_label */  2,				/* max */  0,				/* no_tests */  DISABLE,			/* enable */  -1,				/* first */  -1,				/* last */  NULL,				/* select */  NULL,				/* msg *//***** other device tests group(group id: 3) *****/  "OTHER DEVICES",		/* c_label */  "OTHER DEVICE TESTS:", 	/* s_label */  2,				/* max */  0,				/* no_tests */  DISABLE,			/* enable */  -1,				/* first */  -1,				/* last */  NULL,				/* select */  NULL,				/* msg *//***** tape drive tests group(group id: 4) *****/  "TAPE DEVICES",		/* c_label */  "TAPE DEVICE TESTS:", 	/* s_label */  2,				/* max */  0,				/* no_tests */  DISABLE,			/* enable */  -1,				/* first */  -1,				/* last */  NULL,				/* select */  NULL,				/* msg *//***** IPC board tests group(group id: 5) *****/  "IPC BOARDS",			/* c_label */  "IPC BOARD TESTS:", 		/* s_label */  2,				/* max */  0,				/* no_tests */  DISABLE,			/* enable */  -1,				/* first */  -1,				/* last */  NULL,				/* select */  NULL,				/* msg *//***** user-defined tests group(group id: 6) *****/  "USER TESTS",			/* c_label */  "USER TESTS:", 		/* s_label */  2,				/* max */  0,				/* no_tests */  DISABLE,			/* enable */  -1,				/* first */  -1,				/* last */  NULL,				/* select */  NULL,				/* msg */};#define	NGROUPS	sizeof(groups)/sizeof(struct group_info)int	ngroups=NGROUPS;	/* total # of defined groups */

⌨️ 快捷键说明

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