Module Name: src Committed By: pooka Date: Mon Sep 14 15:08:50 UTC 2015
Modified Files: src/sys/rump/dev/lib/libugenhc: ugenhc_dma.c Log Message: Note in comment why this "d"ma implementation is not in libusb. To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/sys/rump/dev/lib/libugenhc/ugenhc_dma.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/lib/libugenhc/ugenhc_dma.c diff -u src/sys/rump/dev/lib/libugenhc/ugenhc_dma.c:1.1 src/sys/rump/dev/lib/libugenhc/ugenhc_dma.c:1.2 --- src/sys/rump/dev/lib/libugenhc/ugenhc_dma.c:1.1 Thu Sep 19 17:55:22 2013 +++ src/sys/rump/dev/lib/libugenhc/ugenhc_dma.c Mon Sep 14 15:08:50 2015 @@ -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