Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/rump/dev/lib/libugenhc Note in comment why this "d"ma im...
details: https://anonhg.NetBSD.org/src/rev/1bb667b9c427
branches: trunk
changeset: 340574:1bb667b9c427
user: pooka <pooka%NetBSD.org@localhost>
date: Mon Sep 14 15:08:50 2015 +0000
description:
Note in comment why this "d"ma implementation is not in libusb.
diffstat:
sys/rump/dev/lib/libugenhc/ugenhc_dma.c | 13 +++++++++++--
1 files changed, 11 insertions(+), 2 deletions(-)
diffs (27 lines):
diff -r 0c1f6d47b69a -r 1bb667b9c427 sys/rump/dev/lib/libugenhc/ugenhc_dma.c
--- a/sys/rump/dev/lib/libugenhc/ugenhc_dma.c Mon Sep 14 05:34:28 2015 +0000
+++ b/sys/rump/dev/lib/libugenhc/ugenhc_dma.c Mon Sep 14 15:08:50 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ugenhc_dma.c,v 1.1 2013/09/19 17:55:22 pooka Exp $ */
+/* $NetBSD: ugenhc_dma.c,v 1.2 2015/09/14 15:08:50 pooka Exp $ */
/*
* Copyright (c) 2009 Antti Kantee. All Rights Reserved.
@@ -34,7 +34,16 @@
#include <sys/bus.h>
/*
- * bus_dma(9) that works for USB drivers
+ * bus_dma(9) that works for USB drivers.
+ *
+ * So why is it here instead of in libusb? Well, first of all, it's
+ * actually a bus_dma implementation which works with ugenhc. Of course,
+ * ugenhc doesn't make any bus_dma calls itself, all of those calls come
+ * from the usb code. However, the USB component can be paired with other
+ * USB host controllers, such as {e,o,u}hci. Therefore, we keep the "D"MA
+ * code here.
+ *
+ * Note: this implementation requires a __HAVE_NEW_STYLE_BUS_H arch
*/
int
Home |
Main Index |
Thread Index |
Old Index