* ========== Copyright Header Begin ==========================================
* OpenSPARC T2 Processor File: ui_cmd_struct.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.
* ui_cmd_struct.h - Definitions for command lists and command entries.
#ident "@(#)1.11 07/09/26 SMI ui_cmd_struct.h"
#ifndef _UI_CMD_STRUCT_H_
#define _UI_CMD_STRUCT_H_
#include "sim_cmd_struct.h"
/* Create a type for pointers to layer command functions. */
typedef int (*ui_cmdfn_t
)(
/* For layer commands. */
typedef struct ui_cmd_entry
{
const char* cmd
; /* not used when on a LIST */
const char* short_helpstr
; /* string that explains syntax */
const char* long_helpstr
; /* string that explains command */
typedef struct UI_alias
{
//////////////////////////////////////////////
ui_cmd_exe_handler cmd_exe_func
;
ui_cmd_help_handler cmd_help_func
;
//////////////////////////////////////////////
typedef struct ui_blcmd
{
typedef List1Node
<Ui_blcmd
> Ui_blcmdNode
;
//////////////////////////////////////////////
typedef struct ui_misc_t
{
cond_t side_cmd_cond
; // These 2 primitives drive the "independent" UI
mutex_t side_cmd_lock
; // cycle and source of UI commands
bool_t
volatile side_done
;
bool_t
volatile file_first_time
;
struct ui_blcmd
*stop_list
;
bool_t
volatile ultimate_stop
;
#endif // UI_CMD_STRUCT_H_