diff options
author | Amaury Pouly <amaury.pouly@gmail.com> | 2014-02-04 00:10:41 +0100 |
---|---|---|
committer | Amaury Pouly <amaury.pouly@gmail.com> | 2014-02-10 23:14:24 +0100 |
commit | c17d30f20466861a244c603665c580feb7758abf (patch) | |
tree | c5044f599f89d89de0b1419bd40e92211f8c8b8a /utils/hwstub/tools/init.lua | |
parent | 6d64111b3c2f772cfc3539bb13851f78d4b55870 (diff) | |
download | rockbox-c17d30f20466861a244c603665c580feb7758abf.tar.gz rockbox-c17d30f20466861a244c603665c580feb7758abf.zip |
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.lua | 18 |
1 files changed, 6 insertions, 12 deletions
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 | |||
79 | print(" id: " .. string.format("%#x (%s)", hwstub.dev.target.id, id_str)) | 79 | print(" id: " .. string.format("%#x (%s)", hwstub.dev.target.id, id_str)) |
80 | print(" name: " .. hwstub.dev.target.name) | 80 | print(" name: " .. hwstub.dev.target.name) |
81 | print(" layout") | 81 | print(" layout") |
82 | print(" on-chip ram") | 82 | print(" code: " .. string.format("%#x bytes @ %#x", |
83 | print(" code: " .. string.format("%#x bytes @ %#x", | 83 | hwstub.dev.layout.code.size, hwstub.dev.layout.code.start)) |
84 | hwstub.dev.layout.ocram.code.size, hwstub.dev.layout.ocram.code.start)) | 84 | print(" stack: " .. string.format("%#x bytes @ %#x", |
85 | print(" stack: " .. string.format("%#x bytes @ %#x", | 85 | hwstub.dev.layout.stack.size, hwstub.dev.layout.stack.start)) |
86 | hwstub.dev.layout.ocram.stack.size, hwstub.dev.layout.ocram.stack.start)) | 86 | print(" buffer: " .. string.format("%#x bytes @ %#x", |
87 | print(" buffer: " .. string.format("%#x bytes @ %#x", | 87 | hwstub.dev.layout.buffer.size, hwstub.dev.layout.buffer.start)) |
88 | hwstub.dev.layout.ocram.buffer.size, hwstub.dev.layout.ocram.buffer.start)) | ||
89 | print(" features"); | ||
90 | print(" log: " .. tostring(hwstub.dev.features.log)) | ||
91 | print(" mem: " .. tostring(hwstub.dev.features.mem)) | ||
92 | print(" call: " .. tostring(hwstub.dev.features.call)) | ||
93 | print(" jump: " .. tostring(hwstub.dev.features.jump)) | ||
94 | end | 88 | end |
95 | 89 | ||
96 | -- | 90 | -- |