svn commit: r250191 - head/sys/contrib/octeon-sdk

Warner Losh imp at FreeBSD.org
Thu May 2 19:45:54 UTC 2013


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


More information about the svn-src-all mailing list