Initial commit of OpenSPARC T2 architecture model.
[OpenSPARC-T2-SAM] / sam-t2 / sam / include / dr.h
/*
* ========== Copyright Header Begin ==========================================
*
* OpenSPARC T2 Processor File: dr.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.
*/
#pragma ident "@(#)1.2 02/05/02 dr.h"
#ifndef _DR_H
#define _DR_H
void init_dr ();
typedef struct DR_unit_t * DR_OPAQUE;
typedef bool_t (*dump_action) (DR_OPAQUE);
typedef bool_t (*restore_action) (DR_OPAQUE);
extern void DR_register (const char*, dump_action, restore_action, void*);
extern void DR_unregister (void*);
extern char* DR_get_name (DR_OPAQUE);
extern char* DR_get_dir ();
extern void* DR_get_client_data (DR_OPAQUE);
extern char* DR_get_rdir (DR_OPAQUE pdr);
extern bool_t DR_restore_object (char *, char *);
extern int dump_version();
extern int v4_sub_version();
extern int sub_version();
extern int sub_sub_version();
extern bool_t handle_pseud_v4_dump();
extern bool_t restore_pure_v4_dump();
extern bool_t restore_v4_dump();
extern bool_t restore_v5_dump();
extern void restore_devices_action(char *);
#define DR_is_restoreOP (restore_v4_dump() || restore_v5_dump())
#define BLAZE_SYSTEM "blaze_system"
#define SAM_VERSION_FILE "%s/sam-version.dmp"
#define BLAZE_VERSION_FILE "%s/blaze-version.dmp"
#define SECONDARY_VERSION_FILE "%s/second-version.dmp"
#endif /* _DR_H */