X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=sim%2Fcommon%2Fhw-properties.h;h=6cc833660a65b806b41f9ba675635d847b5c33e2;hb=423054beadf317757d43aefb9eddfe711a42e3e1;hp=511fba34daabd9fdff0bb72a1f1aa81eff9f8963;hpb=dc9e099fc0eced486ae2b49455c9da113c11f4ff;p=deliverable%2Fbinutils-gdb.git diff --git a/sim/common/hw-properties.h b/sim/common/hw-properties.h index 511fba34da..6cc833660a 100644 --- a/sim/common/hw-properties.h +++ b/sim/common/hw-properties.h @@ -1,22 +1,23 @@ -/* This file is part of the program psim. +/* The common simulator framework for GDB, the GNU Debugger. - Copyright (C) 1994-1998, Andrew Cagney + Copyright 2002-2020 Free Software Foundation, Inc. - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. + Contributed by Andrew Cagney and Red Hat. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. - - */ + This file is part of GDB. + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ #ifndef HW_PROPERTIES_H @@ -25,7 +26,8 @@ /* The following are valid property types. The property `array' is for generic untyped data. */ -typedef enum { +typedef enum +{ array_property, boolean_property, #if 0 @@ -38,7 +40,8 @@ typedef enum { string_array_property, } hw_property_type; -struct hw_property { +struct hw_property +{ struct hw *owner; const char *name; hw_property_type type; @@ -119,7 +122,7 @@ const struct hw_property *hw_find_array_property void hw_add_boolean_property (struct hw *me, const char *property, - int bool); + int boolean); int hw_find_boolean_property (struct hw *me, @@ -128,7 +131,8 @@ int hw_find_boolean_property #if 0 -typedef struct _ihandle_runtime_property_spec { +typedef struct _ihandle_runtime_property_spec +{ const char *full_path; } ihandle_runtime_property_spec; @@ -166,11 +170,12 @@ int hw_find_integer_array_property (struct hw *me, const char *property, unsigned index, - signed_word *integer); + signed_cell *integer); -typedef struct _range_property_spec { +typedef struct _range_property_spec +{ hw_unit child_address; hw_unit parent_address; hw_unit size; @@ -190,7 +195,8 @@ int hw_find_range_array_property -typedef struct _reg_property_spec { +typedef struct _reg_property_spec +{ hw_unit address; hw_unit size; } reg_property_spec;