ngc 1.5.0
 
Loading...
Searching...
No Matches
main.c File Reference
#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[])
 

Detailed Description

Macro Definition Documentation

◆ _GNU_SOURCE

#define _GNU_SOURCE

◆ NUM_ELE

#define NUM_ELE ( x)
Value:
((sizeof x) / (sizeof x[0]))

Typedef Documentation

◆ CMD_HANDLER

typedef int(* CMD_HANDLER) (shell_stat_t *, char *, FILE *, char *)

Interactive mode command handler

Function Documentation

◆ handleAbort()

int handleAbort ( shell_stat_t * stat,
char * cmdLine,
FILE * rs,
char * erms )

◆ handleClose()

int handleClose ( shell_stat_t * stat,
char * cmdLine,
FILE * rs,
char * erms )

◆ handleGet()

int handleGet ( shell_stat_t * stat,
char * cmdLine,
FILE * rs,
char * erms )

◆ handleGetPci()

int handleGetPci ( shell_stat_t * stat,
char * cmdLine,
FILE * rs,
char * erms )

◆ handleHelp()

int handleHelp ( shell_stat_t * stat,
char * cmdLine,
FILE * rs,
char * erms )

◆ handleOpen()

int handleOpen ( shell_stat_t * stat,
char * cmdLine,
FILE * rs,
char * erms )

◆ handleRead()

int handleRead ( shell_stat_t * stat,
char * cmdLine,
FILE * rs,
char * erms )

◆ handleReadAddr()

int handleReadAddr ( shell_stat_t * stat,
char * cmdLine,
FILE * rs,
char * erms )

◆ handleReset()

int handleReset ( shell_stat_t * stat,
char * cmdLine,
FILE * rs,
char * erms )

◆ handleResetDev()

int handleResetDev ( shell_stat_t * stat,
char * cmdLine,
FILE * rs,
char * erms )

◆ handleResetDma()

int handleResetDma ( shell_stat_t * stat,
char * cmdLine,
FILE * rs,
char * erms )

◆ handleSet()

int handleSet ( shell_stat_t * stat,
char * cmdLine,
FILE * rs,
char * erms )

◆ handleSetPci()

int handleSetPci ( shell_stat_t * stat,
char * cmdLine,
FILE * rs,
char * erms )

◆ handleStatus()

int handleStatus ( shell_stat_t * stat,
char * cmdLine,
FILE * rs,
char * erms )

◆ handleTest()

int handleTest ( shell_stat_t * stat,
char * cmdLine,
FILE * rs,
char * erms )

◆ handleTestRead()

int handleTestRead ( shell_stat_t * stat,
char * cmdLine,
FILE * rs,
char * erms )

◆ handleTestWrite()

int handleTestWrite ( shell_stat_t * stat,
char * cmdLine,
FILE * rs,
char * erms )

◆ handleTimeout()

int handleTimeout ( shell_stat_t * stat,
char * cmdLine,
FILE * rs,
char * erms )

◆ handleWrite()

int handleWrite ( shell_stat_t * stat,
char * cmdLine,
FILE * rs,
char * erms )

◆ handleWriteAddr()

int handleWriteAddr ( shell_stat_t * stat,
char * cmdLine,
FILE * rs,
char * erms )

◆ main()

int main ( int argc,
char * argv[] )