cvs commit: src/sys/compat/ndis kern_ndis.c

Bill Paul wpaul at FreeBSD.org
Thu Dec 11 21:28:00 PST 2003


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


More information about the cvs-src mailing list