RTEMS 6.3
Loading...
Searching...
No Matches

Used by both the monitor and the application that may reside on top of the monitor. More...

#include <umon/tfs.h>
#include <umon/cli.h>

Go to the source code of this file.

Macros

#define GETMONFUNC_PUTCHAR   1
#define GETMONFUNC_GETCHAR   2
#define GETMONFUNC_GOTACHAR   3
#define GETMONFUNC_GETBYTES   4
#define GETMONFUNC_PRINTF   5
#define GETMONFUNC_CPRINTF   6
#define GETMONFUNC_SPRINTF   7
#define GETMONFUNC_RESTART   8
#define GETMONFUNC_GETENV   9
#define GETMONFUNC_SETENV   10
#define GETMONFUNC_TFSINIT   11
#define GETMONFUNC_TFSADD   12
#define GETMONFUNC_TFSUNLINK   13
#define GETMONFUNC_TFSRUN   14
#define GETMONFUNC_TFSNEXT   15
#define GETMONFUNC_TFSSTAT   16
#define GETMONFUNC_TFSREAD   17
#define GETMONFUNC_TFSWRITE   18
#define GETMONFUNC_TFSOPEN   19
#define GETMONFUNC_TFSCLOSE   20
#define GETMONFUNC_TFSSEEK   21
#define GETMONFUNC_TFSGETLINE   22
#define GETMONFUNC_TFSIPMOD   23
#define GETMONFUNC_TFSCTRL   24
#define GETMONFUNC_ADDCOMMAND   25
#define GETMONFUNC_DOCOMMAND   26
#define GETMONFUNC_GETARGV   27
#define GETMONFUNC_CRC16   28
#define GETMONFUNC_CRC32   29
#define GETMONFUNC_PIOGET   30
#define GETMONFUNC_PIOSET   31
#define GETMONFUNC_PIOCLR   32
#define GETMONFUNC_INTSOFF   33
#define GETMONFUNC_INTSRESTORE   34
#define GETMONFUNC_APPEXIT   35
#define GETMONFUNC_MALLOC   36
#define GETMONFUNC_FREE   37
#define GETMONFUNC_GETLINE   38
#define GETMONFUNC_TFSFSTAT   39
#define GETMONFUNC_TFSEOF   40
#define GETMONFUNC_DECOMPRESS   41
#define GETMONFUNC_TFSTRUNCATE   42
#define GETMONFUNC_HEAPXTEND   43
#define GETMONFUNC_PROFILER   44
#define GETMONFUNC_TFSLINK   45
#define GETMONFUNC_BBC   46
#define GETMONFUNC_MEMTRACE   47
#define GETMONFUNC_TFSTELL   48
#define GETMONFUNC_VERSION   49
#define GETMONFUNC_WARMSTART   50
#define GETMONFUNC_PCICFGREAD   51
#define GETMONFUNC_PCICFGWRITE   52
#define GETMONFUNC_PCICONTROL   53
#define GETMONFUNC_I2CREAD   54
#define GETMONFUNC_I2CWRITE   55
#define GETMONFUNC_I2CCONTROL   56
#define GETMONFUNC_MONDELAY   57
#define GETMONFUNC_GETENVP   58
#define GETMONFUNC_REALLOC   59
#define GETMONFUNC_SENDENETPKT   60
#define GETMONFUNC_RECVENETPKT   61
#define GETMONFUNC_GETSYM   62
#define GETMONFUNC_PRINTPKT   63
#define GETMONFUNC_FLASHWRITE   64
#define GETMONFUNC_FLASHERASE   65
#define GETMONFUNC_FLASHINFO   66
#define GETMONFUNC_ASSIGNHDLR   67
#define GETMONFUNC_WATCHDOG   68
#define GETMONFUNC_PRINTMEM   69
#define GETMONFUNC_PORTCMD   70
#define GETMONFUNC_TIMEOFDAY   71
#define GETMONFUNC_TIMER   72
#define GETMONFUNC_FLASHOVRRD   73
#define CACHEFTYPE_DFLUSH   200
#define CACHEFTYPE_IINVALIDATE   201
#define CHARFUNC_PUTCHAR   300
#define CHARFUNC_GETCHAR   301
#define CHARFUNC_GOTACHAR   302
#define CHARFUNC_RAWMODEON   303
#define CHARFUNC_RAWMODEOFF   304
#define ASSIGNFUNC_GETUSERLEVEL   400
#define WARMSTART_IOINIT   0x00000001
#define WARMSTART_BSSINIT   0x00000002
#define WARMSTART_RUNMONRC   0x00000004
#define WARMSTART_MONHEADER   0x00000008
#define WARMSTART_TFSAUTOBOOT   0x00000010
#define WARMSTART_BOARDINFO   0x00000020
#define WARMSTART_ALL   0xffffffff

