Lines Matching +full:ports +full:- +full:block +full:- +full:group +full:- +full:count

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
44 * - PKO indexes are no longer stored in the FAU. A large
45 * percentage of the FAU register block used to be tied up
47 * global named block.
48 * - The PKO <b>use_locking</b> parameter can now have a global
49 * effect. Since all application use the same named block,
52 * - PKO 3 word commands are now supported. Use
60 #include <asm/octeon/cvmx-fpa.h>
61 #include <asm/octeon/cvmx-pow.h>
62 #include <asm/octeon/cvmx-cmd-queue.h>
63 #include <asm/octeon/cvmx-pko-defs.h>
136 /* The ID of the device on the non-coherent bus */
148 * The output queue to send the packet to (0-127 are
176 * The size of the reg1 operation - could be 8, 16,
181 * The size of the reg0 operation - could be 8, 16,
192 * non-zero.
197 /* The register, subtract will be done if reg0 is non-zero */
222 * If ipoffp1 is non zero, (ipoffp1-1) is the number
265 /* CSR typedefs have been moved to cvmx-csr-*.h */
305 * allowed to be 1-8. A value of 8 get 8 times the traffic
353 * - CVMX_PKO_LOCK_NONE
354 * - PKO doesn't do any locking. It is the responsibility
357 * - CVMX_PKO_LOCK_ATOMIC_TAG
358 * - PKO performs an atomic tagswitch to insure exclusive
361 * - CVMX_PKO_LOCK_CMD_QUEUE
362 * - PKO uses the common command queue locks to insure
383 * this memory. The WQE pointer and group are only in cvmx_pko_send_packet_prepare()
388 * which these fake values can be used - this is not a in cvmx_pko_send_packet_prepare()
493 * Returns Core-specific output queue
508 CVMX_PKO_QUEUES_PER_PORT_INTERFACE0 + (port - in cvmx_pko_get_base_queue_per_core()
515 CVMX_PKO_QUEUES_PER_PORT_INTERFACE1 + (port - in cvmx_pko_get_base_queue_per_core()
523 4 * CVMX_PKO_QUEUES_PER_PORT_PCI + (port - in cvmx_pko_get_base_queue_per_core()
527 /* Given the limit on the number of ports we can map to in cvmx_pko_get_base_queue_per_core()
529 * divided among all cores), the remaining unmapped ports in cvmx_pko_get_base_queue_per_core()
588 status->packets = pko_mem_count0.s.count; in cvmx_pko_get_port_status()
590 pko_mem_count0.s.count = port_num; in cvmx_pko_get_port_status()
595 status->octets = pko_mem_count1.s.count; in cvmx_pko_get_port_status()
597 pko_mem_count1.s.count = port_num; in cvmx_pko_get_port_status()
606 status->doorbell = debug9.cn38xx.doorbell; in cvmx_pko_get_port_status()
612 status->doorbell = debug8.cn50xx.doorbell; in cvmx_pko_get_port_status()