Date: Thu, 11 Dec 2003 21:27:58 -0800 (PST) From: Bill Paul <wpaul@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/compat/ndis kern_ndis.c Message-ID: <200312120527.hBC5RwE3084077@repoman.freebsd.org>
index | next in thread | raw e-mail
wpaul 2003/12/11 21:27:58 PST
FreeBSD src repository
Modified files:
sys/compat/ndis kern_ndis.c
Log:
In NDIS 5.1 miniport drivers, the shutdown handler function pointer
is provided to NDIS via the the miniport characteristics structure
supplied in the call to NdisMRegisterMiniport(). But in NDIS 5.0
and earlier, you had to call NdisMRegisterAdapterShutdownHandler()
and supply both a function pointer and context pointer.
We try to handle both cases in ndis_shutdown_nic(). If the
driver registered a shutdown routine and a context,then used
that context, otherwise pass it the adapter context from
NdisMSetAttributesEx().
This fixes a panic on shutdown with the sample Intel 82559 e100bex.sys
driver from the Windows DDK.
function pointer
Revision Changes Path
1.2 +4 -1 src/sys/compat/ndis/kern_ndis.c
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200312120527.hBC5RwE3084077>
