diff options
author | imp <imp@FreeBSD.org> | 2013-05-02 19:45:53 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2013-05-02 19:45:53 +0000 |
commit | 4335f7f258f47aee00251d7bc0685cc4a165a071 (patch) | |
tree | 74c547d433be6ab15638f896030aa9175c89f0e1 /sys/contrib/octeon-sdk | |
parent | a0955c41eef25623e633239b577325a2117af246 (diff) | |
download | FreeBSD-src-4335f7f258f47aee00251d7bc0685cc4a165a071.zip FreeBSD-src-4335f7f258f47aee00251d7bc0685cc4a165a071.tar.gz |
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 __.
Diffstat (limited to 'sys/contrib/octeon-sdk')
-rw-r--r-- | sys/contrib/octeon-sdk/cvmx-mgmt-port.c | 11 | ||||
-rw-r--r-- | sys/contrib/octeon-sdk/cvmx-mgmt-port.h | 7 |
2 files changed, 18 insertions, 0 deletions
diff --git a/sys/contrib/octeon-sdk/cvmx-mgmt-port.c b/sys/contrib/octeon-sdk/cvmx-mgmt-port.c index 19e26c4..d6f6c5d 100644 --- a/sys/contrib/octeon-sdk/cvmx-mgmt-port.c +++ b/sys/contrib/octeon-sdk/cvmx-mgmt-port.c @@ -126,6 +126,17 @@ static int __cvmx_mgmt_port_num_ports(void) /** + * 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. * diff --git a/sys/contrib/octeon-sdk/cvmx-mgmt-port.h b/sys/contrib/octeon-sdk/cvmx-mgmt-port.h index 202c1dd..0d21580 100644 --- a/sys/contrib/octeon-sdk/cvmx-mgmt-port.h +++ b/sys/contrib/octeon-sdk/cvmx-mgmt-port.h @@ -223,6 +223,13 @@ extern cvmx_helper_link_info_t cvmx_mgmt_port_link_get(int port); */ 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 |