]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - processor-sdk/performance-audio-sr.git/blob - pasdk/test_dsp/application/itopo/evmk2g/alpha/pa_i13_evmk2g_io_a.h
Update test_arm and test_dsp projects for new locations of IPC and PDK eng
[processor-sdk/performance-audio-sr.git] / pasdk / test_dsp / application / itopo / evmk2g / alpha / pa_i13_evmk2g_io_a.h
2 /*
3 Copyright (c) 2016, 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 #ifndef SIMULATE_SIO
49 #define  execPAIInNone          0xf120
50 #define  execPAIInHDMIStereo    0xf121
51 #define  execPAIInHDMI              0xf122
52 #define  execPAIInDigital       0xf123
53 #define  execPAIInAnalog            0xf124
55 // These values reflect the definition of devinp[]
56 #define DEVINP_NULL             0
57 #define DEVINP_HDMI_STEREO              1
58 #define DEVINP_HDMI                     2
59 #define DEVINP_DIR              3
60 #define DEVINP_ADC              4
61 #define DEVINP_N                5
63 #else // SIMULATE_SIO
64 #define  execPAIInNone          0xf120
65 #define  execPAIInDigital       0xf121
66 #define  execPAIInAnalog        0xf122
67 #define  execPAIInAnalogStereo  0xf123
68 #define  execPAIInSing          0xf126
69 #define  execPAIInHDMI          0xf128
70 #define  execPAIInHDMIStereo    0xf129
71 #define  execPAIIn1394Stereo    0xf12d
72 #define  execPAIIn1394          0xf12e
73 #define  execPAIInRingIO        0xf12f
75 // These values reflect the definition of devinp[]
76 #define DEVINP_NULL             0
77 #define DEVINP_DIR              1
78 #define DEVINP_ADC1             2
79 #define DEVINP_ADC_STEREO       3
80 #define DEVINP_1394_STEREO      4
81 #define DEVINP_1394             5
82 #define DEVINP_RIO              6
83 #define DEVINP_HDMI             7
84 #define DEVINP_HDMI_STEREO      8
85 #define DEVINP_N                9
87 #endif // SIMULATE_SIO
90 #define wroteIBSioCommandNone           0xca00+STD_BETA_IB,0x0500+DEVINP_NULL
91 #define wroteIBSioCommandHDMIStereo     0xca00+STD_BETA_IB,0x0500+DEVINP_HDMI_STEREO
92 #define wroteIBSioCommandHDMI               0xca00+STD_BETA_IB,0x0500+DEVINP_HDMI
93 #define wroteIBSioCommandDigital        0xca00+STD_BETA_IB,0x0500+DEVINP_DIR
94 #define wroteIBSioCommandAnalog         0xca00+STD_BETA_IB,0x0500+DEVINP_ADC
96 #define wroteIBSioSelectNone            0xca00+STD_BETA_IB,0x0580+DEVINP_NULL
97 #define wroteIBSioSelectHDMIStereo      0xca00+STD_BETA_IB,0x0580+DEVINP_HDMI_STEREO
98 #define wroteIBSioSelectHDMI                0xca00+STD_BETA_IB,0x0580+DEVINP_HDMI
99 #define wroteIBSioSelectDigital         0xca00+STD_BETA_IB,0x0580+DEVINP_DIR
100 #define wroteIBSioSelectAnalog          0xca00+STD_BETA_IB,0x0580+DEVINP_ADC
103 // -----------------------------------------------------------------------------
104 // OB SIO Select Register is set by the execPAIOut* shortcuts
106 #define  execPAIOutNone                 0xf130
107 #define  execPAIOutAnalog               0xf131 //8 channel output analog (24bit)
108 #define  execPAIOutAnalogSlave          0xf132 //8 channel output analog (24bit)
110 // These values reflect the definition of devout[]
111 #define DEVOUT_NULL             0
112 #define DEVOUT_DAC              1
113 #define DEVOUT_DAC_SLAVE        2
114 #define DEVOUT_N                3
117 #define wroteOBSioCommandNone                0xca00+STD_BETA_OB,0x0500+DEVOUT_NULL
118 #define wroteOBSioCommandAnalog              0xca00+STD_BETA_OB,0x0500+DEVOUT_DAC
119 #define wroteOBSioCommandAnalogSlave         0xca00+STD_BETA_OB,0x0500+DEVOUT_DAC_SLAVE
121 #define wroteOBSioSelectNone                 0xca00+STD_BETA_OB,0x0580+DEVOUT_NULL
122 #define wroteOBSioSelectAnalog               0xca00+STD_BETA_OB,0x0580+DEVOUT_DAC
123 #define wroteOBSioSelectAnalogSlave          0xca00+STD_BETA_OB,0x0580+DEVOUT_DAC_SLAVE
124 // -----------------------------------------------------------------------------
126 #endif // _PAI_EVMK2G_IO_A_H_