forked from len0rd/rockbox
utils/hwstub: completely rework the protocol, drop unused features
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
This commit is contained in:
parent
6d64111b3c
commit
c17d30f204
10 changed files with 279 additions and 653 deletions
|
|
@ -79,18 +79,12 @@ if not hwstub.options.quiet then
|
|||
print(" id: " .. string.format("%#x (%s)", hwstub.dev.target.id, id_str))
|
||||
print(" name: " .. hwstub.dev.target.name)
|
||||
print(" layout")
|
||||
print(" on-chip ram")
|
||||
print(" code: " .. string.format("%#x bytes @ %#x",
|
||||
hwstub.dev.layout.ocram.code.size, hwstub.dev.layout.ocram.code.start))
|
||||
print(" stack: " .. string.format("%#x bytes @ %#x",
|
||||
hwstub.dev.layout.ocram.stack.size, hwstub.dev.layout.ocram.stack.start))
|
||||
print(" buffer: " .. string.format("%#x bytes @ %#x",
|
||||
hwstub.dev.layout.ocram.buffer.size, hwstub.dev.layout.ocram.buffer.start))
|
||||
print(" features");
|
||||
print(" log: " .. tostring(hwstub.dev.features.log))
|
||||
print(" mem: " .. tostring(hwstub.dev.features.mem))
|
||||
print(" call: " .. tostring(hwstub.dev.features.call))
|
||||
print(" jump: " .. tostring(hwstub.dev.features.jump))
|
||||
print(" code: " .. string.format("%#x bytes @ %#x",
|
||||
hwstub.dev.layout.code.size, hwstub.dev.layout.code.start))
|
||||
print(" stack: " .. string.format("%#x bytes @ %#x",
|
||||
hwstub.dev.layout.stack.size, hwstub.dev.layout.stack.start))
|
||||
print(" buffer: " .. string.format("%#x bytes @ %#x",
|
||||
hwstub.dev.layout.buffer.size, hwstub.dev.layout.buffer.start))
|
||||
end
|
||||
|
||||
--
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue