From owner-cvs-src@FreeBSD.ORG Mon Dec 29 15:52:00 2003 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7173916A4CE; Mon, 29 Dec 2003 15:52:00 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id A916F43D6A; Mon, 29 Dec 2003 15:51:59 -0800 (PST) (envelope-from wpaul@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.10/8.12.10) with ESMTP id hBTNpx0B040501; Mon, 29 Dec 2003 15:51:59 -0800 (PST) (envelope-from wpaul@repoman.freebsd.org) Received: (from wpaul@localhost) by repoman.freebsd.org (8.12.10/8.12.10/Submit) id hBTNpxCF040497; Mon, 29 Dec 2003 15:51:59 -0800 (PST) (envelope-from wpaul) Message-Id: <200312292351.hBTNpxCF040497@repoman.freebsd.org> From: Bill Paul Date: Mon, 29 Dec 2003 15:51:59 -0800 (PST) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/compat/ndis kern_ndis.c src/sys/dev/if_ndis if_ndis.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Dec 2003 23:52:00 -0000 wpaul 2003/12/29 15:51:59 PST FreeBSD src repository Modified files: sys/compat/ndis kern_ndis.c sys/dev/if_ndis if_ndis.c Log: Rework resource allocation. Replace the "feel around like a blind man" method with something a little more intelligent: use BUS_GET_RESOURCE_LIST() to run through all resources allocated to us and map them as needed. This way we know exactly what resources need to be mapped and what their RIDs are without having to guess. This simplifies both ndis_attach() and ndis_convert_res(), and eliminates the unfriendly "ndisX: couldn't map " messages that are sometimes emitted during driver load. Revision Changes Path 1.16 +31 -25 src/sys/compat/ndis/kern_ndis.c 1.16 +74 -60 src/sys/dev/if_ndis/if_ndis.c