From owner-cvs-all@FreeBSD.ORG Fri Jul 4 20:53:58 2008 Return-Path: Delivered-To: cvs-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DB0E0106567A; Fri, 4 Jul 2008 20:53:58 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id C631E8FC12; Fri, 4 Jul 2008 20:53:58 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id m64Krwl4077487; Fri, 4 Jul 2008 20:53:58 GMT (envelope-from jhb@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.2/8.14.1/Submit) id m64Krwuj077486; Fri, 4 Jul 2008 20:53:58 GMT (envelope-from jhb@repoman.freebsd.org) Message-Id: <200807042053.m64Krwuj077486@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to jhb@repoman.freebsd.org using -f From: John Baldwin Date: Fri, 4 Jul 2008 20:53:41 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/sys/dev/sbni if_sbni.c if_sbni_isa.c if_sbni_pci.c if_sbnivar.h X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Jul 2008 20:53:59 -0000 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