ndevstubs.c 887 Bytes
#include "stdio.h"
#include "stdlib.h"
#include "sys/types.h"
#include "sys/fcntl.h"

extern void ndevcmdinit();
extern void ndevcmdhelp();

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 "ndevcmd".
     */
    ndevcmdinit();
}

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