1 /* This file is part of the program psim.
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version.
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software
17 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
22 #ifndef _FUNCTION_UNIT_H_
23 #define _FUNCTION_UNIT_H_
27 #ifndef INLINE_FUNCTION_UNIT
28 #define INLINE_FUNCTION_UNIT
33 typedef struct _function_unit function_unit;
35 typedef struct _function_unit_print function_unit_print;
36 struct _function_unit_print {
37 function_unit_print *next;
39 const char *suffix_singular;
40 const char *suffix_plural;
46 INLINE_FUNCTION_UNIT function_unit *function_unit_create
49 INLINE_FUNCTION_UNIT void function_unit_init
50 (function_unit *func_unit);
52 INLINE_FUNCTION_UNIT void function_unit_halt
54 function_unit *func_unit);
56 INLINE_FUNCTION_UNIT function_unit_print *function_unit_mon_info
57 (function_unit *func_unit);
59 INLINE_FUNCTION_UNIT void function_unit_mon_free
60 (function_unit *func_unit,
61 function_unit_print *ptr);
63 INLINE_FUNCTION_UNIT void function_unit_issue
65 function_unit *func_unit,
68 INLINE_FUNCTION_UNIT void function_unit_model
71 #endif /* _FUNCTION_UNIT_H_ */