Lines Matching +full:disabled +full:- +full:ports
7 * Copyright (c) 2003-2008 Cavium Networks
14 * AS-IS and WITHOUT ANY WARRANTY; without even the implied warranty
21 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
36 #include <asm/octeon/cvmx-config.h>
38 #include <asm/octeon/cvmx-fpa.h>
39 #include <asm/octeon/cvmx-pip.h>
40 #include <asm/octeon/cvmx-pko.h>
41 #include <asm/octeon/cvmx-ipd.h>
42 #include <asm/octeon/cvmx-spi.h>
43 #include <asm/octeon/cvmx-helper.h>
44 #include <asm/octeon/cvmx-helper-board.h>
46 #include <asm/octeon/cvmx-pip-defs.h>
47 #include <asm/octeon/cvmx-asxx-defs.h>
54 * may have multiple ports. Most chips support two interfaces,
80 * Return the number of ports on an interface. Depending on the
81 * chip and configuration, this can be 1-16. A value of 0
86 * Returns Number of ports on interface. Can be Zero.
104 /* QLM is disabled when QLM SPD is 15. */ in __cvmx_get_mode_cn68xx()
118 /* QLM is disabled when QLM SPD is 15. */ in __cvmx_get_mode_cn68xx()
130 /* QLM is disabled when QLM SPD is 15. */ in __cvmx_get_mode_cn68xx()
290 * DISABLED.
326 /* Interface 1 is always disabled on CN31XX and CN30XX */ in cvmx_helper_interface_get_mode()
368 * the defines in executive-config.h.
416 * the ports will be performed later.
425 /* These types don't support ports to IPD/PKO */ in cvmx_helper_interface_enumerate()
437 * functions refer to these ports as RGMII. in cvmx_helper_interface_enumerate()
445 * SPI4 can have 1-16 ports depending on the device at in cvmx_helper_interface_enumerate()
453 * SGMII can have 1-4 ports depending on how many are in cvmx_helper_interface_enumerate()
467 * Special loopback only ports. These are not the same in cvmx_helper_interface_enumerate()
468 * as other ports in loopback mode. in cvmx_helper_interface_enumerate()
489 * number of hardware ports connected to it. It doesn't setup the
490 * ports or enable them. The main goal here is to set the global
492 * ports will be performed later.
503 needed to determine port counts. Receive must still be disabled */ in cvmx_helper_interface_probe()
505 /* These types don't support ports to IPD/PKO */ in cvmx_helper_interface_probe()
515 * functions refer to these ports as RGMII. in cvmx_helper_interface_probe()
522 * SPI4 can have 1-16 ports depending on the device at in cvmx_helper_interface_probe()
529 * SGMII can have 1-4 ports depending on how many are in cvmx_helper_interface_probe()
541 * Special loopback only ports. These are not the same in cvmx_helper_interface_probe()
542 * as other ports in loopback mode. in cvmx_helper_interface_probe()
556 * Setup the IPD/PIP for the ports on an interface. Packet
558 * interface. The number of ports on the interface must already
570 while (num_ports--) { in __cvmx_helper_interface_setup_ipd()
600 * Setup the PKO for the ports on an interface. The number of
602 * is set here. PKO must be disabled when this function is called.
619 * the second half. With per-core PKO queues (PKO lockless in __cvmx_helper_interface_setup_pko()
626 * Setup the IPD/PIP and PKO for the ports discovered in __cvmx_helper_interface_setup_pko()
632 while (num_ports--) { in __cvmx_helper_interface_setup_pko()
716 * hardware ports. PKO should still be disabled to make sure packets
727 /* These types don't support ports to IPD/PKO */ in __cvmx_helper_packet_hardware_enable()
738 * functions refer to these ports as RGMII in __cvmx_helper_packet_hardware_enable()
745 * SPI4 can have 1-16 ports depending on the device at in __cvmx_helper_packet_hardware_enable()
752 * SGMII can have 1-4 ports depending on how many are in __cvmx_helper_packet_hardware_enable()
764 * Special loopback only ports. These are not the same in __cvmx_helper_packet_hardware_enable()
765 * as other ports in loopback mode in __cvmx_helper_packet_hardware_enable()
783 (CVMX_FPA_PACKET_POOL_SIZE-8-CVMX_HELPER_FIRST_MBUFF_SKIP) in __cvmx_helper_errata_fix_ipd_ptr_alignment()
785 (CVMX_FPA_PACKET_POOL_SIZE-8-CVMX_HELPER_NOT_FIRST_MBUFF_SKIP) in __cvmx_helper_errata_fix_ipd_ptr_alignment()
787 /* Ports 0-15 are interface 0, 16-31 are interface 1 */ in __cvmx_helper_errata_fix_ipd_ptr_alignment()
819 * Disable reception on all ports so if traffic is present it in __cvmx_helper_errata_fix_ipd_ptr_alignment()
832 num_segs = (2 + pkt_pcnt - wqe_pcnt) & 3; in __cvmx_helper_errata_fix_ipd_ptr_alignment()
841 ((num_segs - 1) * FIX_IPD_NON_FIRST_BUFF_PAYLOAD_BYTES) - in __cvmx_helper_errata_fix_ipd_ptr_alignment()
875 p64[2] = ((uint64_t) (size - 14) << 48) | 0x5ae740004000ull; in __cvmx_helper_errata_fix_ipd_ptr_alignment()
883 if (i == (num_segs - 1)) in __cvmx_helper_errata_fix_ipd_ptr_alignment()
912 INTERFACE(FIX_IPD_OUTPORT)), 65392 - 14 - 4); in __cvmx_helper_errata_fix_ipd_ptr_alignment()
915 INTERFACE(FIX_IPD_OUTPORT)), 65392 - 14 - 4); in __cvmx_helper_errata_fix_ipd_ptr_alignment()
930 retry_cnt--; in __cvmx_helper_errata_fix_ipd_ptr_alignment()
983 * Time to enable hardware ports packet input and output. Note in cvmx_helper_ipd_and_packet_input_enable()
985 * must be disabled in cvmx_helper_ipd_and_packet_input_enable()
998 && (cvmx_sysinfo_get()->board_type != CVMX_BOARD_TYPE_SIM)) in cvmx_helper_ipd_and_packet_input_enable()
1006 * simple priority based queues for the ethernet ports. Each
1011 * Returns Zero on success, non-zero on failure
1022 * be disabled. in cvmx_helper_initialize_packet_io_global()
1041 cvmx_dprintf("Interface %d has %d ports (%s)\n", in cvmx_helper_initialize_packet_io_global()
1099 WARN_ONCE(1, "Using deprecated link status - please update your DT"); in cvmx_helper_link_get()
1137 int result = -1; in cvmx_helper_link_set()
1142 return -1; in cvmx_helper_link_set()
1153 * functions refer to these ports as RGMII. in cvmx_helper_link_set()