Lines Matching +full:udma +full:- +full:c

1 /*-
3 Copyright (C) 2015 Annapurna Labs Ltd.
10 found at http://www.gnu.org/licenses/gpl-2.0.html
38 * @defgroup group_udma_interrupts UDMA I/O Fabric Interrupt Controller
40 * UDMA IOFIC API
44 * @brief C Header file for programming the interrupt controller that found
45 * in UDMA based units. These APIs rely and use some the Interrupt controller
56 /* *INDENT-OFF* */
58 extern "C" {
60 /* *INDENT-ON* */
69 AL_IOFIC_MODE_LEGACY, /**< level-sensitive interrupt wire */
70 AL_IOFIC_MODE_MSIX_PER_Q, /**< per UDMA queue MSI-X interrupt */
82 * interrupt controller of each bus-master unit in the I/O Fabric.
94 /* Group A bits which are just summary bits of GROUP B, C and D */
126 * Until this point, all description above is for Groups A/B/C/D in the PRIMARY
129 * two cause registers (group A and group B) that covers UDMA M2S/S2M errors.
169 * could indicate a software bug or hardware failure, unless the UDMA is
171 * used to configure the UDMA to ignore the Ring ID check)
286 /** PRE-UNACK packets buffer parity error */
305 * (between the application and the UDMA) when the interface is not in the
314 * (between the application and the UDMA) when the interface is in the middle
315 * of packet, meaning that there was a 'first' indication before and the UDMA
375 * indicate a software bug or hardware failure, unless the UDMA is working in a
377 * configure the UDMA to ignore the Ring ID check)
400 * UDMA behavior when it runs out of Rx Descriptor is controlled by driver
407 * current packet and the timeout expires. The S2M UDMA behavior when it runs
459 * Configure the UDMA interrupt controller registers, interrupts will are kept
462 * interrupt controller within a given UDMA, and should not be modified during
463 * runtime unless the UDMA is completely disabled. The first argument sets the
464 * interrupt and MSIX modes. The m2s/s2m errors/abort are a set of bit-wise
465 * masks to define the behaviour of the UDMA once an error happens: The _abort
466 * will put the UDMA in abort state once an error happens The _error bitmask
468 * The bit-mask that the _errors_disable and _aborts_disable are described in
472 * @param mode interrupt scheme mode (legacy, MSI-X..)
474 * This is a bit-wise mask, to indicate which one of the error causes in
479 * This is a bit-wise mask, to indicate which one of the error causes in
480 * secondary interrupt group_A should automatically put the UDMA in
484 * This is a bit-wise mask, to indicate which one of the error causes in
489 * This is a bit-wise mask, to indicate which one of the error causes in
490 * secondary interrupt group_A should automatically put the UDMA in
494 * @return 0 on success. -EINVAL otherwise.
507 * @param regs pointer to udma registers
521 * @param regs pointer to udma unit registers
532 (void __iomem *)&regs->gen.interrupt_regs.main_iofic : in al_udma_iofic_reg_base_get()
533 (void __iomem *)&regs->gen.interrupt_regs.secondary_iofic_ctrl; in al_udma_iofic_reg_base_get()
544 * @returns 0 - invalid, 1 - valid
562 * @param regs pointer to udma unit registers
582 * @param regs pointer to udma unit registers
600 * @param regs pointer to udma unit registers
616 * @param regs pointer to udma unit registers
632 /** @} end of UDMA group */