Eine aufbereitete Darstellung der Quelle

 
     
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 

Benutzer

Quelle  k3-psil-am62a.c

  Sprache: C
 

// SPDX-License-Identifier: GPL-2.0
/*
 *  Copyright (C) 2022 Texas Instruments Incorporated - https://www.ti.com
 */


#include <linux/kernel.h>

#include "k3-psil-priv.h"

#define PSIL_PDMA_XY_TR(x)     \
 {       \
  .thread_id = x,     \
  .ep_config = {     \
   .ep_type = PSIL_EP_PDMA_XY,  \
   .mapped_channel_id = -1,  \
   .default_flow_id = -1,   \
  },      \
 }

#define PSIL_PDMA_XY_PKT(x)     \
 {       \
  .thread_id = x,     \
  .ep_config = {     \
   .ep_type = PSIL_EP_PDMA_XY,  \
   .mapped_channel_id = -1,  \
   .default_flow_id = -1,   \
   .pkt_mode = 1,    \
  },      \
 }

#define PSIL_ETHERNET(x, ch, flow_base, flow_cnt)  \
 {       \
  .thread_id = x,     \
  .ep_config = {     \
   .ep_type = PSIL_EP_NATIVE,  \
   .pkt_mode = 1,    \
   .needs_epib = 1,   \
   .psd_size = 16,    \
   .mapped_channel_id = ch,  \
   .flow_start = flow_base,  \
   .flow_num = flow_cnt,   \
   .default_flow_id = flow_base,  \
  },      \
 }

#define PSIL_SAUL(x, ch, flow_base, flow_cnt, default_flow, tx) \
 {       \
  .thread_id = x,     \
  .ep_config = {     \
   .ep_type = PSIL_EP_NATIVE,  \
   .pkt_mode = 1,    \
   .needs_epib = 1,   \
   .psd_size = 64,    \
   .mapped_channel_id = ch,  \
   .flow_start = flow_base,  \
   .flow_num = flow_cnt,   \
   .default_flow_id = default_flow, \
   .notdpkt = tx,    \
  },      \
 }

#define PSIL_PDMA_MCASP(x)    \
 {      \
  .thread_id = x,    \
  .ep_config = {    \
   .ep_type = PSIL_EP_PDMA_XY, \
   .pdma_acc32 = 1,  \
   .pdma_burst = 1,  \
  },     \
 }

#define PSIL_CSI2RX(x)     \
 {      \
  .thread_id = x,    \
  .ep_config = {    \
   .ep_type = PSIL_EP_NATIVE, \
  },     \
 }

/* PSI-L source thread IDs, used for RX (DMA_DEV_TO_MEM) */
static struct psil_ep am62a_src_ep_map[] = {
 /* SAUL */
 PSIL_SAUL(0x7504, 20358350),
 PSIL_SAUL(0x7505, 21358360),
 PSIL_SAUL(0x7506, 22438430),
 PSIL_SAUL(0x7507, 23438440),
 /* PDMA_MAIN0 - SPI0-2 */
 PSIL_PDMA_XY_PKT(0x4300),
 PSIL_PDMA_XY_PKT(0x4301),
 PSIL_PDMA_XY_PKT(0x4302),
 PSIL_PDMA_XY_PKT(0x4303),
 PSIL_PDMA_XY_PKT(0x4304),
 PSIL_PDMA_XY_PKT(0x4305),
 PSIL_PDMA_XY_PKT(0x4306),
 PSIL_PDMA_XY_PKT(0x4307),
 PSIL_PDMA_XY_PKT(0x4308),
 PSIL_PDMA_XY_PKT(0x4309),
 PSIL_PDMA_XY_PKT(0x430a),
 PSIL_PDMA_XY_PKT(0x430b),
 /* PDMA_MAIN1 - UART0-6 */
 PSIL_PDMA_XY_PKT(0x4400),
 PSIL_PDMA_XY_PKT(0x4401),
 PSIL_PDMA_XY_PKT(0x4402),
 PSIL_PDMA_XY_PKT(0x4403),
 PSIL_PDMA_XY_PKT(0x4404),
 PSIL_PDMA_XY_PKT(0x4405),
 PSIL_PDMA_XY_PKT(0x4406),
 /* PDMA_MAIN2 - MCASP0-2 */
 PSIL_PDMA_MCASP(0x4500),
 PSIL_PDMA_MCASP(0x4501),
 PSIL_PDMA_MCASP(0x4502),
 /* CPSW3G */
 PSIL_ETHERNET(0x4600, 191916),
 /* CSI2RX */
 PSIL_CSI2RX(0x5000),
 PSIL_CSI2RX(0x5001),
 PSIL_CSI2RX(0x5002),
 PSIL_CSI2RX(0x5003),
 PSIL_CSI2RX(0x5004),
 PSIL_CSI2RX(0x5005),
 PSIL_CSI2RX(0x5006),
 PSIL_CSI2RX(0x5007),
 PSIL_CSI2RX(0x5008),
 PSIL_CSI2RX(0x5009),
 PSIL_CSI2RX(0x500a),
 PSIL_CSI2RX(0x500b),
 PSIL_CSI2RX(0x500c),
 PSIL_CSI2RX(0x500d),
 PSIL_CSI2RX(0x500e),
 PSIL_CSI2RX(0x500f),
 PSIL_CSI2RX(0x5010),
 PSIL_CSI2RX(0x5011),
 PSIL_CSI2RX(0x5012),
 PSIL_CSI2RX(0x5013),
 PSIL_CSI2RX(0x5014),
 PSIL_CSI2RX(0x5015),
 PSIL_CSI2RX(0x5016),
 PSIL_CSI2RX(0x5017),
 PSIL_CSI2RX(0x5018),
 PSIL_CSI2RX(0x5019),
 PSIL_CSI2RX(0x501a),
 PSIL_CSI2RX(0x501b),
 PSIL_CSI2RX(0x501c),
 PSIL_CSI2RX(0x501d),
 PSIL_CSI2RX(0x501e),
 PSIL_CSI2RX(0x501f),
};

