Module Name: src
Committed By: pooka
Date: Sun Oct 4 17:46:58 UTC 2009
Modified Files:
src/sys/rump/dev/wip/librumpusbhc: rumpusbhc.c
Log Message:
* pass a few write requests through to the device.
* drop async transfer requests on the floor (no, this does not make
anything work, but it's the easiest way to prevent a receive pipe
transfer request from hanging everything. one tiny bugstep at a time ...)
To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/sys/rump/dev/wip/librumpusbhc/rumpusbhc.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/rump/dev/wip/librumpusbhc/rumpusbhc.c
diff -u src/sys/rump/dev/wip/librumpusbhc/rumpusbhc.c:1.4 src/sys/rump/dev/wip/librumpusbhc/rumpusbhc.c:1.5
--- src/sys/rump/dev/wip/librumpusbhc/rumpusbhc.c:1.4 Sun Oct 4 10:44:31 2009
+++ src/sys/rump/dev/wip/librumpusbhc/rumpusbhc.c Sun Oct 4 17:46:58 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: rumpusbhc.c,v 1.4 2009/10/04 10:44:31 pooka Exp $ */
+/* $NetBSD: rumpusbhc.c,v 1.5 2009/10/04 17:46:58 pooka Exp $ */
/*
* Copyright (c) 2009 Antti Kantee. All Rights Reserved.
@@ -61,7 +61,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rumpusbhc.c,v 1.4 2009/10/04 10:44:31 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rumpusbhc.c,v 1.5 2009/10/04 17:46:58 pooka Exp $");
#include <sys/param.h>
#include <sys/bus.h>
@@ -476,6 +476,8 @@
* XXX: don't wildcard these yet. I want to better figure
* out what to trap here
*/
+ case C(0x01, UT_WRITE_VENDOR_DEVICE):
+ case C(0x06, UT_WRITE_VENDOR_DEVICE):
case C(0x07, UT_READ_VENDOR_DEVICE):
case C(0x09, UT_READ_VENDOR_DEVICE):
{
@@ -650,6 +652,12 @@
{
usbd_status err;
+ /* XXX: lie about supporting async transfers */
+ if ((xfer->flags & USBD_SYNCHRONOUS) == 0) {
+ printf("rumpusbhc does not support async transfers. LIAR!\n");
+ return USBD_IN_PROGRESS;
+ }
+
err = usb_insert_transfer(xfer);
if (err)
return (err);