svn commit: r212935 - user/weongyo/usb/sys/dev/usb

Weongyo Jeong weongyo at FreeBSD.org
Mon Sep 20 22:57:42 UTC 2010


Author: weongyo
Date: Mon Sep 20 22:57:42 2010
New Revision: 212935
URL: http://svn.freebsd.org/changeset/base/212935

Log:
  Changes the style of accessing DMA segments; no functional changes.

Modified:
  user/weongyo/usb/sys/dev/usb/usb_busdma.c

Modified: user/weongyo/usb/sys/dev/usb/usb_busdma.c
==============================================================================
--- user/weongyo/usb/sys/dev/usb/usb_busdma.c	Mon Sep 20 22:04:59 2010	(r212934)
+++ user/weongyo/usb/sys/dev/usb/usb_busdma.c	Mon Sep 20 22:57:42 2010	(r212935)
@@ -430,8 +430,8 @@ usb_pc_common_mem_cb(void *arg, bus_dma_
 	USB_ASSERT(nseg == 1, ("too many segments (%d)", nseg));
 
 	pg = pc->page_start;
-	pg->physaddr = segs->ds_addr & ~(USB_PAGE_SIZE - 1);
-	rem = segs->ds_addr & (USB_PAGE_SIZE - 1);
+	pg->physaddr = segs[0].ds_addr & ~(USB_PAGE_SIZE - 1);
+	rem = segs[0].ds_addr & (USB_PAGE_SIZE - 1);
 	pc->page_offset_buf = rem;
 	pc->page_offset_end += rem;
 #ifdef USB_DEBUG


More information about the svn-src-user mailing list