From c17d30f20466861a244c603665c580feb7758abf Mon Sep 17 00:00:00 2001 From: Amaury Pouly Date: Tue, 4 Feb 2014 00:10:41 +0100 Subject: 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 --- utils/hwstub/tools/init.lua | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) (limited to 'utils/hwstub/tools/init.lua') diff --git a/utils/hwstub/tools/init.lua b/utils/hwstub/tools/init.lua index 4c62de007f..3c60abf806 100644 --- a/utils/hwstub/tools/init.lua +++ b/utils/hwstub/tools/init.lua @@ -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 -- -- cgit v1.2.3