Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 26 Feb 2011 11:52:34 +0000 (UTC)
From:      Bruce Cran <brucec@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-7@freebsd.org
Subject:   svn commit: r219052 - stable/7/sys/compat/ndis
Message-ID:  <201102261152.p1QBqYme070007@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201102261152.p1QBqYme070007>