commonstubs.c 907 Bytes
#include "stdio.h"
#include "stdlib.h"
#include "sys/types.h"
#include "sys/fcntl.h"

extern void commoncmdinit();
extern void commoncmdhelp();

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 "commoncmd.awk".
     */
    commoncmdinit();
}

SYMHELP()
{
    /*
     * Print out a list of the available diagnostic commands.
     * This function is in the file generated by awk from the commands 
     * source file "commoncmd.awk".
     */
    commoncmdhelp();
}