Date: Thu, 2 May 2013 19:45:53 +0000 (UTC) From: Warner Losh <imp@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r250191 - head/sys/contrib/octeon-sdk Message-ID: <201305021945.r42JjrfX094437@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201305021945.r42JjrfX094437>