Date: Fri, 4 Jul 2008 20:53:41 +0000 (UTC) From: John Baldwin <jhb@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/dev/sbni if_sbni.c if_sbni_isa.c if_sbni_pci.c if_sbnivar.h Message-ID: <200807042053.m64Krwuj077486@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200807042053.m64Krwuj077486>