Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/usb Make USB_FRAG_DMA_WORKAROUND compile
details: https://anonhg.NetBSD.org/src/rev/773e9f7674c2
branches: trunk
changeset: 815111:773e9f7674c2
user: skrll <skrll%NetBSD.org@localhost>
date: Sat Apr 30 14:31:39 2016 +0000
description:
Make USB_FRAG_DMA_WORKAROUND compile
diffstat:
sys/dev/usb/usb_mem.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r d6d67d675a0e -r 773e9f7674c2 sys/dev/usb/usb_mem.c
--- a/sys/dev/usb/usb_mem.c Sat Apr 30 13:12:13 2016 +0000
+++ b/sys/dev/usb/usb_mem.c Sat Apr 30 14:31:39 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: usb_mem.c,v 1.67 2016/04/23 10:15:32 skrll Exp $ */
+/* $NetBSD: usb_mem.c,v 1.68 2016/04/30 14:31:39 skrll Exp $ */
/*
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -38,7 +38,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: usb_mem.c,v 1.67 2016/04/23 10:15:32 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: usb_mem.c,v 1.68 2016/04/30 14:31:39 skrll Exp $");
#ifdef _KERNEL_OPT
#include "opt_usb.h"
@@ -336,7 +336,7 @@
p->udma_block = f->ufd_block;
p->udma_offs = f->ufd_offs;
#ifdef USB_FRAG_DMA_WORKAROUND
- p->offs += USB_MEM_SMALL;
+ p->udma_offs += USB_MEM_SMALL;
#endif
LIST_REMOVE(f, ufd_next);
mutex_exit(&usb_blk_lock);
@@ -373,7 +373,7 @@
f->ufd_block = p->udma_block;
f->ufd_offs = p->udma_offs;
#ifdef USB_FRAG_DMA_WORKAROUND
- f->offs -= USB_MEM_SMALL;
+ f->ufd_offs -= USB_MEM_SMALL;
#endif
LIST_INSERT_HEAD(&usb_frag_freelist, f, ufd_next);
mutex_exit(&usb_blk_lock);
Home |
Main Index |
Thread Index |
Old Index