Functions

int monConnect (int(*monptr)(int, void *, void *, void *), void(*lock)(void), void(*unlock)(void))
void mon_getargv (int *argc, char ***argv)
void mon_intsrestore (unsigned long oldval)
void mon_appexit (int exit_value)
void mon_free (char *buffer)
void mon_profiler (void *pdata)
void mon_bbc (char *filename, int linenum)
void mon_warmstart (unsigned long mask)
void mon_delay (long msec)
void mon_printpkt (char *buf, int size, int incoming)
void mon_printmem (char *mem, int size, int ascii)
int mon_com (int cmd, void *arg1, void *arg2, void *arg3)
int mon_timer (int cmd, void *arg)
int mon_setenv (char *varname, char *value)
int mon_putchar (char c)
int mon_getchar (void)
int mon_gotachar (void)
int mon_getbytes (char *buf, int count, int block)
int mon_restart (int restart_value)
int mon_tfsinit (void)
int mon_tfsunlink (char *filename)
int mon_tfslink (char *source, char *target)
int mon_tfsrun (char **arglist, int verbosity)
int mon_tfsfstat (char *filename, struct tfshdr *tfp)
int mon_tfseof (int file_descriptor)
int mon_tfstruncate (int file_descriptor, long length)
int mon_tfsread (int file_descriptor, char *buffer, int size)
int mon_tfswrite (int file_descriptor, char *buffer, int size)
int mon_tfsopen (char *filename, long mode, char *buffer)
int mon_tfsclose (int file_descriptor, char *info)
int mon_tfsseek (int file_descriptor, int offset, int whence)
int mon_tfsgetline (int file_descriptor, char *buffer, int bufsize)
int mon_tfsipmod (char *name, char *buffer, int offset, int size)
int mon_addcommand (struct monCommand *command_list, char *)
int mon_docommand (char *cmdline, int verbosity)
int mon_getline (char *buffer, int max, int ledit)
int mon_decompress (char *src, int srcsize, char *dest)
int mon_heapextend (char *base, int size)
int mon_pcicfgwrite (int interface, int bus, int dev, int func, int reg, unsigned long val)
int mon_tfsadd (char *filename, char *info, char *flags, unsigned char *src, int size)
int mon_i2cwrite (int interface, int bigaddr, unsigned char *data, int len)
int mon_i2cread (int interface, int bigaddr, unsigned char *data, int len)
int mon_sendenetpkt (char *pkt, int len)
int mon_recvenetpkt (char *pkt, int len)
int mon_flashoverride (void *flashinfo, int get, int bank)
int mon_flasherase (int snum)
int mon_flashwrite (char *dest, char *src, int bytecnt)
int mon_flashinfo (int snum, int *size, char **base)
int mon_watchdog (void)
int mon_timeofday (int cmd, void *arg)
char * mon_getsym (char *symname, char *buf, int bufsize)
char * mon_getenv (char *varname)
char * mon_getenvp (void)
char * mon_version (void)
char * mon_malloc (int size)
char * mon_realloc (char *buf, int size)
long mon_tfsctrl (int command, long arg1, long arg2)
long mon_tfstell (int file_descriptor)
long mon_portcmd (int cmd, void *arg)
unsigned short mon_xcrc16 (char *buffer, long length)
unsigned long mon_intsoff (void)
unsigned long mon_pcicfgread (int interface, int bus, int dev, int func, int reg)
unsigned long mon_pcictrl (int interface, int cmd, unsigned long arg1, unsigned long arg2)
unsigned long mon_i2cctrl (int interface, int cmd, unsigned long arg1, unsigned long arg2)
unsigned long mon_assignhandler (long hnum, unsigned long arg1, unsigned long arg2)
struct tfshdr * mon_tfsnext (struct tfshdr *tfp)
struct tfshdr * mon_tfsstat (char *filename)
void mon_memtrace (char *fmt,...)
int mon_printf (char *fmt,...)
int mon_cprintf (char *fmt,...)
int mon_sprintf (char *, char *fmt,...)

Detailed Description

Used by both the monitor and the application that may reside on top of the monitor.