00001 /* 00002 * Copyright (c) 2011, 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 */ 00033 00047 #ifndef ti_xdais_dm_IUNIVERSAL_ 00048 #define ti_xdais_dm_IUNIVERSAL_ 00049 00050 #include <ti/xdais/ialg.h> 00051 #include <ti/xdais/xdas.h> 00052 #include "xdm.h" 00053 00054 #ifdef __cplusplus 00055 extern "C" { 00056 #endif 00057 00060 00061 #define IUNIVERSAL_EOK XDM_EOK 00062 #define IUNIVERSAL_EFAIL XDM_EFAIL 00063 #define IUNIVERSAL_EUNSUPPORTED XDM_EUNSUPPORTED 00069 typedef struct IUNIVERSAL_Obj { 00070 struct IUNIVERSAL_Fxns *fxns; 00071 } IUNIVERSAL_Obj; 00072 00073 00077 typedef struct IUNIVERSAL_Obj *IUNIVERSAL_Handle; 00078 00079 00086 typedef struct IUNIVERSAL_Params { 00087 XDAS_Int32 size; 00088 } IUNIVERSAL_Params; 00089 00090 00105 typedef struct IUNIVERSAL_DynamicParams { 00106 XDAS_Int32 size; 00107 } IUNIVERSAL_DynamicParams; 00108 00109 00118 typedef struct IUNIVERSAL_InArgs { 00119 XDAS_Int32 size; 00120 } IUNIVERSAL_InArgs; 00121 00122 00130 typedef struct IUNIVERSAL_Status { 00131 XDAS_Int32 size; 00132 XDAS_Int32 extendedError; 00133 XDM1_BufDesc data; 00150 } IUNIVERSAL_Status; 00151 00152 00161 typedef struct IUNIVERSAL_OutArgs { 00162 XDAS_Int32 size; 00163 XDAS_Int32 extendedError; 00164 } IUNIVERSAL_OutArgs; 00165 00166 00177 typedef IALG_Cmd IUNIVERSAL_Cmd; 00178 00179 00183 typedef struct IUNIVERSAL_Fxns{ 00184 IALG_Fxns ialg; 00250 XDAS_Int32 (*process)(IUNIVERSAL_Handle handle, XDM1_BufDesc *inBufs, 00251 XDM1_BufDesc *outBufs, XDM1_BufDesc *inOutBufs, 00252 IUNIVERSAL_InArgs *inArgs, IUNIVERSAL_OutArgs *outArgs); 00253 00254 00290 XDAS_Int32 (*control)(IUNIVERSAL_Handle handle, IUNIVERSAL_Cmd id, 00291 IUNIVERSAL_DynamicParams *params, IUNIVERSAL_Status *status); 00292 00293 } IUNIVERSAL_Fxns; 00294 00295 00298 #ifdef __cplusplus 00299 } 00300 #endif 00301 00302 #endif 00303 /* 00304 * @(#) ti.xdais.dm; 1, 0, 7,7; 6-14-2011 10:34:31; /db/wtree/library/trees/dais/dais.git/src/ dais-u02 00305 */ 00306