xref: /qemu/target/hexagon/reg_fields.h (revision 80be6828)
1ba385122STaylor Simpson /*
2ba385122STaylor Simpson  *  Copyright(c) 2019-2021 Qualcomm Innovation Center, Inc. All Rights Reserved.
3ba385122STaylor Simpson  *
4ba385122STaylor Simpson  *  This program is free software; you can redistribute it and/or modify
5ba385122STaylor Simpson  *  it under the terms of the GNU General Public License as published by
6ba385122STaylor Simpson  *  the Free Software Foundation; either version 2 of the License, or
7ba385122STaylor Simpson  *  (at your option) any later version.
8ba385122STaylor Simpson  *
9ba385122STaylor Simpson  *  This program is distributed in the hope that it will be useful,
10ba385122STaylor Simpson  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
11ba385122STaylor Simpson  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12ba385122STaylor Simpson  *  GNU General Public License for more details.
13ba385122STaylor Simpson  *
14ba385122STaylor Simpson  *  You should have received a copy of the GNU General Public License
15ba385122STaylor Simpson  *  along with this program; if not, see <http://www.gnu.org/licenses/>.
16ba385122STaylor Simpson  */
17ba385122STaylor Simpson 
18ba385122STaylor Simpson #ifndef HEXAGON_REG_FIELDS_H
19ba385122STaylor Simpson #define HEXAGON_REG_FIELDS_H
20ba385122STaylor Simpson 
21ba385122STaylor Simpson typedef struct {
22ba385122STaylor Simpson     int offset;
23ba385122STaylor Simpson     int width;
24ba385122STaylor Simpson } RegField;
25ba385122STaylor Simpson 
26ba385122STaylor Simpson enum {
27ba385122STaylor Simpson #define DEF_REG_FIELD(TAG, START, WIDTH) \
28ba385122STaylor Simpson     TAG,
29ba385122STaylor Simpson #include "reg_fields_def.h.inc"
30ba385122STaylor Simpson     NUM_REG_FIELDS
31ba385122STaylor Simpson #undef DEF_REG_FIELD
32ba385122STaylor Simpson };
33ba385122STaylor Simpson 
34*80be6828STaylor Simpson extern const RegField reg_field_info[NUM_REG_FIELDS];
35*80be6828STaylor Simpson 
36ba385122STaylor Simpson #endif
37