summaryrefslogtreecommitdiffstats
path: root/utils/regtools/qeditor/backend.h
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2014-05-11 19:51:55 +0200
committerAmaury Pouly <amaury.pouly@gmail.com>2014-05-11 19:56:56 +0200
commit7b590a953639714cf8ea4b550dd7f6558698e23f (patch)
tree4d37890770d45b29237fb671aa66ac446dff7684 /utils/regtools/qeditor/backend.h
parent4c1eafc208426d4457660313314289a570287cb8 (diff)
downloadrockbox-7b590a953639714cf8ea4b550dd7f6558698e23f.tar.gz
rockbox-7b590a953639714cf8ea4b550dd7f6558698e23f.tar.bz2
rockbox-7b590a953639714cf8ea4b550dd7f6558698e23f.zip
qeditor: many enhancement
Qeditor has been improved in many ways: - it can now dump all registers, just like the lua DUMPER.dump_all() command - several crash were fixed - when connected to a hwstub command, one can correctly edit individual fields - the code was simplified in several places Change-Id: I092b99ce3a12ff6417552de61d62c65f706bcff0
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
{
Q_OBJECT
public:
- FileIoBackend(const QString& filename);
+ FileIoBackend(const QString& filename, const QString& soc_name = "");
virtual bool SupportAccess(AccessType type) { return type == ByName; }
virtual QString GetSocName();
@@ -113,6 +113,7 @@ class HWStubDevice
{
public:
HWStubDevice(struct libusb_device *dev);
+ HWStubDevice(const HWStubDevice *dev);
~HWStubDevice();
bool IsValid();
bool Open();
@@ -130,6 +131,7 @@ public:
protected:
bool Probe();
+ void Init(struct libusb_device *dev);
bool m_valid;
struct libusb_device *m_dev;
@@ -146,6 +148,7 @@ class HWStubIoBackend : public IoBackend
{
Q_OBJECT
public:
+ // NOTE: HWStubIoBackend takes ownership of the device and will delete it
HWStubIoBackend(HWStubDevice *dev);
virtual ~HWStubIoBackend();
@@ -310,6 +313,8 @@ public:
bool GetRegRef(const SocDevRef& dev, const QString& reg, SocRegRef& ref);
bool GetFieldRef(const SocRegRef& reg, const QString& field, SocFieldRef& ref);
bool GetRegisterAddress(const QString& dev, const QString& reg, soc_addr_t& addr);
+ bool DumpAllRegisters(const QString& filename);
+
private:
IoBackend *m_io_backend;
const SocRef& m_soc;