summaryrefslogtreecommitdiffstats
path: root/utils/regtools/qeditor/backend.h
AgeCommit message (Collapse)AuthorFilesLines
2016-04-08qeditor: port to the new hwstub library and add featuresAmaury Pouly1-41/+100
This commit adds support for the version of the hwstub library, which requires a lot of changes. It also adds some editing features, such as register access and much better editing of fields using the mouse (double click on a field to be able to resize and move it). Change-Id: I3c4e4cc855cb44911c72bc8127bad841b68efe52
2016-02-06regtoosl/qeditor: port to the new description formatAmaury Pouly1-135/+73
This big commit port qeditor from v1 to v2 register file format. Although the display code was much simplified, the edit code had to be rewritten. The new code also brings many improvement to the register display widget. The new code also compiles with both Qt4 and Qt5, although it is recommended to use Qt5 to get some improvements, especially in the layout of editor. Change-Id: I24633ac37a144f25d9e705b565654269ec9cfbd3
2015-09-11soc_desc: new version of the desc file formatAmaury Pouly1-1/+5
Fix qeditor to use the old soc_desc_v1. Port hwstub_shell to the new description format. Change-Id: I9fefbff534bfaa5c3603bb3dd8307a2b76e88cfc
2014-12-15qeditor: rework register dump to be more general and flexibleAmaury Pouly1-1/+5
Change-Id: I2fb7a2813c93f0804ed1ca6223625706d0dff9a5 Reviewed-on: http://gerrit.rockbox.org/998 Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
2014-12-15qeditor: introduce a new "RAM" backend, and refactor file backendAmaury Pouly1-9/+31
Change-Id: Icfbbc01b83d3592041803387e35f5aa6fb0fa813 Reviewed-on: http://gerrit.rockbox.org/997 Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
2014-12-15qeditor: backends can now report validity statusAmaury Pouly1-0/+6
Change-Id: Iefedc9cee10a8c7457d972e5a60d151a6cb38aa8 Reviewed-on: http://gerrit.rockbox.org/995 Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
2014-12-15qeditor: add copyrightAmaury Pouly1-0/+20
Change-Id: I7834bc09b21f2a2d84b1c9edbbe1188372809c63 Reviewed-on: http://gerrit.rockbox.org/983 Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
2014-09-19qeditor: rework modified indicator, register tab names depend on contentAmaury Pouly1-0/+2
Because Qt doesn't support QObject multiple inherance, it is a bit tricky to have a base class which interact with the UI. The register tab name now display: - file dump name (for dumps) - hwstub device path (for hwstub) And the register editor display the filename Change-Id: If2579992098c02627c67d560c824f1668e73bc45 Reviewed-on: http://gerrit.rockbox.org/979 Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
2014-05-11qeditor: many enhancementAmaury Pouly1-1/+6
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
2014-05-11regtools: make qeditor aware of PPAmaury Pouly1-0/+2
Change-Id: I3b4fa625499aa66bb5617971445fa3c1c209134e
2014-05-11qeditor: fix includeAmaury Pouly1-1/+1
Change-Id: Ie6013be29729267294c13fd4e86edad3904aa114
2014-05-01regtools: completely rework qeditor, improve soc desc library and toolsAmaury Pouly1-23/+56
The graphical editor can now display and editor description files. The library has been improved to provide more useful function. The XML format has been slightly changed: only one soc is allowed per file (this is was already de facto the case since <soc> was the root tag). Also introduce a DTD to validate the files. Change-Id: If70ba35b6dc0242bdb87411cf4baee9597798aac
2014-02-10regtools/qeditor: enhance backend write with write mode (SCT)Amaury Pouly1-12/+25
Change-Id: I723bce7a60fb08c1d1d5f894a225c36bc1ba4394
2014-02-10regtools/qeditor: prepare support for register writingAmaury Pouly1-0/+36
Change-Id: Ifef36a3ddb1604db63ec974da2d6a77a5540ff42
2014-02-10regtools/qeditor: rewrite soc handlingAmaury Pouly1-7/+61
The code was a mess with respect to soc handling: some code just plain copied the SoC descriptor which are big objects, some was using indexes. The new soc factor out everything in a few classes which hide these ugly details so that descriptors are never copied. Change-Id: I17af8b47f997a528b58221621389d42d24fded93
2014-02-10utils/regtools: make qeditor able to poke directly at a hwstub deviceAmaury Pouly1-5/+108
This commit add the very handy feature of being able to read registers directly from a device using hwstub. This is mostly trivial using the hwstub library and the biggest change here is actually: - being able to read registers by name and/or addresses - being able to enumerate devives The UI code currently doesn't handle hotplug but the backend does so it should be trivial to add in the future. It also opens up the possibility the write registers from hwstub or save the register values to a file. Since it relies on both hwstub and libusb, a switch has been introduced in qmake to disable it (use -config nohwstub). Change-Id: I5d7d7a2a7c97ecd7407227357c8553c2773ea6cc
2013-08-21regtools: add graphical register explorer + analyserAmaury Pouly1-0/+77
This tool allows one to explore any register map. Register dumps (like produced by hwstub tools) can be loaded and decoded by the tool. Finally some analysers are provided for specific soc analysis like clock tree and emi on imx233 for example. Change-Id: Iaf81bd52d15f3e44ab4fe9bc039153fcf60cf92a