]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - processor-sdk/performance-audio-sr.git/blob - psdk_cust/pdk_k2g_1_0_1_0_eng/packages/ti/csl/csl_error.h
PASDK-258:Update PDK eng to 1.0.1.1. Using build number to differentiate PDK eng...
[processor-sdk/performance-audio-sr.git] / psdk_cust / pdk_k2g_1_0_1_0_eng / packages / ti / csl / csl_error.h
1 /*  ============================================================================
2  *  Copyright (c) Texas Instruments Incorporated 2002, 2003, 2004, 2005, 2006, 2008
3  * 
4  *  Redistribution and use in source and binary forms, with or without 
5  *  modification, are permitted provided that the following conditions 
6  *  are met:
7  *
8  *    Redistributions of source code must retain the above copyright 
9  *    notice, this list of conditions and the following disclaimer.
10  *
11  *    Redistributions in binary form must reproduce the above copyright
12  *    notice, this list of conditions and the following disclaimer in the 
13  *    documentation and/or other materials provided with the   
14  *    distribution.
15  *
16  *    Neither the name of Texas Instruments Incorporated nor the names of
17  *    its contributors may be used to endorse or promote products derived
18  *    from this software without specific prior written permission.
19  *
20  *  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 
21  *  "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 
22  *  LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
23  *  A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 
24  *  OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 
25  *  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 
26  *  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
27  *  DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
28  *  THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 
29  *  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 
30  *  OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31  *
32 */
33 /** ============================================================================
34  *   @file  csl_error.h
35  *
36  *   @path  $(CSLPATH)\inc
37  *
38  *   @desc  This file contains the Register Desciptions for ERRORs
39  *
40  */
42 /* ---- File: <csl_error.h> ---- */
43 #ifndef CSL_ERROR_H
44 #define CSL_ERROR_H
46 /* Below Error codes are Global across all CSL Modules. */
47 #define CSL_SOK                 (1)         /* Success */
48 #define CSL_ESYS_FAIL           (-1)        /* Generic failure */
49 #define CSL_ESYS_INUSE          (-2)        /* Peripheral resource is already in use */
50 #define CSL_ESYS_XIO            (-3)        /* Encountered a shared I/O(XIO) pin conflict */
51 #define CSL_ESYS_OVFL           (-4)        /* Encoutered CSL system resource overflow */
52 #define CSL_ESYS_BADHANDLE      (-5)        /* Handle passed to CSL was invalid */
53 #define CSL_ESYS_INVPARAMS      (-6)        /* invalid parameters */
54 #define CSL_ESYS_INVCMD         (-7)        /* invalid command */
55 #define CSL_ESYS_INVQUERY       (-8)        /* invalid query */
56 #define CSL_ESYS_NOTSUPPORTED   (-9)        /* action not supported */
58 /* Peripheral IDs */
59 #define CSL_MCBSP_ID            (7)
60 #define CSL_GPIO_ID             (8)
61 #define CSL_DFE_ID              (9)
63 /* Error codes individual to various modules. */
65 /* Error code for DMA, individual error would be assigned as
66  * eg: #define CSL_E<Peripheral name>_<error code>  CSL_EDMA_FIRST - 1
67  */
70 #define CSL_EPWM_FIRST      (-( ((CSL_PWM_ID + 1) << 5 ) + 1 ))
71 #define CSL_EPWM_LAST       (-( (CSL_PWM_ID + 1) << 6 ))
73 #define CSL_EUART_FIRST     (-( ((CSL_UART_ID + 1) << 5 ) + 1 ))
74 #define CSL_EUART_LAST      (-( (CSL_UART_ID + 1) << 6 ))
76 #define CSL_ESPI_FIRST      (-( ((CSL_SPI_ID + 1) << 5 ) + 1 ))
77 #define CSL_ESPI_LAST       (-( (CSL_SPI_ID + 1) << 6 ))
79 #define CSL_EATA_FIRST      (-( ((CSL_ATA_ID + 1) << 5 ) + 1 ))
80 #define CSL_EATA_LAST       (-( (CSL_ATA_ID + 1) << 6 ))
82 #define CSL_EMMCSD_FIRST    (-( ((CSL_MMCSD_ID + 1) << 5 ) + 1 ))
83 #define CSL_EMMCSD_LAST     (-( (CSL_MMCSD_ID + 1) << 6 ))
85 #define CSL_EVLYNQ_FIRST    (-( ((CSL_VLYNQ_ID + 1) << 5 ) + 1 ))
86 #define CSL_EVLYNQ_LAST     (-( (CSL_VLYNQ_ID + 1) << 6 ))
88 #define CSL_EMCBSP_FIRST    (-( ((CSL_MCBSP_ID + 1) << 5 ) + 1 ))
89 #define CSL_EMCBSP_LAST     (-( (CSL_MCBSP_ID + 1) << 6 ))
91 #define CSL_EI2C_FIRST      (-( ((CSL_I2C_ID + 1) << 5 ) + 1 ))
92 #define CSL_EI2C_LAST       (-( (CSL_I2C_ID + 1) << 6 ))
94 #define CSL_EGPIO_FIRST     (-( ((CSL_GPIO_ID + 1) << 5 ) + 1 ))
95 #define CSL_EGPIO_LAST      (-( (CSL_GPIO_ID + 1) << 6 ))
97 #define CSL_EMS_FIRST       (-( ((CSL_MS_ID + 1) << 5 ) + 1 ))
98 #define CSL_EMS_LAST        (-( (CSL_MS_ID + 1) << 6 ))
100 #define CSL_EINTC_FIRST     (-( ((CSL_INTC_ID + 1) << 5 ) + 1 ))
101 #define CSL_EINTC_LAST      (-( (CSL_INTC_ID + 1) << 6 ))
103 #define CSL_EEMIF_FIRST     (-( ((CSL_EMIF_ID + 1) << 5 ) + 1 ))
104 #define CSL_EEMIF_LAST      (-( (CSL_EMIF_ID + 1) << 6 ))
106 #define CSL_EPLLC_FIRST     (-( ((CSL_PLLC_ID + 1) << 5 ) + 1 ))
107 #define CSL_EPLLC_LAST      (-( (CSL_PLLC_ID + 1) << 6 ))
109 #define CSL_EDDR_FIRST      (-( ((CSL_DDR_ID + 1) << 5 ) + 1 ))
110 #define CSL_EDDR_LAST       (-( (CSL_DDR_ID + 1) << 6 ))
112 #define CSL_EEDMA_FIRST     (-( ((CSL_EDMA_ID + 1) << 5 ) + 1 ))
113 #define CSL_EEDMA_LAST      (-( (CSL_EDMA_ID + 1) << 6 ))
115 #define CSL_EDFE_FIRST      (-( ((CSL_DFE_ID + 1) << 5 ) + 1 ))
116 #define CSL_EDFE_LAST       (-( (CSL_DFE_ID + 1) << 6 ))
118 #endif /* CSL_ERROR_H */