ires_sdma.h

Go to the documentation of this file.
00001 /* 
00002  * Copyright (c) 2012, Texas Instruments Incorporated
00003  * All rights reserved.
00004  *
00005  * Redistribution and use in source and binary forms, with or without
00006  * modification, are permitted provided that the following conditions
00007  * are met:
00008  *
00009  * *  Redistributions of source code must retain the above copyright
00010  *    notice, this list of conditions and the following disclaimer.
00011  *
00012  * *  Redistributions in binary form must reproduce the above copyright
00013  *    notice, this list of conditions and the following disclaimer in the
00014  *    documentation and/or other materials provided with the distribution.
00015  *
00016  * *  Neither the name of Texas Instruments Incorporated nor the names of
00017  *    its contributors may be used to endorse or promote products derived
00018  *    from this software without specific prior written permission.
00019  *
00020  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
00021  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
00022  * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
00023  * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
00024  * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
00025  * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
00026  * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
00027  * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
00028  * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
00029  * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
00030  * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
00031  * 
00032  */
00049 #ifndef ti_sdo_fc_ires_sdma_IRES_SDMA_
00050 #define ti_sdo_fc_ires_sdma_IRES_SDMA_
00051 
00054 
00055 
00056 #ifdef __cplusplus
00057 extern "C" {
00058 #endif
00059 
00060 #include <ti/xdais/ires_common.h>
00061 #include <ti/sdo/linuxutils/sdma/include/sdma.h>
00062 
00066 #define IRES_SDMA_PROTOCOLNAME  "ti.sdo.fc.ires.sdma"
00067 
00076 #define SDMA_MODNAME  "ti.sdo.fc.ires.sdma"
00077 
00081 #define SDMA_GTNAME  "ti.sdo.fc.ires.sdma"
00082 
00083 /*
00084  * Note, we wrap the PROTOCOLVERSION in an ifdef so the
00085  * resource managers and algs get this version data placed in their object
00086  * files.  Apps, which include rman.h, will have this 'NOPROTOCOLREV' defined.
00087  */
00088 #ifndef ti_sdo_fc_ires_NOPROTOCOLREV
00089 
00093 static IRES_ProtocolRevision IRES_SDMA_PROTOCOLREVISION = {1,0,0};
00094 
00095 #endif
00096 
00100 typedef struct IRES_SDMA_Obj *IRES_SDMA_Handle;
00101 
00105 typedef struct IRES_SDMA_ProtocolArgs {
00106 
00107     IRES_ProtocolArgs base;
00108 
00109 } IRES_SDMA_ProtocolArgs;
00110 
00116 typedef struct  IRES_SDMA_Obj {
00117 
00118     IRES_Obj ires;
00119 
00120     SDMA_ChannelDescriptor * channel;
00121                                         /* Channel number that is granted to
00122                                            the requestor */
00123 } IRES_SDMA_Obj;
00124 
00125 /*
00126  * @brief           SDMA Register Layout
00127  */
00128 typedef struct IRES_SDMA_RegisterLayer  {
00129 
00130     unsigned int DMA4_CCR;
00131     unsigned int DMA4_CLNK_CTRL;
00132     unsigned int DMA4_CICR;
00133     unsigned int DMA4_CSR;
00134     unsigned int DMA4_CSDP;
00135     unsigned int DMA4_CEN;
00136     unsigned int DMA4_CFN;
00137     unsigned int DMA4_CSSA;
00138     unsigned int DMA4_CDSA;
00139     unsigned int DMA4_CSE;
00140     unsigned int DMA4_CSF;
00141     unsigned int DMA4_CDE;
00142     unsigned int DMA4_CDF;
00143     unsigned int DMA4_CSAC;
00144     unsigned int DMA4_CDAC;
00145     unsigned int DMA4_CCEN;
00146     unsigned int DMA4_CCFN;
00147     unsigned int DMA4_COLOR;
00148 } IRES_SDMA_RegisterLayer;
00149 
00150 
00151 /*
00152  * @brief       Static Resource Properties
00153  */
00154 typedef struct IRES_SDMA_Properties {
00155 
00156     IRES_SDMA_RegisterLayer *globalRegs;
00157 
00158 } IRES_SDMA_Properties;
00159 
00160 #ifdef __cplusplus
00161 }
00162 #endif /* extern "C" */
00163  
00166 #endif  /* ti_sdo_fc_ires_sdma_IRES_SDMA_ */
00167 /*
00168  *  @(#) ti.sdo.fc.ires.sdma; 1, 0, 0,3; 4-16-2012 00:01:40; /db/atree/library/trees/fc/fc-q08/src/ xlibrary
00169 
00170  */
00171 
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines

Copyright 2012, Texas Instruments Incorporated