/* PSI-L destination thread IDs, used for TX (DMA_MEM_TO_DEV) */
static struct psil_ep am62a_dst_ep_map[] = {
 /* SAUL */
 PSIL_SAUL(0xf500, 27838831),
 PSIL_SAUL(0xf501, 28918911),
 /* PDMA_MAIN0 - SPI0-2 */
 PSIL_PDMA_XY_PKT(0xc300),
 PSIL_PDMA_XY_PKT(0xc301),
 PSIL_PDMA_XY_PKT(0xc302),
 PSIL_PDMA_XY_PKT(0xc303),
 PSIL_PDMA_XY_PKT(0xc304),
 PSIL_PDMA_XY_PKT(0xc305),
 PSIL_PDMA_XY_PKT(0xc306),
 PSIL_PDMA_XY_PKT(0xc307),
 PSIL_PDMA_XY_PKT(0xc308),
 PSIL_PDMA_XY_PKT(0xc309),
 PSIL_PDMA_XY_PKT(0xc30a),
 PSIL_PDMA_XY_PKT(0xc30b),
 /* PDMA_MAIN1 - UART0-6 */
 PSIL_PDMA_XY_PKT(0xc400),
 PSIL_PDMA_XY_PKT(0xc401),
 PSIL_PDMA_XY_PKT(0xc402),
 PSIL_PDMA_XY_PKT(0xc403),
 PSIL_PDMA_XY_PKT(0xc404),
 PSIL_PDMA_XY_PKT(0xc405),
 PSIL_PDMA_XY_PKT(0xc406),
 /* PDMA_MAIN2 - MCASP0-2 */
 PSIL_PDMA_MCASP(0xc500),
 PSIL_PDMA_MCASP(0xc501),
 PSIL_PDMA_MCASP(0xc502),
 /* CPSW3G */
 PSIL_ETHERNET(0xc600, 19198),
 PSIL_ETHERNET(0xc601, 20278),
 PSIL_ETHERNET(0xc602, 21358),
 PSIL_ETHERNET(0xc603, 22438),
 PSIL_ETHERNET(0xc604, 23518),
 PSIL_ETHERNET(0xc605, 24598),
 PSIL_ETHERNET(0xc606, 25678),
 PSIL_ETHERNET(0xc607, 26758),
};

struct psil_ep_map am62a_ep_map = {
 .name = "am62a",
 .src = am62a_src_ep_map,
 .src_count = ARRAY_SIZE(am62a_src_ep_map),
 .dst = am62a_dst_ep_map,
 .dst_count = ARRAY_SIZE(am62a_dst_ep_map),
};

Messung V0.5 in Prozent
C=96 H=95 G=95

¤ Dauer der Verarbeitung: 0.0 Sekunden  (vorverarbeitet am  2026-06-08) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.






                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Open Source Software

     Quellcodebibliothek
     Eigene Quellcodes
     Fremde Quellcodes
     Suchen

Jenseits des Üblichen ....
    

Besucherstatistik

Besucherstatistik

Statistik
#Sources=277311
#Domains=752002