From owner-cvs-src@FreeBSD.ORG Sat Apr 19 06:51:26 2003 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D36C337B401; Sat, 19 Apr 2003 06:51:26 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id CAC4C43FA3; Sat, 19 Apr 2003 06:51:25 -0700 (PDT) (envelope-from mux@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id h3JDpP0U053241; Sat, 19 Apr 2003 06:51:25 -0700 (PDT) (envelope-from mux@repoman.freebsd.org) Received: (from mux@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h3JDpPdH053239; Sat, 19 Apr 2003 06:51:25 -0700 (PDT) Message-Id: <200304191351.h3JDpPdH053239@repoman.freebsd.org> From: Maxime Henrion Date: Sat, 19 Apr 2003 06:51:25 -0700 (PDT) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/dev/tx if_tx.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 Apr 2003 13:51:27 -0000 mux 2003/04/19 06:51:25 PDT FreeBSD src repository Modified files: sys/dev/tx if_tx.c Log: - Enable interrupts only at the end of epic_attach() when all the other initializations succeeded. - Initialize the TX and RX rings in epic_attach() rather than in epic_init() where we're not supposed to fail. Similarly, free the TX and RX rings in epic_detach() rather than in epic_stop(). - Change epic_init() to be a void function now that it can't fail. Also change its parameter to a void * so that we have a correct prototype for if_init. - Now that epic_init() has a correct prototype, don't cast the function pointer when initializing if_init. - Fix nearby style bugs. Revision Changes Path 1.69 +35 -39 src/sys/dev/tx/if_tx.c