freebsd-dev/sys/dev/snc
John Baldwin 9f9b77e713 Add locking to snc(4) so it is MPSAFE:
- Add a mutex to the softc to protect the softc and device hardware.
- Use a private timer routine to drive the transmit watchdog timer instead
  of using if_watchdog/if_timer.
- If if_alloc() fails during attach, fail the attach with an error rather
  than panic'ing.
- Clear RUNNING and OACTIVE only in sncstop().
- Don't mess with IFF_UP.
- Don't leak 'struct ifnet' on detach.
- Setup interrupt handler after ether_ifattach().
- Call ether_ifdetach() rather than if_detach() in the pccard detach
  routine.

Tested by:	no one despite repeated requests
2008-08-04 19:19:18 +00:00
..
dp83932.c Add locking to snc(4) so it is MPSAFE: 2008-08-04 19:19:18 +00:00
dp83932reg.h
dp83932subr.c Remove various and sundry NetBSDism's in preparation for adding locking. 2008-05-30 21:48:05 +00:00
dp83932subr.h
dp83932var.h Add locking to snc(4) so it is MPSAFE: 2008-08-04 19:19:18 +00:00
if_snc_cbus.c Add locking to snc(4) so it is MPSAFE: 2008-08-04 19:19:18 +00:00
if_snc_pccard.c Add locking to snc(4) so it is MPSAFE: 2008-08-04 19:19:18 +00:00
if_snc.c Add locking to snc(4) so it is MPSAFE: 2008-08-04 19:19:18 +00:00
if_sncreg.h Remove various and sundry NetBSDism's in preparation for adding locking. 2008-05-30 21:48:05 +00:00
if_sncvar.h