Initial commit of OpenSPARC T2 architecture model.
[OpenSPARC-T2-SAM] / sam-t2 / sam / system / blaze / include / ui_cmds.h
/*
* ========== Copyright Header Begin ==========================================
*
* OpenSPARC T2 Processor File: ui_cmds.h
* Copyright (c) 2006 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES.
*
* The above named program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public
* License version 2 as published by the Free Software Foundation.
*
* The above named program is distributed in the hope that it will be
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public
* License along with this work; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
*
* ========== Copyright Header End ============================================
*/
/*
* Copyright (C) 1996, Sun Microsystems, Inc.
*/
#ifndef _UI_CMDS_H
#define _UI_CMDS_H
#pragma ident "@(#)1.10 04/10/15 ui_cmds.h"
#include "ui_cmd_struct.h"
int exec_cmds_from_file (FILE *fin, SimCmd* s_cmd);
void exec_cmds (char *cmd, SimCmd* scmd);
int start_cmd ( char*, SimCmd* );
int halt_cmd ( char*, SimCmd* );
int run_cmd ( char*, SimCmd* );
int stop_cmd ( char*, SimCmd* );
int step_cmd ( char*, SimCmd* );
void quit_cmd ( char*, SimCmd* );
int load_cmd ( char*, void *);
int help_cmds( char*, SimCmd* );
int asm_cmd ( char*, SimCmd* );
int dasm_cmd ( char*, SimCmd* );
int diskdelay_cmd ( char*, SimCmd* );
int file_cmd ( char*, SimCmd* );
int fingerprint_cmd ( char*, SimCmd* );
int version_cmd ( char*, SimCmd* );
int force_cmd ( char*, SimCmd* );
int time_cmd ( char*, SimCmd* );
int read_cmd ( char*, SimCmd* );
int write_cmd ( char*, SimCmd* );
int symtab_cmd ( char*, SimCmd* );
int restore_cmd(char*, SimCmd*, int);
int breakpoint_cmd (char*, SimCmd*);
int prtFSR_cmd (char*, SimCmd*);
int prtInst_cmd (char*, SimCmd*);
int setenv_cmd (char*, SimCmd*);
int set_cmd (char*, SimCmd*);
int setcfg_cmd (char*, SimCmd*);
int sleep_cmd (char* foo, SimCmd* bar );
int setlog_cmd (char*, SimCmd*);
int switch_cmd(char*, SimCmd*);
int itrace_cmd(char*, SimCmd*);
int trace_cmd(char*, SimCmd*);
int alias_cmd(char*, SimCmd*);
int unalias_cmd(char*, SimCmd*);
int itrace_on_cmd(char*, SimCmd*);
int readsym_cmd(char*, SimCmd*);
int addr2sym_cmd(char* cmd, SimCmd* s_cmd);
int version_cmd(char* cmd, SimCmd* s_cmd);
int where_cmd(char* cmd, SimCmd* s_cmd);
int inject_error_cmd(char* cmd, SimCmd* s_cmd);
int inject_io_error_cmd(char* cmd, SimCmd* s_cmd);
int not_supported_cmd(char*, SimCmd*);
int simhme_cmd(char* cmd, SimCmd* s_cmd);
int config_cmd(char*, SimCmd*);
int dump_old_cmd(char*, SimCmd*);
int dump_new_cmd(char*, SimCmd*);
int restore_old_cmd(char*, SimCmd*);
int restore_new_cmd(char*, SimCmd*);
int toggle_watchexec(char*, SimCmd*);
int xlate(char* args, SimCmd*);
int lines(char* args, SimCmd*);
int set_serial_debug(char* args, SimCmd*);
int flushdisks_cmd (char* notused, SimCmd* s_cmd);
int regs_cmd(char*, SimCmd*);
int fp_regs_cmd(char*, SimCmd*);
int xc_cmd (char*, SimCmd*);
int gv_cmd(char *, SimCmd *);
int sv_cmd(char *, SimCmd *);
///////////////////////////////////////
void init_ui (char *rc, bool_t wait_for_config);
void init_ui_and_startup (char *rc);
void init_locks_and_stuff ();
void preinit_ui ();
void store_stdout_fd (int fd);
int get_stdout_fd ();
void add_to_stop_list (char * cmd_str);
bool_t redirect_stdout (int target_fd);
bool_t redirect_back ();
int UI_get_file_dsc ();
bool_t load_mem_image (const char *file);
bool_t load_bin_image (char *file, uint64_t addr, uint64_t size, uint64_t seg_size, int zero_pad, int create_lbl);
#endif /* _UI_CMDS_H */