From owner-svn-src-head@FreeBSD.ORG Sun Mar 16 08:39:46 2014 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 8DC8EAF3; Sun, 16 Mar 2014 08:39:46 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 79F62EDE; Sun, 16 Mar 2014 08:39:46 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s2G8dkjK059441; Sun, 16 Mar 2014 08:39:46 GMT (envelope-from adrian@svn.freebsd.org) Received: (from adrian@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s2G8dkD4059440; Sun, 16 Mar 2014 08:39:46 GMT (envelope-from adrian@svn.freebsd.org) Message-Id: <201403160839.s2G8dkD4059440@svn.freebsd.org> From: Adrian Chadd Date: Sun, 16 Mar 2014 08:39:46 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r263229 - head/sys/mips/atheros X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 16 Mar 2014 08:39:46 -0000 Author: adrian Date: Sun Mar 16 08:39:46 2014 New Revision: 263229 URL: http://svnweb.freebsd.org/changeset/base/263229 Log: The AR71xx has APB interrupts in the MISC registers from 0-7, later chips have more. So for now, let's allow more. We should teach the apb code to just reject interrupts that lie outside what the chip can do at runtime. Modified: head/sys/mips/atheros/apbvar.h Modified: head/sys/mips/atheros/apbvar.h ============================================================================== --- head/sys/mips/atheros/apbvar.h Sun Mar 16 08:38:31 2014 (r263228) +++ head/sys/mips/atheros/apbvar.h Sun Mar 16 08:39:46 2014 (r263229) @@ -23,21 +23,23 @@ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. + * + * $FreeBSD$ */ #ifndef _APBVAR_H_ #define _APBVAR_H_ #define APB_IRQ_BASE 0 -#define APB_IRQ_END 7 -#define APB_NIRQS 8 +#define APB_IRQ_END 31 +#define APB_NIRQS 32 struct apb_softc { struct rman apb_irq_rman; struct rman apb_mem_rman; /* IRQ events structs for child devices */ - struct intr_event *sc_eventstab[APB_NIRQS]; - mips_intrcnt_t sc_intr_counter[APB_NIRQS]; + struct intr_event *sc_eventstab[APB_NIRQS]; + mips_intrcnt_t sc_intr_counter[APB_NIRQS]; /* Resources and cookies for MIPS CPU INTs */ struct resource *sc_misc_irq; void *sc_misc_ih;