#include <stdio.h>#include <stdlib.h>#include <string.h>#include <fcntl.h>#include <unistd.h>#include <errno.h>#include <signal.h>#include <sys/ioctl.h>#include <ngc/core/ngcb.h>#include <ngc/core/ngcbDrv.h>#include <ngc/core/ngcbShell.h>Classes | |
| struct | shell_stat_t |
| struct | shell_cmd_t |
Macros | |
| #define | _GNU_SOURCE |
| #define | NUM_ELE(x) |
Typedefs | |
| typedef int(* | CMD_HANDLER) (shell_stat_t *, char *, FILE *, char *) |
Functions | |
| int | handleHelp (shell_stat_t *, char *, FILE *, char *) |
| int | handleAbort (shell_stat_t *, char *, FILE *, char *) |
| int | handleOpen (shell_stat_t *, char *, FILE *, char *) |
| int | handleClose (shell_stat_t *, char *, FILE *, char *) |
| int | handleTimeout (shell_stat_t *, char *, FILE *, char *) |
| int | handleReset (shell_stat_t *, char *, FILE *, char *) |
| int | handleResetDev (shell_stat_t *, char *, FILE *, char *) |
| int | handleResetDma (shell_stat_t *, char *, FILE *, char *) |
| int | handleGet (shell_stat_t *, char *, FILE *, char *) |
| int | handleSet (shell_stat_t *, char *, FILE *, char *) |
| int | handleGetPci (shell_stat_t *, char *, FILE *, char *) |
| int | handleSetPci (shell_stat_t *, char *, FILE *, char *) |
| int | handleRead (shell_stat_t *, char *, FILE *, char *) |
| int | handleReadAddr (shell_stat_t *, char *, FILE *, char *) |
| int | handleWrite (shell_stat_t *, char *, FILE *, char *) |
| int | handleWriteAddr (shell_stat_t *, char *, FILE *, char *) |
| int | handleStatus (shell_stat_t *, char *, FILE *, char *) |
| int | handleTest (shell_stat_t *, char *, FILE *, char *) |
| int | handleTestRead (shell_stat_t *, char *, FILE *, char *) |
| int | handleTestWrite (shell_stat_t *, char *, FILE *, char *) |
| int | main (int argc, char *argv[]) |
| #define _GNU_SOURCE |
| #define NUM_ELE | ( | x | ) |
| typedef int(* CMD_HANDLER) (shell_stat_t *, char *, FILE *, char *) |
Interactive mode command handler
| int handleAbort | ( | shell_stat_t * | stat, |
| char * | cmdLine, | ||
| FILE * | rs, | ||
| char * | erms ) |
| int handleClose | ( | shell_stat_t * | stat, |
| char * | cmdLine, | ||
| FILE * | rs, | ||
| char * | erms ) |
| int handleGet | ( | shell_stat_t * | stat, |
| char * | cmdLine, | ||
| FILE * | rs, | ||
| char * | erms ) |
| int handleGetPci | ( | shell_stat_t * | stat, |
| char * | cmdLine, | ||
| FILE * | rs, | ||
| char * | erms ) |
| int handleHelp | ( | shell_stat_t * | stat, |
| char * | cmdLine, | ||
| FILE * | rs, | ||
| char * | erms ) |
| int handleOpen | ( | shell_stat_t * | stat, |
| char * | cmdLine, | ||
| FILE * | rs, | ||
| char * | erms ) |
| int handleRead | ( | shell_stat_t * | stat, |
| char * | cmdLine, | ||
| FILE * | rs, | ||
| char * | erms ) |
| int handleReadAddr | ( | shell_stat_t * | stat, |
| char * | cmdLine, | ||
| FILE * | rs, | ||
| char * | erms ) |
| int handleReset | ( | shell_stat_t * | stat, |
| char * | cmdLine, | ||
| FILE * | rs, | ||
| char * | erms ) |
| int handleResetDev | ( | shell_stat_t * | stat, |
| char * | cmdLine, | ||
| FILE * | rs, | ||
| char * | erms ) |
| int handleResetDma | ( | shell_stat_t * | stat, |
| char * | cmdLine, | ||
| FILE * | rs, | ||
| char * | erms ) |
| int handleSet | ( | shell_stat_t * | stat, |
| char * | cmdLine, | ||
| FILE * | rs, | ||
| char * | erms ) |
| int handleSetPci | ( | shell_stat_t * | stat, |
| char * | cmdLine, | ||
| FILE * | rs, | ||
| char * | erms ) |
| int handleStatus | ( | shell_stat_t * | stat, |
| char * | cmdLine, | ||
| FILE * | rs, | ||
| char * | erms ) |
| int handleTest | ( | shell_stat_t * | stat, |
| char * | cmdLine, | ||
| FILE * | rs, | ||
| char * | erms ) |
| int handleTestRead | ( | shell_stat_t * | stat, |
| char * | cmdLine, | ||
| FILE * | rs, | ||
| char * | erms ) |
| int handleTestWrite | ( | shell_stat_t * | stat, |
| char * | cmdLine, | ||
| FILE * | rs, | ||
| char * | erms ) |
| int handleTimeout | ( | shell_stat_t * | stat, |
| char * | cmdLine, | ||
| FILE * | rs, | ||
| char * | erms ) |
| int handleWrite | ( | shell_stat_t * | stat, |
| char * | cmdLine, | ||
| FILE * | rs, | ||
| char * | erms ) |
| int handleWriteAddr | ( | shell_stat_t * | stat, |
| char * | cmdLine, | ||
| FILE * | rs, | ||
| char * | erms ) |
| int main | ( | int | argc, |
| char * | argv[] ) |