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