Commit | Line | Data |
---|---|---|
920dae64 AT |
1 | /* |
2 | * ========== Copyright Header Begin ========================================== | |
3 | * | |
4 | * OpenSPARC T2 Processor File: ui_cmds.h | |
5 | * Copyright (c) 2006 Sun Microsystems, Inc. All Rights Reserved. | |
6 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES. | |
7 | * | |
8 | * The above named program is free software; you can redistribute it and/or | |
9 | * modify it under the terms of the GNU General Public | |
10 | * License version 2 as published by the Free Software Foundation. | |
11 | * | |
12 | * The above named program is distributed in the hope that it will be | |
13 | * useful, but WITHOUT ANY WARRANTY; without even the implied warranty of | |
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
15 | * General Public License for more details. | |
16 | * | |
17 | * You should have received a copy of the GNU General Public | |
18 | * License along with this work; if not, write to the Free Software | |
19 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. | |
20 | * | |
21 | * ========== Copyright Header End ============================================ | |
22 | */ | |
23 | /* | |
24 | * Copyright (C) 1996, Sun Microsystems, Inc. | |
25 | */ | |
26 | #ifndef _UI_CMDS_H | |
27 | #define _UI_CMDS_H | |
28 | ||
29 | #pragma ident "@(#)1.10 04/10/15 ui_cmds.h" | |
30 | ||
31 | #include "ui_cmd_struct.h" | |
32 | ||
33 | int exec_cmds_from_file (FILE *fin, SimCmd* s_cmd); | |
34 | void exec_cmds (char *cmd, SimCmd* scmd); | |
35 | ||
36 | int start_cmd ( char*, SimCmd* ); | |
37 | int halt_cmd ( char*, SimCmd* ); | |
38 | int run_cmd ( char*, SimCmd* ); | |
39 | int stop_cmd ( char*, SimCmd* ); | |
40 | int step_cmd ( char*, SimCmd* ); | |
41 | void quit_cmd ( char*, SimCmd* ); | |
42 | int load_cmd ( char*, void *); | |
43 | int help_cmds( char*, SimCmd* ); | |
44 | int asm_cmd ( char*, SimCmd* ); | |
45 | int dasm_cmd ( char*, SimCmd* ); | |
46 | ||
47 | int diskdelay_cmd ( char*, SimCmd* ); | |
48 | ||
49 | int file_cmd ( char*, SimCmd* ); | |
50 | int fingerprint_cmd ( char*, SimCmd* ); | |
51 | int version_cmd ( char*, SimCmd* ); | |
52 | int force_cmd ( char*, SimCmd* ); | |
53 | int time_cmd ( char*, SimCmd* ); | |
54 | int read_cmd ( char*, SimCmd* ); | |
55 | int write_cmd ( char*, SimCmd* ); | |
56 | int symtab_cmd ( char*, SimCmd* ); | |
57 | int restore_cmd(char*, SimCmd*, int); | |
58 | int breakpoint_cmd (char*, SimCmd*); | |
59 | int prtFSR_cmd (char*, SimCmd*); | |
60 | int prtInst_cmd (char*, SimCmd*); | |
61 | int setenv_cmd (char*, SimCmd*); | |
62 | int set_cmd (char*, SimCmd*); | |
63 | int setcfg_cmd (char*, SimCmd*); | |
64 | int sleep_cmd (char* foo, SimCmd* bar ); | |
65 | int setlog_cmd (char*, SimCmd*); | |
66 | int switch_cmd(char*, SimCmd*); | |
67 | int itrace_cmd(char*, SimCmd*); | |
68 | int trace_cmd(char*, SimCmd*); | |
69 | int alias_cmd(char*, SimCmd*); | |
70 | int unalias_cmd(char*, SimCmd*); | |
71 | int itrace_on_cmd(char*, SimCmd*); | |
72 | int readsym_cmd(char*, SimCmd*); | |
73 | int addr2sym_cmd(char* cmd, SimCmd* s_cmd); | |
74 | int version_cmd(char* cmd, SimCmd* s_cmd); | |
75 | int where_cmd(char* cmd, SimCmd* s_cmd); | |
76 | int inject_error_cmd(char* cmd, SimCmd* s_cmd); | |
77 | int inject_io_error_cmd(char* cmd, SimCmd* s_cmd); | |
78 | int not_supported_cmd(char*, SimCmd*); | |
79 | int simhme_cmd(char* cmd, SimCmd* s_cmd); | |
80 | ||
81 | int config_cmd(char*, SimCmd*); | |
82 | int dump_old_cmd(char*, SimCmd*); | |
83 | int dump_new_cmd(char*, SimCmd*); | |
84 | int restore_old_cmd(char*, SimCmd*); | |
85 | int restore_new_cmd(char*, SimCmd*); | |
86 | int toggle_watchexec(char*, SimCmd*); | |
87 | int xlate(char* args, SimCmd*); | |
88 | int lines(char* args, SimCmd*); | |
89 | int set_serial_debug(char* args, SimCmd*); | |
90 | ||
91 | int flushdisks_cmd (char* notused, SimCmd* s_cmd); | |
92 | ||
93 | int regs_cmd(char*, SimCmd*); | |
94 | int fp_regs_cmd(char*, SimCmd*); | |
95 | ||
96 | int xc_cmd (char*, SimCmd*); | |
97 | ||
98 | int gv_cmd(char *, SimCmd *); | |
99 | int sv_cmd(char *, SimCmd *); | |
100 | ||
101 | /////////////////////////////////////// | |
102 | ||
103 | void init_ui (char *rc, bool_t wait_for_config); | |
104 | void init_ui_and_startup (char *rc); | |
105 | void init_locks_and_stuff (); | |
106 | void preinit_ui (); | |
107 | void store_stdout_fd (int fd); | |
108 | int get_stdout_fd (); | |
109 | void add_to_stop_list (char * cmd_str); | |
110 | bool_t redirect_stdout (int target_fd); | |
111 | bool_t redirect_back (); | |
112 | ||
113 | int UI_get_file_dsc (); | |
114 | bool_t load_mem_image (const char *file); | |
115 | bool_t load_bin_image (char *file, uint64_t addr, uint64_t size, uint64_t seg_size, int zero_pad, int create_lbl); | |
116 | ||
117 | #endif /* _UI_CMDS_H */ |