From owner-svn-src-all@FreeBSD.ORG Fri Apr 29 06:25:11 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E9769106564A; Fri, 29 Apr 2011 06:25:11 +0000 (UTC) (envelope-from adrian@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id D81B78FC0A; Fri, 29 Apr 2011 06:25:11 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p3T6PB5n086399; Fri, 29 Apr 2011 06:25:11 GMT (envelope-from adrian@svn.freebsd.org) Received: (from adrian@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p3T6PBPC086397; Fri, 29 Apr 2011 06:25:11 GMT (envelope-from adrian@svn.freebsd.org) Message-Id: <201104290625.p3T6PBPC086397@svn.freebsd.org> From: Adrian Chadd Date: Fri, 29 Apr 2011 06:25:11 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r221198 - head/sys/mips/atheros X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Apr 2011 06:25:12 -0000 Author: adrian Date: Fri Apr 29 06:25:11 2011 New Revision: 221198 URL: http://svn.freebsd.org/changeset/base/221198 Log: Tidy up the naming of the ip2 DDR flush routine, and add an inline accessor method (which is currently unused) in there. Modified: head/sys/mips/atheros/ar71xx_cpudef.h Modified: head/sys/mips/atheros/ar71xx_cpudef.h ============================================================================== --- head/sys/mips/atheros/ar71xx_cpudef.h Fri Apr 29 05:00:48 2011 (r221197) +++ head/sys/mips/atheros/ar71xx_cpudef.h Fri Apr 29 06:25:11 2011 (r221198) @@ -51,7 +51,7 @@ struct ar71xx_cpu_def { * This flush is done before the IRQ is handled to make * sure the driver correctly sees any memory updates. */ - void (* ar71xx_chip_irq_flush_ip2) (void); + void (* ar71xx_chip_ddr_flush_ip2) (void); /* * The USB peripheral init code is subtly different for * each chip. @@ -106,6 +106,11 @@ static inline void ar71xx_init_usb_perip ar71xx_cpu_ops->ar71xx_chip_init_usb_peripheral(); } +static inline void ar71xx_device_ddr_flush_ip2(void) +{ + ar71xx_cpu_ops->ar71xx_chip_ddr_flush_ip2(); +} + /* XXX shouldn't be here! */ extern uint32_t u_ar71xx_cpu_freq; extern uint32_t u_ar71xx_ahb_freq;