summaryrefslogtreecommitdiffstats
path: root/utils/hwstub/lib/hwstub.h
AgeCommit message (Collapse)AuthorFilesLines
2016-04-08hwstub: rewrite and expand libraryAmaury Pouly1-70/+0
Rewrite the hwstub library in C++, with a clean and modular design. The library was designed from the ground up to be aware of multithreading issues and to handle memory allocation nicely with shared pointers. Compared to the original library, it brings the following major features: - support for JZ boot devices, it is very easy to add support for others - support for network transparent operations (through sockets): both tcp and unix domains are support Change-Id: I75899cb9c7aa938c17ede2bb3f468e7a55d625b4
2014-11-18hwstub/qeditor: add support for atomic read/writesMarcin Bukat1-1/+4
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-08hwstub: add support for jump/call in libraryAmaury Pouly1-0/+1
Change-Id: Ia57ca613609a5e89e41ff927d7fc137c6841046a
2014-09-07hwstub: library now check version on openAmaury Pouly1-1/+1
Change-Id: I672a882ad06780da93c1d811af2b28ff60d07469
2014-09-07hwstub: remove protocol to make it use its own interfaceAmaury Pouly1-0/+8
This way, hwstub can be implemented along with other usb features/interfaces. Change-Id: I7148cab845049cc0a8b8e740fa0d52d3a385eaed
2014-02-10utils/hwstub: completely rework the protocol, drop unused featuresAmaury Pouly1-18/+5
The protocol has evolved a lot during the 2.x.y lifetime, bringing more features which later got unused. This commit removes all the unused stuff and simplifies everything: - drop the feature mask: everything is mandatory or stalled on error - remove the info request and put all static information in standard USB descriptors which are part of the configuration descriptor (and can be retrieved using the standard GetDescriptor request). - remove the USB interface, we had only one anyway - remove all endpoint descriptors - remove the exit/atexit stuff, it never worked as intended anyway - update the hwstub library and make it able to handle any device - update the tools (mostly renaming and removing of code) Change-Id: I1872bba7f4177fc3891180e8f944aab88f5bde31
2013-07-16hwstub: enhance exit protocol and implement on stmpAmaury Pouly1-2/+3
Rename STOP command to EXIT, introduce ATEXIT, this gives better control over the exit of the stub. Add stmp implementation. Change-Id: I45442c8b88b9330d12ef439417ca5ffa1520477a
2013-06-13hwstub: major improvement in the stub and the toolsAmaury Pouly1-0/+70
Fix the stub in many way to correctly detect the STMP family and act upon that. Drop some unused commands and bump version. Rewrite the tool to allows scripting in lua and load the register description from an XML file using the regtools. Introduce a new tool to load and run code using the hwstub (either binary format or Rockbox additive scramble format). Also switch to an optimise version of the memcpy/move/set functions to correctly handle alignement issue (like writing a full word/half-word when possible for registers which is crucial) Change-Id: Id1d5cfe0b1b47e8b43900d32c5cd6eafae6414f6