summaryrefslogtreecommitdiff
path: root/utils/regtools/qeditor/backend.h
diff options
context:
space:
mode:
Diffstat (limited to 'utils/regtools/qeditor/backend.h')
-rw-r--r--utils/regtools/qeditor/backend.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/utils/regtools/qeditor/backend.h b/utils/regtools/qeditor/backend.h
index 9d4c75f0b0..e876e9d286 100644
--- a/utils/regtools/qeditor/backend.h
+++ b/utils/regtools/qeditor/backend.h
@@ -85,7 +85,7 @@ class FileIoBackend : public IoBackend
85{ 85{
86 Q_OBJECT 86 Q_OBJECT
87public: 87public:
88 FileIoBackend(const QString& filename); 88 FileIoBackend(const QString& filename, const QString& soc_name = "");
89 89
90 virtual bool SupportAccess(AccessType type) { return type == ByName; } 90 virtual bool SupportAccess(AccessType type) { return type == ByName; }
91 virtual QString GetSocName(); 91 virtual QString GetSocName();
@@ -113,6 +113,7 @@ class HWStubDevice
113{ 113{
114public: 114public:
115 HWStubDevice(struct libusb_device *dev); 115 HWStubDevice(struct libusb_device *dev);
116 HWStubDevice(const HWStubDevice *dev);
116 ~HWStubDevice(); 117 ~HWStubDevice();
117 bool IsValid(); 118 bool IsValid();
118 bool Open(); 119 bool Open();
@@ -130,6 +131,7 @@ public:
130 131
131protected: 132protected:
132 bool Probe(); 133 bool Probe();
134 void Init(struct libusb_device *dev);
133 135
134 bool m_valid; 136 bool m_valid;
135 struct libusb_device *m_dev; 137 struct libusb_device *m_dev;
@@ -146,6 +148,7 @@ class HWStubIoBackend : public IoBackend
146{ 148{
147 Q_OBJECT 149 Q_OBJECT
148public: 150public:
151 // NOTE: HWStubIoBackend takes ownership of the device and will delete it
149 HWStubIoBackend(HWStubDevice *dev); 152 HWStubIoBackend(HWStubDevice *dev);
150 virtual ~HWStubIoBackend(); 153 virtual ~HWStubIoBackend();
151 154
@@ -310,6 +313,8 @@ public:
310 bool GetRegRef(const SocDevRef& dev, const QString& reg, SocRegRef& ref); 313 bool GetRegRef(const SocDevRef& dev, const QString& reg, SocRegRef& ref);
311 bool GetFieldRef(const SocRegRef& reg, const QString& field, SocFieldRef& ref); 314 bool GetFieldRef(const SocRegRef& reg, const QString& field, SocFieldRef& ref);
312 bool GetRegisterAddress(const QString& dev, const QString& reg, soc_addr_t& addr); 315 bool GetRegisterAddress(const QString& dev, const QString& reg, soc_addr_t& addr);
316 bool DumpAllRegisters(const QString& filename);
317
313private: 318private:
314 IoBackend *m_io_backend; 319 IoBackend *m_io_backend;
315 const SocRef& m_soc; 320 const SocRef& m_soc;