1 |
27 |
unneback |
//==========================================================================
|
2 |
|
|
//
|
3 |
|
|
// monitor_cmd.h
|
4 |
|
|
//
|
5 |
|
|
// Monitor command definitions for the CygMON ROM monitor
|
6 |
|
|
//
|
7 |
|
|
//==========================================================================
|
8 |
|
|
//####ECOSGPLCOPYRIGHTBEGIN####
|
9 |
|
|
// -------------------------------------------
|
10 |
|
|
// This file is part of eCos, the Embedded Configurable Operating System.
|
11 |
|
|
// Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc.
|
12 |
|
|
//
|
13 |
|
|
// eCos is free software; you can redistribute it and/or modify it under
|
14 |
|
|
// the terms of the GNU General Public License as published by the Free
|
15 |
|
|
// Software Foundation; either version 2 or (at your option) any later version.
|
16 |
|
|
//
|
17 |
|
|
// eCos is distributed in the hope that it will be useful, but WITHOUT ANY
|
18 |
|
|
// WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
19 |
|
|
// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
20 |
|
|
// for more details.
|
21 |
|
|
//
|
22 |
|
|
// You should have received a copy of the GNU General Public License along
|
23 |
|
|
// with eCos; if not, write to the Free Software Foundation, Inc.,
|
24 |
|
|
// 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
|
25 |
|
|
//
|
26 |
|
|
// As a special exception, if other files instantiate templates or use macros
|
27 |
|
|
// or inline functions from this file, or you compile this file and link it
|
28 |
|
|
// with other works to produce a work based on this file, this file does not
|
29 |
|
|
// by itself cause the resulting work to be covered by the GNU General Public
|
30 |
|
|
// License. However the source code for this file must still be made available
|
31 |
|
|
// in accordance with section (3) of the GNU General Public License.
|
32 |
|
|
//
|
33 |
|
|
// This exception does not invalidate any other reasons why a work based on
|
34 |
|
|
// this file might be covered by the GNU General Public License.
|
35 |
|
|
//
|
36 |
|
|
// Alternative licenses for eCos may be arranged by contacting Red Hat, Inc.
|
37 |
|
|
// at http://sources.redhat.com/ecos/ecos-license/
|
38 |
|
|
// -------------------------------------------
|
39 |
|
|
//####ECOSGPLCOPYRIGHTEND####
|
40 |
|
|
//==========================================================================
|
41 |
|
|
//#####DESCRIPTIONBEGIN####
|
42 |
|
|
//
|
43 |
|
|
// Author(s):
|
44 |
|
|
// Contributors: gthomas
|
45 |
|
|
// Date: 1999-10-20
|
46 |
|
|
// Purpose: Monitor command definitions for the CygMON ROM monitor
|
47 |
|
|
// Description:
|
48 |
|
|
//
|
49 |
|
|
//
|
50 |
|
|
//####DESCRIPTIONEND####
|
51 |
|
|
//
|
52 |
|
|
//=========================================================================
|
53 |
|
|
|
54 |
|
|
#ifndef MONITOR_CMD_H
|
55 |
|
|
#define MONITOR_CMD_H
|
56 |
|
|
|
57 |
|
|
#ifndef ASM
|
58 |
|
|
typedef enum {
|
59 |
|
|
INVOCATION, USAGE, SHORT_HELP, LONG_HELP
|
60 |
|
|
} cmdmode_t;
|
61 |
|
|
|
62 |
|
|
struct cmdentry
|
63 |
|
|
{
|
64 |
|
|
char *alias;
|
65 |
|
|
char *cmd;
|
66 |
|
|
int (*function) (cmdmode_t);
|
67 |
|
|
};
|
68 |
|
|
|
69 |
|
|
extern struct cmdentry cmdtab [];
|
70 |
|
|
|
71 |
|
|
extern int monitor_loop (void);
|
72 |
|
|
|
73 |
|
|
extern char inbuf[];
|
74 |
|
|
|
75 |
|
|
extern char **argvect;
|
76 |
|
|
|
77 |
|
|
typedef int (*srec_input_func_t)(void);
|
78 |
|
|
|
79 |
|
|
extern int load_srec(srec_input_func_t inp_func);
|
80 |
|
|
|
81 |
|
|
#ifdef USE_HELP
|
82 |
|
|
extern void usage (char *string);
|
83 |
|
|
extern void short_help (char *string);
|
84 |
|
|
extern void long_help (char *string);
|
85 |
|
|
extern void example (char *string);
|
86 |
|
|
#else
|
87 |
|
|
#define usage(x) no_help_usage ()
|
88 |
|
|
#define short_help(x) no_help()
|
89 |
|
|
#define long_help(x) no_help()
|
90 |
|
|
#define example(x)
|
91 |
|
|
extern void no_help (void);
|
92 |
|
|
extern void no_help_usage (void);
|
93 |
|
|
#endif
|
94 |
|
|
extern int help_cmd (cmdmode_t mode);
|
95 |
|
|
extern int mem_cmd (cmdmode_t mode);
|
96 |
|
|
|
97 |
|
|
extern int dump_cmd (cmdmode_t mode);
|
98 |
|
|
extern int ethaddr_cmd (cmdmode_t mode);
|
99 |
|
|
extern int ipaddr_cmd (cmdmode_t mode);
|
100 |
|
|
extern int tcpport_cmd (cmdmode_t mode);
|
101 |
|
|
extern int load_cmd (cmdmode_t mode);
|
102 |
|
|
extern int reg_cmd (cmdmode_t mode);
|
103 |
|
|
extern int go_cmd (cmdmode_t mode);
|
104 |
|
|
extern int othernames_cmd (cmdmode_t mode);
|
105 |
|
|
extern int step_cmd (cmdmode_t mode);
|
106 |
|
|
extern int transfer_cmd (cmdmode_t mode);
|
107 |
|
|
extern int timer_cmd (cmdmode_t mode);
|
108 |
|
|
extern int disassemble_cmd (cmdmode_t mode);
|
109 |
|
|
extern int breakpoint_cmd (cmdmode_t mode);
|
110 |
|
|
extern int clear_breakpoint_cmd (cmdmode_t mode);
|
111 |
|
|
extern int memusage_cmd (cmdmode_t mode);
|
112 |
|
|
extern int set_serial_port_cmd (cmdmode_t mode);
|
113 |
|
|
extern int set_serial_speed_cmd (cmdmode_t mode);
|
114 |
|
|
extern int version_cmd (cmdmode_t mode);
|
115 |
|
|
extern int cache_cmd (cmdmode_t mode);
|
116 |
|
|
extern int set_term_cmd (cmdmode_t mode);
|
117 |
|
|
extern int reset_cmd (cmdmode_t mode);
|
118 |
|
|
extern int copy_cmd (cmdmode_t mode);
|
119 |
|
|
extern int fill_cmd (cmdmode_t mode);
|
120 |
|
|
extern int set_program_args_cmd (cmdmode_t mode);
|
121 |
|
|
extern int swapmem_cmd (cmdmode_t mode);
|
122 |
|
|
extern int checksumcmd (cmdmode_t mode);
|
123 |
|
|
extern int int_cmd (cmdmode_t mode);
|
124 |
|
|
#endif
|
125 |
|
|
|
126 |
|
|
#endif
|