decode: handle another UsbSnoop URB function

This commit is contained in:
Dan Williams
2012-07-17 11:58:35 -05:00
parent 717977d0b5
commit f08c76f00c

View File

@@ -33,6 +33,7 @@ URBF_SET_FEATURE = 7
URBF_ABORT_PIPE = 8 URBF_ABORT_PIPE = 8
URBF_CLASS_IFACE = 9 URBF_CLASS_IFACE = 9
URBF_CLEAR_FEATURE = 10 URBF_CLEAR_FEATURE = 10
URBF_VENDOR_DEVICE = 11
funcs = { funcs = {
"-- URB_FUNCTION_GET_DESCRIPTOR_FROM_DEVICE:": (URBF_GET_DESC, False, None), "-- URB_FUNCTION_GET_DESCRIPTOR_FROM_DEVICE:": (URBF_GET_DESC, False, None),
@@ -44,7 +45,8 @@ funcs = {
"-- URB_FUNCTION_SET_FEATURE_TO_DEVICE:": (URBF_SET_FEATURE, False, None), "-- URB_FUNCTION_SET_FEATURE_TO_DEVICE:": (URBF_SET_FEATURE, False, None),
"-- URB_FUNCTION_ABORT_PIPE:": (URBF_SET_FEATURE, False, None), "-- URB_FUNCTION_ABORT_PIPE:": (URBF_SET_FEATURE, False, None),
"-- URB_FUNCTION_CLASS_INTERFACE:": (URBF_CLASS_IFACE, True, "C"), "-- URB_FUNCTION_CLASS_INTERFACE:": (URBF_CLASS_IFACE, True, "C"),
"-- URB_FUNCTION_CLEAR_FEATURE_TO_DEVICE:": (URBF_CLEAR_FEATURE, False, None) "-- URB_FUNCTION_CLEAR_FEATURE_TO_DEVICE:": (URBF_CLEAR_FEATURE, False, None),
"-- URB_FUNCTION_VENDOR_DEVICE:": (URBF_VENDOR_DEVICE, False, None)
} }
def get_urb_info(l): def get_urb_info(l):