Pyalpha tools for performance audio demo in PRSDK.
[processor-sdk/performance-audio-tools.git] / alpha / pa_i13_evmk2g_io_a.h
2 /*
3 Copyright (c) 2017, Texas Instruments Incorporated - http://www.ti.com/
4 All rights reserved.
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 #ifndef _PAI_EVMK2G_IO_A_H_
37 #define _PAI_EVMK2G_IO_A_H_
39 #include <acpbeta.h>
40 #include <i13_a.h>
42 // execPAIInOutError : if returned, input/output "none" selected
43 #define  execPAIInOutError    0xf1ff
45 // -----------------------------------------------------------------------------
46 // IB SIO Select Register is set by the execPAIIn* shortcuts
48 #define  execPAIInNone          0xf120
49 #define  execPAIInHDMIStereo    0xf121
50 #define  execPAIInHDMI              0xf122
51 #define  execPAIInDigital       0xf123
52 #define  execPAIInAnalog            0xf124
54 // These values reflect the definition of devinp[]
55 #define DEVINP_NULL             0
56 #define DEVINP_HDMI_STEREO              1
57 #define DEVINP_HDMI                     2
58 #define DEVINP_DIR              3
59 #define DEVINP_ADC              4
60 #define DEVINP_N                5
62 #define wroteIBSioCommandNone           0xca00+STD_BETA_IB,0x0500+DEVINP_NULL
63 #define wroteIBSioCommandHDMIStereo     0xca00+STD_BETA_IB,0x0500+DEVINP_HDMI_STEREO
64 #define wroteIBSioCommandHDMI               0xca00+STD_BETA_IB,0x0500+DEVINP_HDMI
65 #define wroteIBSioCommandDigital        0xca00+STD_BETA_IB,0x0500+DEVINP_DIR
66 #define wroteIBSioCommandAnalog         0xca00+STD_BETA_IB,0x0500+DEVINP_ADC
68 #define wroteIBSioSelectNone            0xca00+STD_BETA_IB,0x0580+DEVINP_NULL
69 #define wroteIBSioSelectHDMIStereo      0xca00+STD_BETA_IB,0x0580+DEVINP_HDMI_STEREO
70 #define wroteIBSioSelectHDMI                0xca00+STD_BETA_IB,0x0580+DEVINP_HDMI
71 #define wroteIBSioSelectDigital         0xca00+STD_BETA_IB,0x0580+DEVINP_DIR
72 #define wroteIBSioSelectAnalog          0xca00+STD_BETA_IB,0x0580+DEVINP_ADC
75 // -----------------------------------------------------------------------------
76 // OB SIO Select Register is set by the execPAIOut* shortcuts
78 #define  execPAIOutNone                 0xf130
79 #define  execPAIOutAnalog               0xf131 //8 channel output analog (24bit)
80 #define  execPAIOutAnalogSlave          0xf132 //8 channel output analog (24bit)
81 #define  execPAIOutAnalog12Ch           0xf133 //12 channel output analog (24bit)
82 #define  execPAIOutAnalog16Ch           0xf134 //16 channel output analog (24bit)
84 // These values reflect the definition of devout[]
85 #define DEVOUT_NULL             0
86 #define DEVOUT_DAC              1
87 #define DEVOUT_DAC_SLAVE        2
88 #define DEVOUT_DAC_12CH         3
89 #define DEVOUT_DAC_16CH         4
90 #define DEVOUT_N                5
93 #define wroteOBSioCommandNone                0xca00+STD_BETA_OB,0x0500+DEVOUT_NULL
94 #define wroteOBSioCommandAnalog              0xca00+STD_BETA_OB,0x0500+DEVOUT_DAC
95 #define wroteOBSioCommandAnalogSlave         0xca00+STD_BETA_OB,0x0500+DEVOUT_DAC_SLAVE
96 #define wroteOBSioCommandAnalog12Ch          0xca00+STD_BETA_OB,0x0500+DEVOUT_DAC_12CH
97 #define wroteOBSioCommandAnalog16Ch          0xca00+STD_BETA_OB,0x0500+DEVOUT_DAC_16CH
99 #define wroteOBSioSelectNone                 0xca00+STD_BETA_OB,0x0580+DEVOUT_NULL
100 #define wroteOBSioSelectAnalog               0xca00+STD_BETA_OB,0x0580+DEVOUT_DAC
101 #define wroteOBSioSelectAnalogSlave          0xca00+STD_BETA_OB,0x0580+DEVOUT_DAC_SLAVE
102 #define wroteOBSioSelectAnalog12Ch           0xca00+STD_BETA_OB,0x0580+DEVOUT_DAC_12CH
103 #define wroteOBSioSelectAnalog16Ch           0xca00+STD_BETA_OB,0x0580+DEVOUT_DAC_16CH
104 // -----------------------------------------------------------------------------
106 #endif // _PAI_EVMK2G_IO_A_H_