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
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to