Public Version
www.ti.com
IVA2.2 Subsystem Basic Programming Model
QCHMAP[1] = (QCHMAP[1] & ~(0x1FF<<5)) | 0x5<<5;
/* ---------------------------------------------------- */
/* Define DST parameter (0x3) to be trigger word of LCH */
/* ---------------------------------------------------- */
QCHMAP[1] = (QCHMAP[1] & ~( 0x7<<2)) | 0x3<<2;
In addition, the IDMA can be used to offload the CPU of the DMA configuration. See
,
Offloaded Configuration (Using IDMA).
5.4.4.6.5 Offloaded Configuration (Using IDMA)
The IVA2.2 allows quick programming of DMA transfers by offloading the CPU of most of the DMA
transfer issue time. To do so, the user typically maintains a copy of the logical channel contexts (PaRAM
entries) in L1D SRAM. A CPU update of a logical channel context is very fast in L1D SRAM. After
completing a logical channel context update, the CPU can page the context from L1D to DMA PaRAM
entries using another simple DMA, internal-to-DSP megamodule (IDMA). For example:
disable_interrupts();
while(IDMA0_STATUS & 0x3);// previous IDMA completion/*
------------------------------------------------------- */
/* Update of logical channels definition table in L1D */
/* ---------------------------------------------------- */
LCTable->OPT = opt;
LCTable->SRC = src;
LCTable->ACNT = num_bytes;
LCTable->BCNT = num_arrays;
LCTable->DST = dst;
LCTable->DSTBIDX = dbidx;
LCTable->SRCBIDX = sbidx;
LCTable->LINK = 0xFFFF;
LCTable->BCNTRLD = bcntrld;
LCTable->DSTCIDX = dcidx;
LCTable->SRCCIDX = scidx;
LCTable->CCNT = num_frames;
/* ---------------------------------------------------- */
/* initiate IDMA transfer */
/* ---------------------------------------------------- */
= &LCTable[0];
= &PaRAM[0];
= 0xFFFFFF00;
= 0x0;
enable_interrupts();
5.4.4.6.6 Direct Configuration to Transfer Channel (Not Recommended)
The registers of the physical channels are memory-mapped, primarily to enable, clear, and read status for
error interrupts generated by the physical channel. For more information, see
, Error
Identification Process.
763
SWPU177N – December 2009 – Revised November 2010
IVA2.2 Subsystem
Copyright © 2009–2010, Texas Instruments Incorporated
Содержание OMAP36 Series
Страница 174: ...174 List of Tables SWPU177N December 2009 Revised November 2010 Copyright 2009 2010 Texas Instruments Incorporated ...
Страница 692: ...692 MPU Subsystem SWPU177N December 2009 Revised November 2010 Copyright 2009 2010 Texas Instruments Incorporated ...
Страница 1084: ...1084 IVA2 2 Subsystem SWPU177N December 2009 Revised November 2010 Copyright 2009 2010 Texas Instruments Incorporated ...
Страница 1990: ...1990 2D 3D Graphics Accelerator SWPU177N December 2009 Revised November 2010 Copyright 2009 2010 Texas Instruments Incorporated ...
Страница 2334: ...2334 Memory Subsystem SWPU177N December 2009 Revised November 2010 Copyright 2009 2010 Texas Instruments Incorporated ...
Страница 2700: ...2700 Memory Management Units SWPU177N December 2009 Revised November 2010 Copyright 2009 2010 Texas Instruments Incorporated ...
Страница 2868: ...2868 HDQ 1 Wire SWPU177N December 2009 Revised November 2010 Copyright 2009 2010 Texas Instruments Incorporated ...
Страница 2974: ...2974 UART IrDA CIR SWPU177N December 2009 Revised November 2010 Copyright 2009 2010 Texas Instruments Incorporated ...
Страница 3054: ...3054 Multichannel SPI SWPU177N December 2009 Revised November 2010 Copyright 2009 2010 Texas Instruments Incorporated ...
Страница 3462: ...3462 MMC SD SDIO Card Interface SWPU177N December 2009 Revised November 2010 Copyright 2009 2010 Texas Instruments Incorporated ...
Страница 3508: ...3508 General Purpose Interface SWPU177N December 2009 Revised November 2010 Copyright 2009 2010 Texas Instruments Incorporated ...
Страница 3584: ...3584 Initialization SWPU177N December 2009 Revised November 2010 Copyright 2009 2010 Texas Instruments Incorporated ...
Страница 3648: ...3648 Debug and Emulation SWPU177N December 2009 Revised November 2010 Copyright 2009 2010 Texas Instruments Incorporated ...