summaryrefslogtreecommitdiffstats
path: root/utils/regtools/qeditor/backend.cpp
AgeCommit message (Collapse)AuthorFilesLines
2016-04-08qeditor: port to the new hwstub library and add featuresAmaury Pouly1-152/+401
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-132/+290
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-2/+2
Fix qeditor to use the old soc_desc_v1. Port hwstub_shell to the new description format. Change-Id: I9fefbff534bfaa5c3603bb3dd8307a2b76e88cfc
2014-12-15regtools/qeditor: fix backend dump bug, be more correct on readAmaury Pouly1-3/+4
Change-Id: I581c033435f553f092b61144c4b68b05ab931dd8 Reviewed-on: http://gerrit.rockbox.org/1019 Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
2014-12-15qeditor: rework register dump to be more general and flexibleAmaury Pouly1-5/+20
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-22/+38
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/+3
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-11-18hwstub/qeditor: add support for atomic read/writesMarcin Bukat1-2/+2
The current code assumed that READ/WRITE would produce atomic read/writes for 8/16/32-bit words, which in turned put assumption on the memcpy function. Since some memcpy implementation do not always guarantee such strong assumption, introduce two new operation READ/WRITE_ATOMIC which provide the necessary tools to do correct read and write to register in a single memory access. Change-Id: I37451bd5057bb0dcaf5a800d8aef8791c792a090
2014-09-19qeditor: initialise libusb once in a static ctorAmaury Pouly1-5/+18
Change-Id: Ic93def2b3633c498c9863b0dada3281853be8c6c Reviewed-on: http://gerrit.rockbox.org/973 Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
2014-09-07qeditor: use hwstub library function to identify devicesAmaury Pouly1-15/+8
The new protocol is interface based, so matching PID:VID is not sufficient Change-Id: I27983a9c3b7db01b8e63b41e885f86d09c362f60
2014-05-11qeditor: many enhancementAmaury Pouly1-3/+42
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/+14
Change-Id: I3b4fa625499aa66bb5617971445fa3c1c209134e
2014-05-01regtools: completely rework qeditor, improve soc desc library and toolsAmaury Pouly1-19/+48
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-13regtools/qeditor: fix crash when hwstub device fails to openAmaury Pouly1-0/+1
Change-Id: Ica2fd201f2ae8ee63b1ae81f27433c841d2f22cd
2014-02-12Fix redAmaury Pouly1-1/+4
Change-Id: Ib64eb3539e33d4336c298612b4508c4611b80c9e
2014-02-10regtools/qeditor: enhance backend write with write mode (SCT)Amaury Pouly1-5/+31
Change-Id: I723bce7a60fb08c1d1d5f894a225c36bc1ba4394
2014-02-10regtools/qeditor: prepare support for register writingAmaury Pouly1-0/+43
Change-Id: Ifef36a3ddb1604db63ec974da2d6a77a5540ff42
2014-02-10regtools/qeditor: rewrite soc handlingAmaury Pouly1-38/+35
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-10hwstub/regtools/qeditor: put soc descriptors in a list instead of a vectorAmaury Pouly1-5/+5
A SoC descriptor is not a small object: it can be as large as ~100KiB so it's better to avoid copying things over. Change-Id: I1ef862e1260299cdaa0c4d2822ac45968713498a
2014-02-10utils/regtools: make qeditor able to poke directly at a hwstub deviceAmaury Pouly1-27/+290
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/+156
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