Initial commit of OpenSPARC T2 architecture model.
[OpenSPARC-T2-SAM] / sam-t2 / sam / system / blaze / include / system_impl.h
/*
* ========== Copyright Header Begin ==========================================
*
* OpenSPARC T2 Processor File: system_impl.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) 2001, Sun Microsystems, Inc.
* All rights reserved.
*/
#ifndef _SYSTEM_IMPL_H
#define _SYSTEM_IMPL_H
#pragma ident "@(#)1.14 06/05/12 system_impl.h"
typedef struct ss_entry_t
{
ss_action stop_action;
ss_action start_action;
void * client_data;
struct ss_entry_t *next;
} SS_entry;
typedef uint32_t (*scsi_get_32) ();
typedef struct system_t
{
SS_entry *ss_head;
bool_t ready_to_go;
scsi_get_32 fn_diskdelay, fn_diskwrdelay;
volatile bool_t mp_sync_mode;
mutex_t mp_sync_lock;
cond_t mp_sync_cond;
bool_t mp_sync_th_up;
} SystemT;
struct cpu_thr_arg {
int cpu_indx;
int cpu_num;
};
struct cmp_thr_arg {
int core_id;
int64_t ninsts; // 0 for indefinite; non-zero for step
};
void SYSTEM_preinit ();
void start_mp_sync_threads ();
#endif /* _SYSTEM_IMPL_H */