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 some requests to the devi...
details: https://anonhg.NetBSD.org/src/rev/d5efec3a9d3e
branches: trunk
changeset: 747876:d5efec3a9d3e
user: pooka <pooka%NetBSD.org@localhost>
date: Sun Oct 04 10:44:31 2009 +0000
description:
Pass some requests to the device. Hi ho, required for rum.
diffstat:
sys/rump/dev/wip/librumpusbhc/rumpusbhc.c | 22 ++++++++++++++++++++--
1 files changed, 20 insertions(+), 2 deletions(-)
diffs (43 lines):
diff -r b57f8f358409 -r d5efec3a9d3e sys/rump/dev/wip/librumpusbhc/rumpusbhc.c
--- a/sys/rump/dev/wip/librumpusbhc/rumpusbhc.c Sun Oct 04 10:43:03 2009 +0000
+++ b/sys/rump/dev/wip/librumpusbhc/rumpusbhc.c Sun Oct 04 10:44:31 2009 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rumpusbhc.c,v 1.3 2009/10/03 20:46:49 pooka Exp $ */
+/* $NetBSD: rumpusbhc.c,v 1.4 2009/10/04 10:44:31 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.3 2009/10/03 20:46:49 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rumpusbhc.c,v 1.4 2009/10/04 10:44:31 pooka Exp $");
#include <sys/param.h>
#include <sys/bus.h>
@@ -472,6 +472,24 @@
totlen = 0;
break;
+ /*
+ * XXX: don't wildcard these yet. I want to better figure
+ * out what to trap here
+ */
+ case C(0x07, UT_READ_VENDOR_DEVICE):
+ case C(0x09, UT_READ_VENDOR_DEVICE):
+ {
+ struct usb_ctl_request ucr;
+
+ memcpy(&ucr.ucr_request, req, sizeof(ucr.ucr_request));
+ ucr.ucr_data = buf;
+ if (rumpuser_ioctl(sc->sc_ugenfd[UGEN_EPT_CTRL],
+ USB_DO_REQUEST, &ucr, &ru_error) == -1) {
+ panic("request failed");
+ }
+ }
+ break;
+
default:
panic("unhandled request");
break;
Home |
Main Index |
Thread Index |
Old Index