acpy3_instr.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  */
00042 #ifndef ti_sdo_fc_acpy_ACPY3_INSTR_
00043 #define ti_sdo_fc_acpy_ACPY3_INSTR_
00044 
00047 
00048 #include <ti/xdais/idma3.h>
00049 
00050 
00052 #ifndef _ACPY3_INSTR_
00053     #define ACPY3_INSTR_CALLHOOKFXN(hooks, handle,hookId)
00054 #else
00055     #define ACPY3_INSTR_CALLHOOKFXN(hooks, handle, hookId)\
00056         if(NULL != hooks)\
00057         {\
00058             if (NULL!= hooks->InstrHooks[hookId].fxn)\
00059             {\
00060                 hooks->InstrHooks[hookId].fxn(handle, hooks->\
00061                     InstrHooks[hookId].args);\
00062             }\
00063         }
00064 #endif /* _ACPY3_INSTR_ */
00065 
00071 #define ACPY3_INSTR_NUMHOOKS 4
00072 #define ACPY3_INSTR_NUMEXTENDEDHOOKS 22
00073 
00074 
00078 typedef enum ACPY3_INSTR_HookType {
00079     ACPY3_INSTR_START_ENTER = 0,
00080     ACPY3_INSTR_START_EXIT,
00081     ACPY3_INSTR_WAIT_ENTER,
00082     ACPY3_INSTR_WAIT_EXIT
00083 } ACPY3_INSTR_HookType;
00084 
00085 
00089 typedef enum ACPY3_INSTR_ExtendedHookType {
00090     ACPY3_INSTR_WAITLINKED_ENTER,
00091     ACPY3_INSTR_WAITLINKED_EXIT,
00092     ACPY3_INSTR_ACTIVATE_ENTER,
00093     ACPY3_INSTR_ACTIVATE_EXIT,
00094     ACPY3_INSTR_DEACTIVATE_ENTER,
00095     ACPY3_INSTR_DEACTIVATE_EXIT,
00096     ACPY3_INSTR_COMPLETE_ENTER,
00097     ACPY3_INSTR_COMPLETE_EXIT,
00098     ACPY3_INSTR_COMPLETELINKED_ENTER,
00099     ACPY3_INSTR_COMPLETELINKED_EXIT,
00100     ACPY3_INSTR_CONFIGURE_ENTER,
00101     ACPY3_INSTR_CONFIGURE_EXIT,
00102     ACPY3_INSTR_FASTCONFIGURE16_ENTER,
00103     ACPY3_INSTR_FASTCONFIGURE16_EXIT,
00104     ACPY3_INSTR_FASTCONFIGURE32_ENTER,
00105     ACPY3_INSTR_FASTCONFIGURE32_EXIT,
00106     ACPY3_INSTR_SETFINAL_ENTER,
00107     ACPY3_INSTR_SETFINAL_EXIT,
00108     ACPY3_INSTR_SETFASTFINAL_ENTER,
00109     ACPY3_INSTR_SETFASTFINAL_EXIT,
00110     ACPY3_INSTR_INIT_ENTER,
00111     ACPY3_INSTR_INIT_EXIT,
00112     ACPY3_INSTR_EXIT_ENTER,
00113     ACPY3_INSTR_EXIT_EXIT
00114 } ACPY3_INSTR_ExtendedHookType;
00115 
00116 
00120 typedef void (*ACPY3_INSTR_HookFxn)(IDMA3_Handle handle, void *param);
00121 
00122 
00127 typedef struct ACPY3_INSTR_Hook {
00128     ACPY3_INSTR_HookFxn fxn;
00129     void * args;
00130 } ACPY3_INSTR_Hook;
00131 
00132 
00137 typedef struct ACPY3_INSTR_Hooks {
00138     ACPY3_INSTR_Hook InstrHooks[ACPY3_INSTR_NUMHOOKS];
00139 } ACPY3_INSTR_Hooks;
00140 
00141 
00146 typedef struct ACPY3_INSTR_ExtendedHooks {
00147     ACPY3_INSTR_Hook InstrHooks[ACPY3_INSTR_NUMEXTENDEDHOOKS];
00148 } ACPY3_INSTR_ExtendedHooks;
00149 
00150 
00158 Void ACPY3_INSTR_registerHooks(IDMA3_Handle handle, ACPY3_INSTR_Hooks * hooks,
00159     ACPY3_INSTR_ExtendedHooks  * extended_hooks);
00160 
00161 
00167 Void ACPY3_INSTR_unregisterHooks(IDMA3_Handle handle);
00168 
00171 #endif /* ti_sdo_fc_acpy_ACPY3_INSTR_ */
00172 /*
00173  *  @(#) ti.sdo.fc.acpy3; 1, 0, 4,3; 4-16-2012 00:00:10; /db/atree/library/trees/fc/fc-q08/src/ xlibrary
00174 
00175  */
00176 
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines

Copyright 2012, Texas Instruments Incorporated