From owner-svn-src-all@FreeBSD.ORG Thu May 2 19:45:54 2013 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 43807171; Thu, 2 May 2013 19:45:54 +0000 (UTC) (envelope-from imp@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id 346D11292; Thu, 2 May 2013 19:45:54 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.6/8.14.6) with ESMTP id r42JjsMu094441; Thu, 2 May 2013 19:45:54 GMT (envelope-from imp@svn.freebsd.org) Received: (from imp@localhost) by svn.freebsd.org (8.14.6/8.14.5/Submit) id r42JjrfX094437; Thu, 2 May 2013 19:45:53 GMT (envelope-from imp@svn.freebsd.org) Message-Id: <201305021945.r42JjrfX094437@svn.freebsd.org> From: Warner Losh Date: Thu, 2 May 2013 19:45:53 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r250191 - head/sys/contrib/octeon-sdk X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.14 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: Thu, 02 May 2013 19:45:54 -0000 Author: imp Date: Thu May 2 19:45:53 2013 New Revision: 250191 URL: http://svnweb.freebsd.org/changeset/base/250191 Log: Expose cvmx_mgmt_port_num_ports() as a wrapper to the static __cvmx_mgmt_port_num_ports() mostly to avoid exporting a function starting with __. Modified: head/sys/contrib/octeon-sdk/cvmx-mgmt-port.c head/sys/contrib/octeon-sdk/cvmx-mgmt-port.h Modified: head/sys/contrib/octeon-sdk/cvmx-mgmt-port.c ============================================================================== --- head/sys/contrib/octeon-sdk/cvmx-mgmt-port.c Thu May 2 18:46:31 2013 (r250190) +++ head/sys/contrib/octeon-sdk/cvmx-mgmt-port.c Thu May 2 19:45:53 2013 (r250191) @@ -126,6 +126,17 @@ static int __cvmx_mgmt_port_num_ports(vo /** + * Return the number of management ports supported on this board. + * + * @return Number of ports + */ +int cvmx_mgmt_port_num_ports(void) +{ + return __cvmx_mgmt_port_num_ports(); +} + + +/** * Called to initialize a management port for use. Multiple calls * to this function across applications is safe. * Modified: head/sys/contrib/octeon-sdk/cvmx-mgmt-port.h ============================================================================== --- head/sys/contrib/octeon-sdk/cvmx-mgmt-port.h Thu May 2 18:46:31 2013 (r250190) +++ head/sys/contrib/octeon-sdk/cvmx-mgmt-port.h Thu May 2 19:45:53 2013 (r250191) @@ -223,6 +223,13 @@ extern cvmx_helper_link_info_t cvmx_mgmt */ extern int cvmx_mgmt_port_link_set(int port, cvmx_helper_link_info_t link_info); +/** + * Return the number of management ports supported on this board. + * + * @return Number of ports + */ +extern int cvmx_mgmt_port_num_ports(void); + #ifdef __cplusplus } #endif