summaryrefslogtreecommitdiff
path: root/utils/hwstub/tools/init.lua
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2014-02-04 00:10:41 +0100
committerAmaury Pouly <amaury.pouly@gmail.com>2014-02-10 23:14:24 +0100
commitc17d30f20466861a244c603665c580feb7758abf (patch)
treec5044f599f89d89de0b1419bd40e92211f8c8b8a /utils/hwstub/tools/init.lua
parent6d64111b3c2f772cfc3539bb13851f78d4b55870 (diff)
downloadrockbox-c17d30f20466861a244c603665c580feb7758abf.zip
rockbox-c17d30f20466861a244c603665c580feb7758abf.tar.gz
rockbox-c17d30f20466861a244c603665c580feb7758abf.tar.bz2
rockbox-c17d30f20466861a244c603665c580feb7758abf.tar.xz
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
Diffstat (limited to 'utils/hwstub/tools/init.lua')
-rw-r--r--utils/hwstub/tools/init.lua18
1 files changed, 6 insertions, 12 deletions
diff --git a/utils/hwstub/tools/init.lua b/utils/hwstub/tools/init.lua
index 4c62de0..3c60abf 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
--