cvs commit: src/sys/dev/sbni if_sbni.c if_sbni_isa.c if_sbni_pci.c
if_sbnivar.h
John Baldwin
jhb at FreeBSD.org
Fri Jul 4 20:53:59 UTC 2008
jhb 2008-07-04 20:53:41 UTC
FreeBSD src repository
Modified files:
sys/dev/sbni if_sbni.c if_sbni_isa.c if_sbni_pci.c
if_sbnivar.h
Log:
SVN rev 180263 on 2008-07-04 20:53:41Z by jhb
Make sbni(4) MPSAFE:
- Add a mutex to the softc and use it to protect the softc and device
hardware.
- Setup interrupt handler after attaching device to network stack.
- Use device_set_desc() rather than device_quiet() plus a manual printf
that simulates the normal probe printf.
- Axe next_sbni_unit and instead just leave room for two sbni devices for
each bus attachment.
- Don't bzero the already-zero'd softc.
- Add a detach method to the PCI driver.
- Add a lock to protect the list of available devices used to chain
interrupt handlers for dual port ISA cards.
- Remove unused watchdog routine.
- If if_alloc() fails, make sbni_attach() return an error rather than
panic'ing.
- Consolidate code to free bus resources into sbni_release_resources().
- Clear IFF_DRV_RUNNING|OACTIVE in stop() routine instead of in callers.
- Let ether_ioctl() handle SIOCSIFMTU.
Revision Changes Path
1.25 +113 -61 src/sys/dev/sbni/if_sbni.c
1.16 +30 -32 src/sys/dev/sbni/if_sbni_isa.c
1.13 +51 -27 src/sys/dev/sbni/if_sbni_pci.c
1.6 +11 -4 src/sys/dev/sbni/if_sbnivar.h
More information about the cvs-src
mailing list