cvs commit: src/sys/compat/ndis kern_ndis.c src/sys/dev/if_ndis
if_ndis.c
Bill Paul
wpaul at FreeBSD.org
Mon Dec 29 15:52:00 PST 2003
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
<foo>" 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
More information about the cvs-src
mailing list