summaryrefslogtreecommitdiffstats
path: root/sys/contrib
diff options
context:
space:
mode:
authorneel <neel@FreeBSD.org>2013-01-09 02:26:50 +0000
committerneel <neel@FreeBSD.org>2013-01-09 02:26:50 +0000
commit81ba473dd71550d4823c0578bcf7b6fe0a0d131b (patch)
treeebef40b2ced61af520e0db1721fc0ed8d32756a7 /sys/contrib
parent3690b68127142ebb2d5a307cb397988a0090adae (diff)
parentadbb26d90e65096c624bfb3266509b976ccca2da (diff)
downloadFreeBSD-src-81ba473dd71550d4823c0578bcf7b6fe0a0d131b.zip
FreeBSD-src-81ba473dd71550d4823c0578bcf7b6fe0a0d131b.tar.gz
IFC @ r245178
Diffstat (limited to 'sys/contrib')
-rw-r--r--sys/contrib/octeon-sdk/cvmx-app-init.h6
-rw-r--r--sys/contrib/octeon-sdk/cvmx-helper-board.c9
2 files changed, 15 insertions, 0 deletions
diff --git a/sys/contrib/octeon-sdk/cvmx-app-init.h b/sys/contrib/octeon-sdk/cvmx-app-init.h
index a986814..605f43e 100644
--- a/sys/contrib/octeon-sdk/cvmx-app-init.h
+++ b/sys/contrib/octeon-sdk/cvmx-app-init.h
@@ -299,6 +299,9 @@ enum cvmx_board_types_enum {
CVMX_BOARD_TYPE_CUST_LANNER_MR320= 20002,
CVMX_BOARD_TYPE_CUST_LANNER_MR321X=20007,
#endif
+#if defined(OCTEON_VENDOR_UBIQUITI)
+ CVMX_BOARD_TYPE_CUST_UBIQUITI_E100=20002,
+#endif
#if defined(OCTEON_VENDOR_RADISYS)
CVMX_BOARD_TYPE_CUST_RADISYS_RSYS4GBE=20002,
#endif
@@ -426,6 +429,9 @@ static inline const char *cvmx_board_type_to_string(enum cvmx_board_types_enum t
ENUM_BRD_TYPE_CASE(CVMX_BOARD_TYPE_CUST_LANNER_MR320)
ENUM_BRD_TYPE_CASE(CVMX_BOARD_TYPE_CUST_LANNER_MR321X)
#endif
+#if defined(OCTEON_VENDOR_UBIQUITI)
+ ENUM_BRD_TYPE_CASE(CVMX_BOARD_TYPE_CUST_UBIQUITI_E100)
+#endif
#if defined(OCTEON_VENDOR_RADISYS)
ENUM_BRD_TYPE_CASE(CVMX_BOARD_TYPE_CUST_RADISYS_RSYS4GBE)
#endif
diff --git a/sys/contrib/octeon-sdk/cvmx-helper-board.c b/sys/contrib/octeon-sdk/cvmx-helper-board.c
index deb6018..8d2b0bd 100644
--- a/sys/contrib/octeon-sdk/cvmx-helper-board.c
+++ b/sys/contrib/octeon-sdk/cvmx-helper-board.c
@@ -592,6 +592,12 @@ int cvmx_helper_board_get_mii_address(int ipd_port)
return -1;
}
#endif
+#if defined(OCTEON_VENDOR_UBIQUITI)
+ case CVMX_BOARD_TYPE_CUST_UBIQUITI_E100:
+ if (ipd_port > 2)
+ return -1;
+ return (7 - ipd_port);
+#endif
#if defined(OCTEON_VENDOR_RADISYS)
case CVMX_BOARD_TYPE_CUST_RADISYS_RSYS4GBE:
/* No MII. */
@@ -1463,6 +1469,9 @@ cvmx_helper_board_usb_clock_types_t __cvmx_helper_board_usb_get_clock_type(void)
case CVMX_BOARD_TYPE_CUST_LANNER_MR320:
case CVMX_BOARD_TYPE_CUST_LANNER_MR321X:
#endif
+#if defined(OCTEON_VENDOR_UBIQUITI)
+ case CVMX_BOARD_TYPE_CUST_UBIQUITI_E100:
+#endif
#if defined(OCTEON_BOARD_CAPK_0100ND)
case CVMX_BOARD_TYPE_CN3010_EVB_HS5:
#endif
OpenPOWER on IntegriCloud