Main Page Modules Alphabetical List Data Structures File List Data Fields Globals
IxDmaAccCodelet_p.h File ReferenceThis file contains some private data structures and defines for the Dma Access Codelet.
More...
Go to the source code of this file.
Detailed Description
This file contains some private data structures and defines for the Dma Access Codelet.
- Author:
- Intel Corporation
- Date:
- 18 November 2002
- Version:
- Revision
- 1.11
- -- Intel Copyright Notice --
- Copyright 2002-2003 Intel Corporation All Rights Reserved.
- The source code contained or described herein and all documents related to the source code ("Material") are owned by Intel Corporation or its suppliers or licensors. Title to the Material remains with Intel Corporation or its suppliers and licensors.
- The Material is protected by worldwide copyright and trade secret laws and treaty provisions. No part of the Material may be used, copied, reproduced, modified, published, uploaded, posted, transmitted, distributed, or disclosed in any way except in accordance with the applicable license agreement .
- No license under any patent, copyright, trade secret or other intellectual property right is granted to or conferred upon you by disclosure or delivery of the Materials, either expressly, by implication, inducement, estoppel, except in accordance with the applicable license agreement.
- Unless otherwise agreed by Intel in writing, you may not remove or alter this notice or any other notice embedded in Materials by Intel or Intel's suppliers or licensors in any way.
- For further details, please see the file README.TXT distributed with this software.
- -- End Intel Copyright Notice --
Definition in file IxDmaAccCodelet_p.h.
Define Documentation
#define IX_DMA_CODELET_MEMDUMPSIZE
|
|
#define IX_DMA_CODELET_MS_SLEEP
|
|
#define IX_DMA_CODELET_NPE_A_IMAGEID
|
|
#define IX_DMA_CODELET_NPE_B_IMAGEID
|
|
#define IX_DMA_CODELET_NPE_C_IMAGEID
|
|
#define IX_DMA_CODELET_QMR_PRIORITY
|
|
#define IX_DMA_CODELET_TEST_MAXLENGTH
|
|
#define IX_DMA_CODELET_TESTPATTERN_LIST
|
|
Function Documentation
IX_STATUS ixDmaAccCodeletInit |
( |
IxDmaNpeId |
npeId |
) |
|
|
|
This function is the entry point to the Dma Access codelet.
It must be called before any of the demos as it initialises the necessary components.
- Parameters:
-
npeID | Id for the Npe to setup for Dma function
- IX_DMA_NPEID_A for Npe A
- IX_DMA_NPEID_B for Npe B
- IX_DMA_NPEID_C for Npe C
The initialisation sequence is as follows: |
Initialise Queue manager Start Queue manager dispatcher loop Download NPE microcode Start NPEs Initialise Dma Access component
- Returns:
- IX_SUCCESS - Codelet successfully initialised
IX_FAIL - Error initialising codelet
|
|
This function performs a dma transfer with parameters provided by the client This function can only function after ixDmaAccCodeletInit is performed.
- Parameters:
-
transferLength | 1 to 65535 bytes |
transferMode |
- 0 = Copy
- 1 = Copy and Clear Source
- 2 = Copy and Byte Swap
- 3 = Copy and Reverse
|
addressMode |
- 0 = Increment Source Addr and Increment Destination Addr");
- 1 = Increment Source Addr and Fix Destination Addr");
- 2 = Fix Source Addr and Increment Destination Addr");
|
transferWidth | :
- 0 = 32 bit src, 32 bit dest
- 1 = 32 bit src, 16 bit dest
- 2 = 32 bit src, 8 bit dest
- 3 = 16 bit src, 32 bit dest
- 4 = 16 bit src, 16 bit dest
- 5 = 16 bit src, 8 bit dest
- 6 = 8 bit src, 32 bit dest
- 7 = 8 bit src, 16 bit dest
- 8 = 8 bit src, 8 bit dest
- 9 = 8 bit src, Burst dest
- 10 = 16 bit src, Burst dest
- 11 = 32 bit src, Burst dest
- 12 = Burst src, 8 bit dest
- 13 = Burst src, 16 bit dest
- 14 = Burst src, 32 bit dest
- 15 = Burst src, Burst dest
|
- Returns:
- none
|
|