diff options
Diffstat (limited to 'sys/contrib/octeon-sdk/cvmx-mgmt-port.c')
-rw-r--r-- | sys/contrib/octeon-sdk/cvmx-mgmt-port.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/contrib/octeon-sdk/cvmx-mgmt-port.c b/sys/contrib/octeon-sdk/cvmx-mgmt-port.c index d6f6c5d..759a8ce 100644 --- a/sys/contrib/octeon-sdk/cvmx-mgmt-port.c +++ b/sys/contrib/octeon-sdk/cvmx-mgmt-port.c @@ -116,12 +116,16 @@ CVMX_SHARED cvmx_mgmt_port_state_t *cvmx_mgmt_port_state_ptr = NULL; */ static int __cvmx_mgmt_port_num_ports(void) { +#if defined(OCTEON_VENDOR_GEFES) + return 0; /* none of the GEFES boards have mgmt ports */ +#else if (OCTEON_IS_MODEL(OCTEON_CN56XX) || OCTEON_IS_MODEL(OCTEON_CN68XX)) return 1; else if (OCTEON_IS_MODEL(OCTEON_CN52XX) || OCTEON_IS_MODEL(OCTEON_CN6XXX)) return 2; else return 0; +#endif } |