rsp_regr_dma.c
3.95 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
#include <sys/types.h>
#ifdef __sgi__
#include <sys/sbd.h>
#endif
#include <sys/stat.h>
#include <sys/mman.h>
#ifdef __sgi__
#include <sys/sema.h>
#endif
#include <netinet/in.h>
#include <errno.h>
#include <stdio.h>
#include <fcntl.h>
#include <stdlib.h>
#include <getopt.h>
#include <rcp.h>
#include <rsp.h>
/* From $ROOT/usr/include/ide, which is installed from PR/diags/include */
#include "diag.h"
#include "dbg_comm.h"
#define RSP_TEST_BASE 001
static int NumFailures = 0;
/* From rsp_regr_common.c: */
extern int generic_rsp_regression (const char *file_name);
extern int generic_rsp_dma_regression (const char *file_name);
extern void imem_init(FILE *file_p);
extern int rsp_regrInit();
extern int rsp_regrDo(TEST_REF *test_ref);
extern int rsp_regr(TEST_REF TestRefs[]);
int dma00();
int dma01();
int dma02();
int dma10();
int dma11();
int dma12();
int dma13();
int dma14();
int dma20();
int dma21();
int dma22();
int dma30();
int dma31();
int dma32();
int dma33();
int dma34();
int dma35();
int dma36();
int dma40();
int dma50();
/*
int dma60();
int dma70();
*/
/*
* An array of tests, each of which corresponds to a separate menu
* item callable from the master ide menu.
*/
static TEST_REF TestRefs[] = {
{"dma00", RSP_TEST_BASE+0, dma00},
{"dma01", RSP_TEST_BASE+1, dma01},
{"dma02", RSP_TEST_BASE+2, dma02},
{"dma10", RSP_TEST_BASE+3, dma10},
{"dma11", RSP_TEST_BASE+4, dma11},
{"dma12", RSP_TEST_BASE+5, dma12},
{"dma13", RSP_TEST_BASE+6, dma13},
{"dma14", RSP_TEST_BASE+7, dma14},
{"dma20", RSP_TEST_BASE+8, dma20},
{"dma21", RSP_TEST_BASE+9, dma21},
{"dma22", RSP_TEST_BASE+10, dma22},
{"dma30", RSP_TEST_BASE+11, dma30},
{"dma31", RSP_TEST_BASE+12, dma31},
{"dma32", RSP_TEST_BASE+13, dma32},
{"dma33", RSP_TEST_BASE+14, dma33},
{"dma34", RSP_TEST_BASE+15, dma34},
{"dma35", RSP_TEST_BASE+16, dma35},
{"dma36", RSP_TEST_BASE+17, dma36},
{"dma40", RSP_TEST_BASE+18, dma40},
{"dma50", RSP_TEST_BASE+19, dma50},
/*
{"dma60", RSP_TEST_BASE+20, dma60},
{"dma70", RSP_TEST_BASE+21, dma70},
*/
{"",0,0}
};
static int failed_tests[512];
/*
* diagnostic entry point:
*
* Each separately invokable ide diagnostic command corresponds to an
* independent ".c" module; the entry point herein must match
* the test name as specified in the rspcmd.awk script. These command
* names correspond to the names you see from the ide menu. For this
* module, there will be an ide command "rsp_regr".
*/
int rsp_regr_dma(void) {rsp_regr(TestRefs);}
/*
* Tests
*/
int dma00() {return generic_rsp_dma_regression("dmatests/dma00");}
int dma01() {return generic_rsp_dma_regression("dmatests/dma01");}
int dma02() {return generic_rsp_dma_regression("dmatests/dma02");}
int dma10() {return generic_rsp_dma_regression("dmatests/dma10");}
int dma11() {return generic_rsp_dma_regression("dmatests/dma11");}
int dma12() {return generic_rsp_dma_regression("dmatests/dma12");}
int dma13() {return generic_rsp_dma_regression("dmatests/dma13");}
int dma14() {return generic_rsp_dma_regression("dmatests/dma14");}
int dma20() {return generic_rsp_dma_regression("dmatests/dma20");}
int dma21() {return generic_rsp_dma_regression("dmatests/dma21");}
int dma22() {return generic_rsp_dma_regression("dmatests/dma22");}
int dma30() {return generic_rsp_dma_regression("dmatests/dma30");}
int dma31() {return generic_rsp_dma_regression("dmatests/dma31");}
int dma32() {return generic_rsp_dma_regression("dmatests/dma32");}
int dma33() {return generic_rsp_dma_regression("dmatests/dma33");}
int dma34() {return generic_rsp_dma_regression("dmatests/dma34");}
int dma35() {return generic_rsp_dma_regression("dmatests/dma35");}
int dma36() {return generic_rsp_dma_regression("dmatests/dma36");}
int dma40() {return generic_rsp_dma_regression("dmatests/dma40");}
int dma50() {return generic_rsp_dma_regression("dmatests/dma50");}
/*
int dma60() {return generic_rsp_dma_regression("dmatests/dma60");}
int dma70() {return generic_rsp_dma_regression("dmatests/dma70");}
*/