svn commit: r219052 - stable/7/sys/compat/ndis

Bruce Cran brucec at FreeBSD.org
Sat Feb 26 11:52:35 UTC 2011


Author: brucec
Date: Sat Feb 26 11:52:34 2011
New Revision: 219052
URL: http://svn.freebsd.org/changeset/base/219052

Log:
  MFC r218985:
  
  Use the cprd_mem field when setting the start and length for a memory
  resource - the layout of cprd_port is identical but using cprd_mem
  makes the code easier to understand.
  
  PR:           kern/118493
  Submitted by: Weongyo Jeong <weongyo.jeong at gmail.com>

Modified:
  stable/7/sys/compat/ndis/kern_ndis.c
Directory Properties:
  stable/7/sys/   (props changed)
  stable/7/sys/cddl/contrib/opensolaris/   (props changed)
  stable/7/sys/contrib/dev/acpica/   (props changed)
  stable/7/sys/contrib/pf/   (props changed)

Modified: stable/7/sys/compat/ndis/kern_ndis.c
==============================================================================
--- stable/7/sys/compat/ndis/kern_ndis.c	Sat Feb 26 11:46:06 2011	(r219051)
+++ stable/7/sys/compat/ndis/kern_ndis.c	Sat Feb 26 11:52:34 2011	(r219052)
@@ -642,9 +642,9 @@ ndis_convert_res(arg)
 				    CM_RESOURCE_MEMORY_READ_WRITE;
 				prd->cprd_sharedisp =
 				    CmResourceShareDeviceExclusive;
-				prd->u.cprd_port.cprd_start.np_quad =
+				prd->u.cprd_mem.cprd_start.np_quad =
 				    brle->start;
-				prd->u.cprd_port.cprd_len = brle->count;
+				prd->u.cprd_mem.cprd_len = brle->count;
 				break;
 			case SYS_RES_IRQ:
 				prd->cprd_type = CmResourceTypeInterrupt;


More information about the svn-src-all mailing list