]>
Commit | Line | Data |
---|---|---|
b85e4829 AC |
1 | /* The common simulator framework for GDB, the GNU Debugger. |
2 | ||
6aba47ca | 3 | Copyright 2002, 2007 Free Software Foundation, Inc. |
b85e4829 AC |
4 | |
5 | Contributed by Andrew Cagney and Red Hat. | |
6 | ||
7 | This file is part of GDB. | |
8 | ||
9 | This program is free software; you can redistribute it and/or modify | |
10 | it under the terms of the GNU General Public License as published by | |
11 | the Free Software Foundation; either version 2 of the License, or | |
12 | (at your option) any later version. | |
13 | ||
14 | This program is distributed in the hope that it will be useful, | |
15 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
17 | GNU General Public License for more details. | |
18 | ||
19 | You should have received a copy of the GNU General Public License | |
20 | along with this program; if not, write to the Free Software | |
21 | Foundation, Inc., 59 Temple Place - Suite 330, | |
22 | Boston, MA 02111-1307, USA. */ | |
c906108c SS |
23 | |
24 | ||
25 | #ifndef HW_HANDLES_H | |
26 | #define HW_HANDLES_H | |
27 | ||
28 | ||
29 | /* Export a capability (handle) data base that maps between internal | |
30 | data values and those given to a simulation. */ | |
31 | ||
32 | ||
33 | cell_word hw_handle_2ihandle | |
34 | (struct hw *db, | |
35 | struct hw_instance *instance); | |
36 | ||
37 | struct hw_instance *hw_handle_ihandle2 | |
38 | (struct hw *db, | |
39 | cell_word external); | |
40 | ||
41 | void hw_handle_add_ihandle | |
42 | (struct hw *db, | |
43 | struct hw_instance *instance); | |
44 | ||
45 | void hw_handle_remove_ihandle | |
46 | (struct hw *db, | |
47 | struct hw_instance *instance); | |
48 | ||
49 | ||
50 | cell_word hw_handle_2phandle | |
51 | (struct hw *db, | |
52 | struct hw *hw); | |
53 | ||
54 | struct hw *hw_handle_phandle2 | |
55 | (struct hw *db, | |
56 | cell_word external); | |
57 | ||
58 | void hw_handle_add_phandle | |
59 | (struct hw *db, | |
60 | struct hw *hw); | |
61 | ||
62 | void hw_handle_remove_phandle | |
63 | (struct hw *db, | |
64 | struct hw *hw); | |
65 | ||
66 | #endif |