vistubs.c
883 Bytes
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
#include "stdio.h"
#include "stdlib.h"
#include "sys/types.h"
#include "sys/fcntl.h"
extern void vicmdinit();
extern void vicmdhelp();
DIAGINIT()
{
/*
* Put any diag-specific initialization requirements here; since
* this test direct maps the gio hw, no initialization is necessary.
*/
}
DIAGHALT()
{
/*
* Free up any resources allocated by DIAGINIT(). None in use here...
*/
}
SYMINIT()
{
/*
* Prepare some globals so that we can print out a list of commands when
* the user asks for "help". This function is in the file generated by
* awk from the commands source file "vicmd.awk".
*/
vicmdinit();
}
SYMHELP()
{
/*
* Print out a list of the available diagnostic commands.
* This function is in the file generated by awk from the commands
* source file "vicmd.awk".
*/
vicmdhelp();
}