Home
last modified time | relevance | path

Searched +full:udma +full:- +full:c (Results 1 – 25 of 48) sorted by relevance

12

/freebsd/sys/contrib/alpine-hal/
H A Dal_hal_udma_debug.h1 /*-
3 Copyright (C) 2015 Annapurna Labs Ltd.
10 found at http://www.gnu.org/licenses/gpl-2.0.html
38 * @defgroup group_udma_debug UDMA Debug
40 * UDMA Debug
44 * @brief C Header file for the Universal DMA HAL driver for debug APIs
53 /* *INDENT-OFF* */
55 extern "C" {
57 /* *INDENT-ON* */
59 /* UDMA register print helper macros */
[all …]
H A Dal_hal_udma_debug.c1 /*-
3 Copyright (C) 2015 Annapurna Labs Ltd.
10 found at http://www.gnu.org/licenses/gpl-2.0.html
38 * @file al_hal_udma_debug.c
50 static void al_udma_regs_m2s_axi_print(struct al_udma *udma) in al_udma_regs_m2s_axi_print() argument
53 AL_UDMA_PRINT_REG(udma, " ", "\n", m2s, axi_m2s, comp_wr_cfg_1); in al_udma_regs_m2s_axi_print()
54 AL_UDMA_PRINT_REG(udma, " ", "\n", m2s, axi_m2s, comp_wr_cfg_2); in al_udma_regs_m2s_axi_print()
55 AL_UDMA_PRINT_REG(udma, " ", "\n", m2s, axi_m2s, data_rd_cfg_1); in al_udma_regs_m2s_axi_print()
56 AL_UDMA_PRINT_REG(udma, " ", "\n", m2s, axi_m2s, data_rd_cfg_2); in al_udma_regs_m2s_axi_print()
57 AL_UDMA_PRINT_REG(udma, " ", "\n", m2s, axi_m2s, desc_rd_cfg_1); in al_udma_regs_m2s_axi_print()
[all …]
H A Dal_hal_udma_config.h2 Copyright (C) 2015 Annapurna Labs Ltd.
9 found at http://www.gnu.org/licenses/gpl-2.0.html
37 * @defgroup group_udma_config UDMA Config
39 * UDMA Config API
43 * @brief C Header file for the Universal DMA HAL driver for configuration APIs
53 /* *INDENT-OFF* */
55 extern "C" {
57 /* *INDENT-ON* */
77 /** UDMA AXI M2S configuration */
89 /** UDMA AXI M2S configuration */
[all …]
H A Dal_hal_udma_main.c1 /*-
3 Copyright (C) 2015 Annapurna Labs Ltd.
10 found at http://www.gnu.org/licenses/gpl-2.0.html
39 * @file al_hal_udma_main.c
71 static void al_udma_set_defaults(struct al_udma *udma) in al_udma_set_defaults() argument
73 uint8_t rev_id = udma->rev_id; in al_udma_set_defaults()
75 if (udma->type == UDMA_TX) { in al_udma_set_defaults()
77 (struct unit_regs*)udma->udma_regs; in al_udma_set_defaults()
80 * This allows the UDMA to have 16 outstanding writes */ in al_udma_set_defaults()
82 al_reg_write32_masked(&tmp_unit_regs->m2s.m2s_rd.data_cfg, in al_udma_set_defaults()
[all …]
H A Dal_hal_udma.h1 /*-
3 Copyright (C) 2015 Annapurna Labs Ltd.
10 found at http://www.gnu.org/licenses/gpl-2.0.html
40 * UDMA API
44 * @defgroup group_udma_main UDMA Main
46 * UDMA main API
50 * @brief C Header file for the Universal DMA HAL driver
60 /* *INDENT-OFF* */
62 extern "C" {
64 /* *INDENT-ON* */
[all …]
H A Dal_hal_udma_config.c1 /*-
3 Copyright (C) 2015 Annapurna Labs Ltd.
10 found at http://www.gnu.org/licenses/gpl-2.0.html
38 * @file al_hal_udma_config.c
55 al_reg_write32(&axi_regs->cfg_1, axi->axi_timeout); in al_udma_axi_set()
57 reg = al_reg_read32(&axi_regs->cfg_2); in al_udma_axi_set()
59 reg |= axi->arb_promotion; in al_udma_axi_set()
60 al_reg_write32(&axi_regs->cfg_2, reg); in al_udma_axi_set()
62 reg = al_reg_read32(&axi_regs->endian_cfg); in al_udma_axi_set()
63 if (axi->swap_8_bytes == AL_TRUE) in al_udma_axi_set()
[all …]
H A Dal_hal_udma_iofic.h1 /*-
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* */
[all …]
H A Dal_hal_udma_regs.h1 /*-
3 Copyright (C) 2015 Annapurna Labs Ltd.
10 found at http://www.gnu.org/licenses/gpl-2.0.html
41 * @brief udma registers definition
57 extern "C" {
60 /** UDMA registers, either m2s or s2m */
68 uint32_t rsrvd0[(0x10000 - sizeof(struct udma_m2s_regs)) >> 2];
70 uint32_t rsrvd1[((0x1C000 - 0x10000) - sizeof(struct udma_s2m_regs)) >> 2];
74 /** UDMA submission and completion registers, M2S and S2M UDMAs have same stucture */
104 /** @} end of UDMA group */
H A Dal_hal_udma_iofic_regs.h1 /*-
3 Copyright (C) 2015 Annapurna Labs Ltd.
10 found at http://www.gnu.org/licenses/gpl-2.0.html
43 extern "C" {
46 /** This structure covers all interrupt registers of a given UDMA, which is
49 * application-specific engine attached to the UDMA, the interrupt summary
H A Dal_hal_udma_iofic.c1 /*-
3 Copyright (C) 2015 Annapurna Labs Ltd.
10 found at http://www.gnu.org/licenses/gpl-2.0.html
39 * @file al_hal_udma_iofic.c
107 return -EINVAL; in al_udma_main_iofic_config()
115 * configure the UDMA interrupt registers, interrupts are kept masked
125 rc = al_udma_main_iofic_config(&regs->gen.interrupt_regs.main_iofic, mode); in al_udma_iofic_config()
129 …al_iofic_unmask(&regs->gen.interrupt_regs.secondary_iofic_ctrl, AL_INT_GROUP_A, ~m2s_errors_disabl… in al_udma_iofic_config()
130 …al_iofic_abort_mask(&regs->gen.interrupt_regs.secondary_iofic_ctrl, AL_INT_GROUP_A, m2s_aborts_dis… in al_udma_iofic_config()
132 …al_iofic_unmask(&regs->gen.interrupt_regs.secondary_iofic_ctrl, AL_INT_GROUP_B, ~s2m_errors_disabl… in al_udma_iofic_config()
[all …]
/freebsd/sys/contrib/device-tree/Bindings/dma/ti/
H A Dk3-udma.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2 # Copyright (C) 2019 Texas Instruments Incorporated
5 ---
[all...]
H A Dk3-pktdma.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2 # Copyright (C) 2020 Texas Instruments Incorporated
5 ---
[all...]
H A Dk3-bcdma.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2 # Copyright (C) 2020 Texas Instruments Incorporated
5 ---
[all...]
/freebsd/sys/dev/ata/chipsets/
H A Data-ite.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
4 * Copyright (c) 1998 - 2008 Søren Schmidt <sos@FreeBSD.org>
48 #include <dev/ata/ata-all.h>
49 #include <dev/ata/ata-pci.h>
74 if (!(ctlr->chip = ata_match_chip(dev, ids))) in ata_ite_probe()
78 ctlr->chipinit = ata_ite_chipinit; in ata_ite_probe()
90 if (ctlr->chip->chipid == ATA_IT8213F) { in ata_ite_chipinit()
92 ctlr->channels = 1; in ata_ite_chipinit()
94 ctlr->setmode = ata_ite_8213_setmode; in ata_ite_chipinit()
[all …]
H A Data-acerlabs.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
4 * Copyright (c) 1998 - 2008 Søren Schmidt <sos@FreeBSD.org>
48 #include <dev/ata/ata-all.h>
49 #include <dev/ata/ata-pci.h>
92 if (!(ctlr->chip = ata_match_chip(dev, ids))) in ata_ali_probe()
96 ctlr->chipinit = ata_ali_chipinit; in ata_ali_probe()
97 ctlr->chipdeinit = ata_ali_chipdeinit; in ata_ali_probe()
111 switch (ctlr->chip->cfg2) { in ata_ali_chipinit()
113 ctlr->channels = ctlr->chip->cfg1; in ata_ali_chipinit()
[all …]
H A Data-ati.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
4 * Copyright (c) 1998 - 2008 Søren Schmidt <sos@FreeBSD.org>
48 #include <dev/ata/ata-all.h>
49 #include <dev/ata/ata-pci.h>
59 #define SII_MEMIO 1 /* must match ata_siliconimage.c's definition */
60 #define SII_BUG 0x04 /* must match ata_siliconimage.c's definition */
89 { ATA_AMD_HUDSON2, 0x00, ATI_PATA, 0, ATA_UDMA6, "Hudson-2" }, in ata_ati_probe()
90 { ATA_AMD_HUDSON2_S1, 0x00, ATI_AHCI, 0, ATA_SA300, "Hudson-2" }, in ata_ati_probe()
91 { ATA_AMD_HUDSON2_S2, 0x00, ATI_AHCI, 0, ATA_SA300, "Hudson-2" }, in ata_ati_probe()
[all …]
H A Data-serverworks.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
4 * Copyright (c) 1998 - 2008 Søren Schmidt <sos@FreeBSD.org>
48 #include <dev/ata/ata-all.h>
49 #include <dev/ata/ata-pci.h>
92 if (!(ctlr->chip = ata_match_chip(dev, ids))) in ata_serverworks_probe()
96 ctlr->chipinit = ata_serverworks_chipinit; in ata_serverworks_probe()
109 if (!(ATA_INL(ctlr->r_res2, 0x1f80) & (1 << ch->unit))) in ata_serverworks_status()
113 * We need to do a 4-byte read on the status reg before the values in ata_serverworks_status()
130 if (ctlr->chip->cfg1 == SWKS_MIO) { in ata_serverworks_chipinit()
[all …]
H A Data-cyrix.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
4 * Copyright (c) 1998 - 2008 Søren Schmidt <sos@FreeBSD.org>
48 #include <dev/ata/ata-all.h>
49 #include <dev/ata/ata-pci.h>
67 ctlr->chipinit = ata_cyrix_chipinit; in ata_cyrix_probe()
80 ctlr->ch_attach = ata_cyrix_ch_attach; in ata_cyrix_chipinit()
81 ctlr->setmode = ata_cyrix_setmode; in ata_cyrix_chipinit()
90 ch->dma.alignment = 16; in ata_cyrix_ch_attach()
91 ch->dma.max_iosize = 64 * DEV_BSIZE; in ata_cyrix_ch_attach()
[all …]
H A Data-amd.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
4 * Copyright (c) 1998 - 2008 Søren Schmidt <sos@FreeBSD.org>
48 #include <dev/ata/ata-all.h>
49 #include <dev/ata/ata-pci.h>
79 if (!(ctlr->chip = ata_match_chip(dev, ids))) in ata_amd_probe()
83 ctlr->chipinit = ata_amd_chipinit; in ata_amd_probe()
96 if (ctlr->chip->cfg1 & AMD_BUG) in ata_amd_chipinit()
101 ctlr->ch_attach = ata_amd_ch_attach; in ata_amd_chipinit()
102 ctlr->setmode = ata_amd_setmode; in ata_amd_chipinit()
[all …]
/freebsd/sys/contrib/alpine-hal/eth/
H A Dal_hal_eth.h1 /*-
3 Copyright (C) 2015 Annapurna Labs Ltd.
10 found at http://www.gnu.org/licenses/gpl-2.0.html
61 /* *INDENT-OFF* */
63 extern "C" {
65 /* *INDENT-ON* */
97 #define AL_ETH_TSO_MSS_MAX_VAL (AL_ETH_MAX_FRAME_LEN - 200)
194 * will be set according to inner packet when packet is tunneled, for non-tunneled
274 uint8_t prio_q_map[4][8]; /**< for each UDMA, defines the mapping between
279 * and 3 of UDMA 1 will be stopped when pause
[all …]
H A Dal_hal_eth_ec_regs.h1 /*-
3 Copyright (C) 2015 Annapurna Labs Ltd.
10 found at http://www.gnu.org/licenses/gpl-2.0.html
51 extern "C" {
214 /* [0x38] VLAN p-bits table address */
216 /* [0x3c] VLAN p-bits table data */
291 /* [0x0] Per UDMA default configuration */
364 /* [0x4] UDMA MAC SA information for spoofing */
366 /* [0x8] UDMA MAC SA information for spoofing */
468 /* [0x40] Mask of "pause_on" [7:0] for the UDMA stream inter ... */
[all …]
H A Dal_hal_eth_main.c1 /*-
3 Copyright (C) 2015 Annapurna Labs Ltd.
10 found at http://www.gnu.org/licenses/gpl-2.0.html
39 * @file al_hal_eth_main.c
98 /* tx Meta Descriptor defines - MacSec */
105 #define AL_ETH_TX_MACSEC_SECURED_PYLD_LEN_LSB_SHIFT 10 /* Secure Payload Length (0x3FFF for non-S…
348 * change and wait udma state
350 * @param dma the udma to change its state
364 al_warn("[%s] warn: failed to change state, error %d\n", dma->name, rc); in al_udma_state_set_wait()
376 if (count-- == 0) { in al_udma_state_set_wait()
[all …]
/freebsd/sys/dev/isci/scil/
H A Dscic_sds_stp_request.h1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause OR GPL-2.0
9 * Copyright(c) 2008 - 2011 Intel Corporation. All rights reserved.
22 * Foundation, Inc., 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
28 * Copyright(c) 2008 - 2011 Intel Corporation. All rights reserved.
58 extern "C" {
81 U32 udma; member
151 * @brief This enumeration depicts the various sub-states associated with
152 * a SATA/STP UDMA protocol operation.
165 * @brief This enumeration depicts the various sub-states associated with
[all …]
/freebsd/sys/powerpc/mpc85xx/
H A Dfsl_sata.h1 /*-
2 * Copyright (c) 1998 - 2008 Søren Schmidt <sos@FreeBSD.org>
3 * Copyright (c) 2009-2012 Alexander Motin <mav@FreeBSD.org>
4 * Copyright (c) 2015-2016 Justin Hibbits <jhibbits@FreeBSD.org>
54 #define ATA_E_ICRC 0x80 /* UDMA crc error */
/freebsd/sys/dev/al_eth/
H A Dal_eth.c1 /*-
2 * Copyright (c) 2015,2016 Annapurna Labs Ltd. and affiliates
120 #define AL_ETH_MAC_TABLE_DROP_IDX (AL_ETH_FWD_MAC_NUM - 1)
121 #define AL_ETH_MAC_TABLE_BROADCAST_IDX (AL_ETH_MAC_TABLE_DROP_IDX - 1)
175 #define AL_RX_LOCK_INIT(_sc) mtx_init(&((_sc)->if_rx_lock), "ALRXL", "ALRXL", MTX_DEF)
176 #define AL_RX_LOCK(_sc) mtx_lock(&((_sc)->if_rx_lock))
177 #define AL_RX_UNLOCK(_sc) mtx_unlock(&((_sc)->if_rx_lock))
231 /* flag for napi-like mbuf processing, controlled from sysctl */
291 CTLFLAG_RW, &napi, 0, "Use pseudo-napi mechanism"); in al_attach()
294 adapter->dev = dev; in al_attach()
[all …]

12