From owner-cvs-all@FreeBSD.ORG Thu Oct 6 18:28:02 2005 Return-Path: X-Original-To: cvs-all@FreeBSD.org Delivered-To: cvs-all@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DC27716A41F; Thu, 6 Oct 2005 18:28:02 +0000 (GMT) (envelope-from jhb@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 506C243D6B; Thu, 6 Oct 2005 18:28:00 +0000 (GMT) (envelope-from jhb@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id j96IRxda077254; Thu, 6 Oct 2005 18:27:59 GMT (envelope-from jhb@repoman.freebsd.org) Received: (from jhb@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j96IRx47077253; Thu, 6 Oct 2005 18:27:59 GMT (envelope-from jhb) Message-Id: <200510061827.j96IRx47077253@repoman.freebsd.org> From: John Baldwin Date: Thu, 6 Oct 2005 18:27:59 +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/vx if_vx.c if_vx_eisa.c if_vx_pci.c if_vxvar.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: Thu, 06 Oct 2005 18:28:03 -0000 jhb 2005-10-06 18:27:59 UTC FreeBSD src repository Modified files: sys/dev/vx if_vx.c if_vx_eisa.c if_vx_pci.c if_vxvar.h Log: Rototill vx(4), add locking, and mark MPSAFE: - Rename vxfoo() functions to vx_foo() to improve readability and consistency with other drivers. - Prefix most the softc members with 'vx_' (the other members already had the prefix). - Switch to using callout_init_mtx() and callout_*() rather than timeout() and untimeout(). - Add some missing calls to if_free() in some failure cases in vx_attach(). - Use if_printf() and remove the unit number from the softc. - Remove uses of the 'register' keyword and spls. - Add locked variants of vx_init() and vx_start(). - Add a mutex to the softc and lock it in various appropriate places. - Setup the interrupt handler last during attach. Tested by: imp MFC after: 1 week Revision Changes Path 1.59 +235 -190 src/sys/dev/vx/if_vx.c 1.25 +10 -9 src/sys/dev/vx/if_vx_eisa.c 1.35 +17 -12 src/sys/dev/vx/if_vx_pci.c 1.6 +25 -22 src/sys/dev/vx/if_vxvar.h