[processor-sdk/performance-audio-sr.git] / procsdk_audio_x_xx_xx_xx / tools / pyalpha / alpha / paferr_a.h
2 /*
3 * Copyright (C) 2004-2014 Texas Instruments Incorporated - http://www.ti.com/
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:
9 *
10 * Redistributions of source code must retain the above copyright
11 * notice, this list of conditions and the following disclaimer.
12 *
13 * Redistributions in binary form must reproduce the above copyright
14 * notice, this list of conditions and the following disclaimer in the
15 * documentation and/or other materials provided with the
16 * distribution.
17 *
18 * Neither the name of Texas Instruments Incorporated nor the names of
19 * its contributors may be used to endorse or promote products derived
20 * from this software without specific prior written permission.
21 *
22 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
23 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
24 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
25 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
26 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
27 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
28 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
29 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
30 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
31 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
32 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
33 *
34 */
36 //
37 //
38 // Performance Audio Framework Series 17 -- System Error Report Alpha File
39 //
40 //
41 //
43 #include <acpbeta.h>
45 /* Alpha codes to read First Error reset condition.
46 A value of zero means that First Error has been reset
47 after alpha code to reset the First Error is sent
48 */
49 #define readASPProcessingResetError 0xc200+STD_BETA_SYSERR,0x0800
50 #define readAFPProcessingResetError 0xc200+STD_BETA_SYSERR,0x0a00
51 #define readAIPProcessingResetError 0xc200+STD_BETA_SYSERR,0x0c00
53 /* Alpha codes to reset the First Error*/
54 #define writeASPProcessingResetError 0xca00+STD_BETA_SYSERR,0x0801
55 #define writeAFPProcessingResetError 0xca00+STD_BETA_SYSERR,0x0a01
56 #define writeAIPProcessingResetError 0xca00+STD_BETA_SYSERR,0x0c01
58 /* Error mapping for Audio Stream Processing(ASP):
59 - All audio stream processing errors are of type Int i.e. 32bits.
60 - byte 0-1 represents the algorithm level errors. 0 means no error.
61 - bit 0-3 of byte 2 denotes the PAF components that has caused the error.
62 See paferr.h for PAF components that are relevant here.
63 - bit 4-7 of byte 2 denotes the Framework execution status.
64 See paferr.h for various Framework execution status that are relevant here.
65 - byte 3 is reserved.
66 */
68 /* Read AIP at-boot and AFP alpha code processing errors */
69 /* A response of
70 - Zero means at boot processing succeeded.
71 - Non-zero value reports the at-boot error.
72 Error value 0x13 indicates that BETA value is not valid.
73 Error value 0x15 indicates that GAMMA value is not valid.
74 Error value 0x21 indicates that TIMEOUT occurred.
75 Any other Error indicates Unknown error.
76 */
78 /* Alpha codes to read first Error after it is reset*/
79 #define readASPProcessingFirstError 0xc400+STD_BETA_SYSERR,0x001c
80 #define readAFPProcessingFirstError 0xc400+STD_BETA_SYSERR,0x0024
81 #define readAIPProcessingFirstError 0xc400+STD_BETA_SYSERR,0x002c
83 /* Alpha codes to read Current Error*/
84 #define readASPProcessingCurrentError 0xc400+STD_BETA_SYSERR,0x0044
85 #define readAFPProcessingCurrentError 0xc400+STD_BETA_SYSERR,0x004c
86 #define readAIPProcessingCurrentError 0xc400+STD_BETA_SYSERR,0x0054