Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/rump/dev/wip/librumpusbhc * pass a few write requests th...
details: https://anonhg.NetBSD.org/src/rev/f1bb02adb15a
branches: trunk
changeset: 747883:f1bb02adb15a
user: pooka <pooka%NetBSD.org@localhost>
date: Sun Oct 04 17:46:58 2009 +0000
description:
* 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 ...)
diffstat:
sys/rump/dev/wip/librumpusbhc/rumpusbhc.c | 12 ++++++++++--
1 files changed, 10 insertions(+), 2 deletions(-)
diffs (40 lines):
diff -r f1c081af07e0 -r f1bb02adb15a sys/rump/dev/wip/librumpusbhc/rumpusbhc.c
--- a/sys/rump/dev/wip/librumpusbhc/rumpusbhc.c Sun Oct 04 17:40:34 2009 +0000
+++ b/sys/rump/dev/wip/librumpusbhc/rumpusbhc.c Sun Oct 04 17:46:58 2009 +0000
@@ -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);
Home |
Main Index |
Thread Index |
Old Index