summaryrefslogtreecommitdiffstats
path: root/utils/hwstub/lib/hwstub.c
AgeCommit message (Collapse)AuthorFilesLines
2016-04-08hwstub: remove the old libraryAmaury Pouly1-255/+0
Change-Id: I94d0f67cfd0d636407cd9cf3afbe0db4064de28e
2014-11-18hwstub/qeditor: add support for atomic read/writesMarcin Bukat1-8/+32
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-20/+15
Change-Id: Ia57ca613609a5e89e41ff927d7fc137c6841046a
2014-09-08hwstub: trivial changesAmaury Pouly1-1/+2
Change-Id: Iacb1721db1ae59d5f359d244fd68234915e611cf
2014-09-07hwstub: library now check version on openAmaury Pouly1-2/+13
Change-Id: I672a882ad06780da93c1d811af2b28ff60d07469
2014-09-07hwstub: fix library to actually work and compile, still miss some functionsAmaury Pouly1-3/+50
Change-Id: I968dafb4dca7d674165a43e3a435762fe38ed37f
2014-09-07hwstub: remove protocol to make it use its own interfaceAmaury Pouly1-31/+94
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-91/+30
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-10/+11
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/+174
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