decode: update with latest QMI enums

Since QC stopped distributing the database files, we can't easily
decode the TLV names unless we start parsing the C headers.
This commit is contained in:
Dan Williams
2012-06-22 12:06:08 -05:00
parent ab5e9a49cf
commit 16d85f7b33
4 changed files with 222 additions and 7 deletions

View File

@@ -32,6 +32,7 @@ URBF_CONTROL = 6
URBF_SET_FEATURE = 7
URBF_ABORT_PIPE = 8
URBF_CLASS_IFACE = 9
URBF_CLEAR_FEATURE = 10
funcs = {
"-- URB_FUNCTION_GET_DESCRIPTOR_FROM_DEVICE:": (URBF_GET_DESC, False, None),
@@ -42,7 +43,8 @@ funcs = {
"-- URB_FUNCTION_CONTROL_TRANSFER:": (URBF_CONTROL, True, "C"),
"-- URB_FUNCTION_SET_FEATURE_TO_DEVICE:": (URBF_SET_FEATURE, False, None),
"-- URB_FUNCTION_ABORT_PIPE:": (URBF_SET_FEATURE, False, None),
"-- URB_FUNCTION_CLASS_INTERFACE:": (URBF_CLASS_IFACE, False, None)
"-- URB_FUNCTION_CLASS_INTERFACE:": (URBF_CLASS_IFACE, False, None),
"-- URB_FUNCTION_CLEAR_FEATURE_TO_DEVICE:": (URBF_CLEAR_FEATURE, False, None)
}
def get_urb_info(l):