Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/usb Fix DMAADDR():
details: https://anonhg.NetBSD.org/src/rev/4731284eb8a7
branches: trunk
changeset: 483559:4731284eb8a7
user: nathanw <nathanw%NetBSD.org@localhost>
date: Sun Mar 12 23:10:29 2000 +0000
description:
Fix DMAADDR():
Return the mapped address of the block, not the kernel address.
A uhci device now finds devices on my pc164.
diffstat:
sys/dev/usb/usb_mem.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r 37bed330a7f8 -r 4731284eb8a7 sys/dev/usb/usb_mem.h
--- a/sys/dev/usb/usb_mem.h Sun Mar 12 22:58:05 2000 +0000
+++ b/sys/dev/usb/usb_mem.h Sun Mar 12 23:10:29 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: usb_mem.h,v 1.11 1999/11/18 23:32:31 augustss Exp $ */
+/* $NetBSD: usb_mem.h,v 1.12 2000/03/12 23:10:29 nathanw Exp $ */
/* $FreeBSD: src/sys/dev/usb/usb_mem.h,v 1.9 1999/11/17 22:33:47 n_hibma Exp $ */
/*
@@ -51,7 +51,7 @@
LIST_ENTRY(usb_dma_block) next;
} usb_dma_block_t;
-#define DMAADDR(dma) ((dma)->block->segs[0].ds_addr + (dma)->offs)
+#define DMAADDR(dma) ((dma)->block->map->dm_segs[0].ds_addr + (dma)->offs)
#define KERNADDR(dma) ((void *)((dma)->block->kaddr + (dma)->offs))
usbd_status usb_allocmem __P((usbd_bus_handle,size_t,size_t, usb_dma_t *));
Home |
Main Index |
Thread Index |
Old Index