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