diff options
Diffstat (limited to 'arch/mips/cavium-octeon/executive/cvmx-helper.c')
-rw-r--r-- | arch/mips/cavium-octeon/executive/cvmx-helper.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/arch/mips/cavium-octeon/executive/cvmx-helper.c b/arch/mips/cavium-octeon/executive/cvmx-helper.c index d63d20dfbfb0..8553ad5c72b6 100644 --- a/arch/mips/cavium-octeon/executive/cvmx-helper.c +++ b/arch/mips/cavium-octeon/executive/cvmx-helper.c | |||
@@ -67,7 +67,7 @@ void (*cvmx_override_pko_queue_priority) (int pko_port, | |||
67 | void (*cvmx_override_ipd_port_setup) (int ipd_port); | 67 | void (*cvmx_override_ipd_port_setup) (int ipd_port); |
68 | 68 | ||
69 | /* Port count per interface */ | 69 | /* Port count per interface */ |
70 | static int interface_port_count[4] = { 0, 0, 0, 0 }; | 70 | static int interface_port_count[5]; |
71 | 71 | ||
72 | /* Port last configured link info index by IPD/PKO port */ | 72 | /* Port last configured link info index by IPD/PKO port */ |
73 | static cvmx_helper_link_info_t | 73 | static cvmx_helper_link_info_t |
@@ -88,6 +88,7 @@ int cvmx_helper_get_number_of_interfaces(void) | |||
88 | else | 88 | else |
89 | return 3; | 89 | return 3; |
90 | } | 90 | } |
91 | EXPORT_SYMBOL_GPL(cvmx_helper_get_number_of_interfaces); | ||
91 | 92 | ||
92 | /** | 93 | /** |
93 | * Return the number of ports on an interface. Depending on the | 94 | * Return the number of ports on an interface. Depending on the |
@@ -102,6 +103,7 @@ int cvmx_helper_ports_on_interface(int interface) | |||
102 | { | 103 | { |
103 | return interface_port_count[interface]; | 104 | return interface_port_count[interface]; |
104 | } | 105 | } |
106 | EXPORT_SYMBOL_GPL(cvmx_helper_ports_on_interface); | ||
105 | 107 | ||
106 | /** | 108 | /** |
107 | * Get the operating mode of an interface. Depending on the Octeon | 109 | * Get the operating mode of an interface. Depending on the Octeon |
@@ -179,6 +181,7 @@ cvmx_helper_interface_mode_t cvmx_helper_interface_get_mode(int interface) | |||
179 | return CVMX_HELPER_INTERFACE_MODE_RGMII; | 181 | return CVMX_HELPER_INTERFACE_MODE_RGMII; |
180 | } | 182 | } |
181 | } | 183 | } |
184 | EXPORT_SYMBOL_GPL(cvmx_helper_interface_get_mode); | ||
182 | 185 | ||
183 | /** | 186 | /** |
184 | * Configure the IPD/PIP tagging and QoS options for a specific | 187 | * Configure the IPD/PIP tagging and QoS options for a specific |
@@ -825,6 +828,7 @@ int cvmx_helper_ipd_and_packet_input_enable(void) | |||
825 | __cvmx_helper_errata_fix_ipd_ptr_alignment(); | 828 | __cvmx_helper_errata_fix_ipd_ptr_alignment(); |
826 | return 0; | 829 | return 0; |
827 | } | 830 | } |
831 | EXPORT_SYMBOL_GPL(cvmx_helper_ipd_and_packet_input_enable); | ||
828 | 832 | ||
829 | /** | 833 | /** |
830 | * Initialize the PIP, IPD, and PKO hardware to support | 834 | * Initialize the PIP, IPD, and PKO hardware to support |
@@ -903,6 +907,7 @@ int cvmx_helper_initialize_packet_io_global(void) | |||
903 | #endif | 907 | #endif |
904 | return result; | 908 | return result; |
905 | } | 909 | } |
910 | EXPORT_SYMBOL_GPL(cvmx_helper_initialize_packet_io_global); | ||
906 | 911 | ||
907 | /** | 912 | /** |
908 | * Does core local initialization for packet io | 913 | * Does core local initialization for packet io |
@@ -947,6 +952,7 @@ cvmx_helper_link_info_t cvmx_helper_link_autoconf(int ipd_port) | |||
947 | */ | 952 | */ |
948 | return port_link_info[ipd_port]; | 953 | return port_link_info[ipd_port]; |
949 | } | 954 | } |
955 | EXPORT_SYMBOL_GPL(cvmx_helper_link_autoconf); | ||
950 | 956 | ||
951 | /** | 957 | /** |
952 | * Return the link state of an IPD/PKO port as returned by | 958 | * Return the link state of an IPD/PKO port as returned by |
@@ -1005,6 +1011,7 @@ cvmx_helper_link_info_t cvmx_helper_link_get(int ipd_port) | |||
1005 | } | 1011 | } |
1006 | return result; | 1012 | return result; |
1007 | } | 1013 | } |
1014 | EXPORT_SYMBOL_GPL(cvmx_helper_link_get); | ||
1008 | 1015 | ||
1009 | /** | 1016 | /** |
1010 | * Configure an IPD/PKO port for the specified link state. This | 1017 | * Configure an IPD/PKO port for the specified link state. This |
@@ -1060,6 +1067,7 @@ int cvmx_helper_link_set(int ipd_port, cvmx_helper_link_info_t link_info) | |||
1060 | port_link_info[ipd_port].u64 = link_info.u64; | 1067 | port_link_info[ipd_port].u64 = link_info.u64; |
1061 | return result; | 1068 | return result; |
1062 | } | 1069 | } |
1070 | EXPORT_SYMBOL_GPL(cvmx_helper_link_set); | ||
1063 | 1071 | ||
1064 | /** | 1072 | /** |
1065 | * Configure a port for internal and/or external loopback. Internal loopback | 1073 | * Configure a port for internal and/or external loopback. Internal loopback |