Commit | Line | Data |
---|---|---|
920dae64 AT |
1 | /* |
2 | * ========== Copyright Header Begin ========================================== | |
3 | * | |
4 | * OpenSPARC T2 Processor File: dr.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) 2001 Sun Microsystems, Inc. | |
25 | * All rights reserved. | |
26 | */ | |
27 | #pragma ident "@(#)1.2 02/05/02 dr.h" | |
28 | ||
29 | #ifndef _DR_H | |
30 | #define _DR_H | |
31 | ||
32 | void init_dr (); | |
33 | ||
34 | typedef struct DR_unit_t * DR_OPAQUE; | |
35 | typedef bool_t (*dump_action) (DR_OPAQUE); | |
36 | typedef bool_t (*restore_action) (DR_OPAQUE); | |
37 | ||
38 | extern void DR_register (const char*, dump_action, restore_action, void*); | |
39 | extern void DR_unregister (void*); | |
40 | extern char* DR_get_name (DR_OPAQUE); | |
41 | extern char* DR_get_dir (); | |
42 | extern void* DR_get_client_data (DR_OPAQUE); | |
43 | extern char* DR_get_rdir (DR_OPAQUE pdr); | |
44 | extern bool_t DR_restore_object (char *, char *); | |
45 | extern int dump_version(); | |
46 | extern int v4_sub_version(); | |
47 | extern int sub_version(); | |
48 | extern int sub_sub_version(); | |
49 | extern bool_t handle_pseud_v4_dump(); | |
50 | extern bool_t restore_pure_v4_dump(); | |
51 | extern bool_t restore_v4_dump(); | |
52 | extern bool_t restore_v5_dump(); | |
53 | extern void restore_devices_action(char *); | |
54 | ||
55 | #define DR_is_restoreOP (restore_v4_dump() || restore_v5_dump()) | |
56 | ||
57 | #define BLAZE_SYSTEM "blaze_system" | |
58 | #define SAM_VERSION_FILE "%s/sam-version.dmp" | |
59 | #define BLAZE_VERSION_FILE "%s/blaze-version.dmp" | |
60 | #define SECONDARY_VERSION_FILE "%s/second-version.dmp" | |
61 | ||
62 | #endif /* _DR_H */ | |
63 |