| 1 | /* The common simulator framework for GDB, the GNU Debugger. |
| 2 | |
| 3 | Copyright 2002-2020 Free Software Foundation, Inc. |
| 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 3 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, see <http://www.gnu.org/licenses/>. */ |
| 21 | |
| 22 | |
| 23 | #ifndef HW_HANDLES_H |
| 24 | #define HW_HANDLES_H |
| 25 | |
| 26 | |
| 27 | /* Export a capability (handle) data base that maps between internal |
| 28 | data values and those given to a simulation. */ |
| 29 | |
| 30 | |
| 31 | cell_word hw_handle_2ihandle |
| 32 | (struct hw *db, |
| 33 | struct hw_instance *instance); |
| 34 | |
| 35 | struct hw_instance *hw_handle_ihandle2 |
| 36 | (struct hw *db, |
| 37 | cell_word external); |
| 38 | |
| 39 | void hw_handle_add_ihandle |
| 40 | (struct hw *db, |
| 41 | struct hw_instance *instance); |
| 42 | |
| 43 | void hw_handle_remove_ihandle |
| 44 | (struct hw *db, |
| 45 | struct hw_instance *instance); |
| 46 | |
| 47 | |
| 48 | cell_word hw_handle_2phandle |
| 49 | (struct hw *db, |
| 50 | struct hw *hw); |
| 51 | |
| 52 | struct hw *hw_handle_phandle2 |
| 53 | (struct hw *db, |
| 54 | cell_word external); |
| 55 | |
| 56 | void hw_handle_add_phandle |
| 57 | (struct hw *db, |
| 58 | struct hw *hw); |
| 59 | |
| 60 | void hw_handle_remove_phandle |
| 61 | (struct hw *db, |
| 62 | struct hw *hw); |
| 63 | |
| 64 | #endif |