summaryrefslogtreecommitdiffstats
path: root/utils/regtools/qeditor/utils.h
diff options
context:
space:
mode:
Diffstat (limited to 'utils/regtools/qeditor/utils.h')
-rw-r--r--utils/regtools/qeditor/utils.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/utils/regtools/qeditor/utils.h b/utils/regtools/qeditor/utils.h
index 27476dba61..c78b0a40e4 100644
--- a/utils/regtools/qeditor/utils.h
+++ b/utils/regtools/qeditor/utils.h
@@ -168,6 +168,20 @@ protected:
Q_DECLARE_METATYPE(SocFieldCachedValue)
+class SocFieldBitRange
+{
+public:
+ SocFieldBitRange():m_first_bit(0),m_last_bit(0) {}
+ SocFieldBitRange(const soc_reg_field_t& field)
+ :m_first_bit(field.first_bit), m_last_bit(field.last_bit) {}
+ unsigned GetFirstBit() const { return m_first_bit; }
+ unsigned GetLastBit() const { return m_last_bit; }
+protected:
+ unsigned m_first_bit, m_last_bit;
+};
+
+Q_DECLARE_METATYPE(SocFieldBitRange)
+
class SocFieldCachedItemDelegate : public QStyledItemDelegate
{
public: