66extern int monConnect(
int (*monptr)(
int,
void *,
void *,
void *),
67 void (*lock)(
void),
void (*unlock)(
void));
68extern void mon_getargv(
int *argc,
char ***argv);
69extern void mon_intsrestore(
unsigned long oldval);
70extern void mon_appexit(
int exit_value);
71extern void mon_free(
char *buffer);
72extern void mon_profiler(
void *pdata);
73extern void mon_bbc(
char *filename,
int linenum);
74extern void mon_warmstart(
unsigned long mask);
75extern void mon_delay(
long msec);
76extern void mon_printpkt(
char *buf,
int size,
int incoming);
77extern void mon_printmem(
char *mem,
int size,
int ascii);
80extern int mon_com(
int cmd,
void *arg1,
void *arg2,
void *arg3);
81extern int mon_timer(
int cmd,
void * arg);
82extern int mon_setenv(
char *varname,
char *value);
83extern int mon_putchar(
char c);
84extern int mon_getchar(
void);
85extern int mon_gotachar(
void);
86extern int mon_getbytes(
char *buf,
int count,
int block);
87extern int mon_restart(
int restart_value);
88extern int mon_tfsinit(
void);
89extern int mon_tfsunlink(
char *filename);
90extern int mon_tfslink(
char *source,
char *target);
91extern int mon_tfsrun(
char **arglist,
int verbosity);
92extern int mon_tfsfstat(
char *filename,
struct tfshdr *tfp);
93extern int mon_tfseof(
int file_descriptor);
94extern int mon_tfstruncate(
int file_descriptor,
long length);
95extern int mon_tfsread(
int file_descriptor,
char *buffer,
int size);
96extern int mon_tfswrite(
int file_descriptor,
char *buffer,
int size);
97extern int mon_tfsopen(
char *filename,
long mode,
char *buffer);
98extern int mon_tfsclose(
int file_descriptor,
char *info);
99extern int mon_tfsseek(
int file_descriptor,
int offset,
int whence);
100extern int mon_tfsgetline(
int file_descriptor,
char *buffer,
int bufsize);
101extern int mon_tfsipmod(
char *name,
char *buffer,
int offset,
int size);
102extern int mon_addcommand(
struct monCommand *command_list,
char *);
103extern int mon_docommand(
char *cmdline,
int verbosity);
104extern int mon_getline(
char *buffer,
int max,
int ledit);
105extern int mon_decompress(
char *src,
int srcsize,
char *dest);
106extern int mon_heapextend(
char *base,
int size);
107extern int mon_pcicfgwrite(
int interface,
int bus,
int dev,
int func,
int reg,
109extern int mon_tfsadd(
char *filename,
char *info,
char *flags,
110 unsigned char *src,
int size);
111extern int mon_i2cwrite(
int interface,
int bigaddr,
unsigned char *data,
113extern int mon_i2cread(
int interface,
int bigaddr,
unsigned char *data,
115extern int mon_sendenetpkt(
char *pkt,
int len);
116extern int mon_recvenetpkt(
char *pkt,
int len);
117extern int mon_flashoverride(
void *flashinfo,
int get,
int bank);
118extern int mon_flasherase(
int snum);
119extern int mon_flashwrite(
char *dest,
char *src,
int bytecnt);
120extern int mon_flashinfo(
int snum,
int *
size,
char **base);
121extern int mon_watchdog(
void);
122extern int mon_timeofday(
int cmd,
void *arg);
124extern char *mon_getsym(
char *symname,
char *buf,
int bufsize);
125extern char *mon_getenv(
char *varname);
126extern char *mon_getenvp(
void);
127extern char *mon_version(
void);
129extern char *mon_malloc(
int size,
char *
file,
int line);
130extern char *mon_realloc(
char *buf,
int size,
char *
file,
int line);
132extern char *mon_malloc(
int size);
133extern char *mon_realloc(
char *buf,
int size);
136extern long mon_tfsctrl(
int command,
long arg1,
long arg2);
137extern long mon_tfstell(
int file_descriptor);
138extern long mon_portcmd(
int cmd,
void *arg);
140extern unsigned short mon_xcrc16(
char *buffer,
long length);
142extern unsigned long mon_intsoff(
void);
144extern unsigned long mon_pcicfgread(
int interface,
int bus,
int dev,
147extern unsigned long mon_pcictrl(
int interface,
int cmd,
148 unsigned long arg1,
unsigned long arg2);
150extern unsigned long mon_i2cctrl(
int interface,
int cmd,
151 unsigned long arg1,
unsigned long arg2);
153extern unsigned long mon_assignhandler(
long hnum,
154 unsigned long arg1,
unsigned long arg2);
157extern struct tfshdr *mon_tfsstat(
char *filename);
164#ifndef _INSIDE_MONLIB
165extern void mon_memtrace(
char *fmt, ...);
166extern int mon_printf(
char *fmt, ...);
167extern int mon_cprintf(
char *fmt, ...);
168extern int mon_sprintf(
char *,
char *fmt, ...);
178#define GETMONFUNC_PUTCHAR 1
179#define GETMONFUNC_GETCHAR 2
180#define GETMONFUNC_GOTACHAR 3
181#define GETMONFUNC_GETBYTES 4
182#define GETMONFUNC_PRINTF 5
183#define GETMONFUNC_CPRINTF 6
184#define GETMONFUNC_SPRINTF 7
185#define GETMONFUNC_RESTART 8
186#define GETMONFUNC_GETENV 9
187#define GETMONFUNC_SETENV 10
188#define GETMONFUNC_TFSINIT 11
189#define GETMONFUNC_TFSADD 12
190#define GETMONFUNC_TFSUNLINK 13
191#define GETMONFUNC_TFSRUN 14
192#define GETMONFUNC_TFSNEXT 15
193#define GETMONFUNC_TFSSTAT 16
194#define GETMONFUNC_TFSREAD 17
195#define GETMONFUNC_TFSWRITE 18
196#define GETMONFUNC_TFSOPEN 19
197#define GETMONFUNC_TFSCLOSE 20
198#define GETMONFUNC_TFSSEEK 21
199#define GETMONFUNC_TFSGETLINE 22
200#define GETMONFUNC_TFSIPMOD 23
201#define GETMONFUNC_TFSCTRL 24
202#define GETMONFUNC_ADDCOMMAND 25
203#define GETMONFUNC_DOCOMMAND 26
204#define GETMONFUNC_GETARGV 27
205#define GETMONFUNC_CRC16 28
206#define GETMONFUNC_CRC32 29
207#define GETMONFUNC_PIOGET 30
208#define GETMONFUNC_PIOSET 31
209#define GETMONFUNC_PIOCLR 32
210#define GETMONFUNC_INTSOFF 33
211#define GETMONFUNC_INTSRESTORE 34
212#define GETMONFUNC_APPEXIT 35
213#define GETMONFUNC_MALLOC 36
214#define GETMONFUNC_FREE 37
215#define GETMONFUNC_GETLINE 38
216#define GETMONFUNC_TFSFSTAT 39
217#define GETMONFUNC_TFSEOF 40
218#define GETMONFUNC_DECOMPRESS 41
219#define GETMONFUNC_TFSTRUNCATE 42
220#define GETMONFUNC_HEAPXTEND 43
221#define GETMONFUNC_PROFILER 44
222#define GETMONFUNC_TFSLINK 45
223#define GETMONFUNC_BBC 46
224#define GETMONFUNC_MEMTRACE 47
225#define GETMONFUNC_TFSTELL 48
226#define GETMONFUNC_VERSION 49
227#define GETMONFUNC_WARMSTART 50
228#define GETMONFUNC_PCICFGREAD 51
229#define GETMONFUNC_PCICFGWRITE 52
230#define GETMONFUNC_PCICONTROL 53
231#define GETMONFUNC_I2CREAD 54
232#define GETMONFUNC_I2CWRITE 55
233#define GETMONFUNC_I2CCONTROL 56
234#define GETMONFUNC_MONDELAY 57
235#define GETMONFUNC_GETENVP 58
236#define GETMONFUNC_REALLOC 59
237#define GETMONFUNC_SENDENETPKT 60
238#define GETMONFUNC_RECVENETPKT 61
239#define GETMONFUNC_GETSYM 62
240#define GETMONFUNC_PRINTPKT 63
241#define GETMONFUNC_FLASHWRITE 64
242#define GETMONFUNC_FLASHERASE 65
243#define GETMONFUNC_FLASHINFO 66
244#define GETMONFUNC_ASSIGNHDLR 67
245#define GETMONFUNC_WATCHDOG 68
246#define GETMONFUNC_PRINTMEM 69
247#define GETMONFUNC_PORTCMD 70
248#define GETMONFUNC_TIMEOFDAY 71
249#define GETMONFUNC_TIMER 72
250#define GETMONFUNC_FLASHOVRRD 73
252#define CACHEFTYPE_DFLUSH 200
253#define CACHEFTYPE_IINVALIDATE 201
255#define CHARFUNC_PUTCHAR 300
256#define CHARFUNC_GETCHAR 301
257#define CHARFUNC_GOTACHAR 302
258#define CHARFUNC_RAWMODEON 303
259#define CHARFUNC_RAWMODEOFF 304
261#define ASSIGNFUNC_GETUSERLEVEL 400
266#define WARMSTART_IOINIT 0x00000001
267#define WARMSTART_BSSINIT 0x00000002
268#define WARMSTART_RUNMONRC 0x00000004
269#define WARMSTART_MONHEADER 0x00000008
270#define WARMSTART_TFSAUTOBOOT 0x00000010
271#define WARMSTART_BOARDINFO 0x00000020
272#define WARMSTART_ALL 0xffffffff
Header file for Command Line Interface related stuff.
Definition: mongoose.c:448
unsigned size
Definition: tte.h:1
Header file for TFS transactions, used by both application and monnitor.