Check if we support debug transfers before returning a pipe for debugging. We
only support UHCI for now. In case transfers aren't possible we therefore don't make PS/2 keyboards unusable in KDL. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30265 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -31,6 +31,10 @@ debug_get_pipe_for_id(int argc, char **argv)
|
|||||||
if (!object || (object->Type() & USB_OBJECT_PIPE) == 0)
|
if (!object || (object->Type() & USB_OBJECT_PIPE) == 0)
|
||||||
return 3;
|
return 3;
|
||||||
|
|
||||||
|
// check if we support debug transfers for this pipe (only on UHCI for now)
|
||||||
|
if (object->GetBusManager()->TypeName()[0] != 'u')
|
||||||
|
return 4;
|
||||||
|
|
||||||
set_debug_variable("_usbPipe", (uint64)object);
|
set_debug_variable("_usbPipe", (uint64)object);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user