]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - processor-sdk/pdk.git/blob - packages/ti/drv/aif2/AIF_init_dat.h
aif2-lld: add to PDK
[processor-sdk/pdk.git] / packages / ti / drv / aif2 / AIF_init_dat.h
1 /****************************************************************************\\r
2  *           (C) Copyright 2009, Texas Instruments, Inc.                    *\r
3  *                                                                          *\r
4  *  Redistribution and use in source and binary forms, with or without      *\r
5  *  modification, are permitted provided that the following conditions      *\r
6  *  are met:                                                                *\r
7  *                                                                          *\r
8  *    Redistributions of source code must retain the above copyright        *\r
9  *    notice, this list of conditions and the following disclaimer.         *\r
10  *                                                                          *\r
11  *    Redistributions in binary form must reproduce the above copyright     *\r
12  *    notice, this list of conditions and the following disclaimer in the   *\r
13  *    documentation and/or other materials provided with the                *\r
14  *    distribution.                                                         *\r
15  *                                                                          *\r
16  *    Neither the name of Texas Instruments Incorporated nor the names of   *\r
17  *    its contributors may be used to endorse or promote products derived   *\r
18  *    from this software without specific prior written permission.         *\r
19  *                                                                          *\r
20  *  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS     *\r
21  *  "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT       *\r
22  *  LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR   *\r
23  *  A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT    *\r
24  *  OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,   *\r
25  *  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT        *\r
26  *  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,   *\r
27  *  DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY   *\r
28  *  THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT     *\r
29  *  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE   *\r
30  *  OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.    *\r
31  ****************************************************************************\r
32  *                                                                          *\r
33  * Target processors : TMS320C66xx                                          *\r
34  *                                                                          *\r
35 \****************************************************************************/\r
36                     \r
37 /** \r
38  * @file AIF_init_dat.h\r
39  *\r
40  * @brief Header file for AIF H/W global data structures.\r
41  * \r
42 */\r
43 \r
44 \r
45 #ifndef __AIF_INIT_DAT_H\r
46 #define __AIF_INIT_DAT_H\r
47 \r
48 #include <ti/csl/csl.h>\r
49 #include <ti/drv/aif2/aif2fl.h>\r
50 //#include <csl_fsync.h>\r
51 #include <ti/drv/aif2/AIF_defs.h>\r
52 \r
53 #ifdef __cplusplus\r
54 extern "C" {\r
55 #endif\r
56 \r
57 /*******************************************************************************\r
58  * AIF global data declarations\r
59  ******************************************************************************/\r
60 \r
61 \r
62 /**\r
63  * @brief This flag indicates whether the event synchronization variables\r
64  * have been initialized.\r
65  */\r
66 extern uint32_t aifFsyncInitDone;\r
67 \r
68 /**\r
69  * @brief This flag indicates whether the Antenna Interface\r
70  * has been initialized.\r
71  */\r
72 extern uint32_t aifInitDone;\r
73 \r
74 /**\r
75  * @brief This structure points to the antenna interface registers\r
76  * and is used to access them within the ABTLib.\r
77  */\r
78 extern CSL_Aif2Regs *   aifRegs;\r
79 \r
80 /**\r
81  * @brief This array counts AIF2 AT events and is updated\r
82  * from AIF2 AT event cpu interrupts.\r
83  * aifFsyncEventCount[1]: 10ms tick - AT event 7\r
84  * aifFsyncEventCount[2-7]: debug sync events for ABT ingress EDMA events - AT event 0 to 5\r
85  */\r
86 extern volatile int32_t aifFsyncEventCount[30];\r
87 \r
88 extern \r
89 volatile uint32_t aif2DioIntCount[AIF_MAX_NUM_LINKS];\r
90 \r
91 #ifdef __cplusplus\r
92 }\r
93 #endif\r
94 \r
95 #endif //__AIF_INIT_DAT_H\r
96 \r