Lines Matching +full:gmii +full:- +full:to +full:- +full:sgmii +full:- +full:2
7 * Copyright (c) 2003-2008 Cavium Networks
10 * it under the terms of the GNU General Public License, Version 2, as
14 * AS-IS and WITHOUT ANY WARRANTY; without even the implied warranty
20 * along with this file; if not, write to the Free Software
21 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
35 #include <asm/octeon/cvmx-config.h>
37 #include <asm/octeon/cvmx-fpa.h>
38 #include <asm/octeon/cvmx-pip.h>
39 #include <asm/octeon/cvmx-pko.h>
40 #include <asm/octeon/cvmx-ipd.h>
41 #include <asm/octeon/cvmx-spi.h>
43 #include <asm/octeon/cvmx-helper.h>
44 #include <asm/octeon/cvmx-helper-util.h>
46 #include <asm/octeon/cvmx-ipd-defs.h>
51 * @mode: Mode to convert
64 return "GMII"; in cvmx_helper_interface_mode_to_string()
72 return "SGMII"; in cvmx_helper_interface_mode_to_string()
86 * @queue: Input queue to setup RED on (0-7)
101 /* Set RED to begin dropping packets when there are pass_thresh buffers in cvmx_helper_setup_red_queue()
112 (255ul << 24) / (red_marks.s.pass - red_marks.s.drop); in cvmx_helper_setup_red_queue()
121 * Setup Random Early Drop to automatically begin dropping packets.
144 for (interface = 0; interface < 2; interface++) { in cvmx_helper_setup_red()
172 * ports. These setting apply to almost all configurations of all
175 * @interface: Interface to configure
194 ** applies to *GMII and XAUI ports */ in __cvmx_helper_setup_gmx()
206 return -1; in __cvmx_helper_setup_gmx()
222 else if (num_ports == 2) in __cvmx_helper_setup_gmx()
225 pko_mode.s.mode0 = 2; in __cvmx_helper_setup_gmx()
233 else if (num_ports == 2) in __cvmx_helper_setup_gmx()
236 pko_mode.s.mode1 = 2; in __cvmx_helper_setup_gmx()
246 * Set GMX to buffer as much data as possible before starting in __cvmx_helper_setup_gmx()
248 * run due to memory contention. Any packet that fits entirely in __cvmx_helper_setup_gmx()
261 else if (num_ports == 2) in __cvmx_helper_setup_gmx()
262 gmx_tx_thresh.s.cnt = 0x100 / 2; in __cvmx_helper_setup_gmx()
283 * @interface: Interface to use
295 case 2: in cvmx_helper_get_ipd_port()
304 return -1; in cvmx_helper_get_ipd_port()
322 return 2; in cvmx_helper_get_interface_num()
333 return -1; in cvmx_helper_get_interface_num()
361 return -1; in cvmx_helper_get_interface_index_num()