tms320av110reg.h revision 1.2 1 1.2 is /* $NetBSD: tms320av110reg.h,v 1.2 1999/02/16 22:46:58 is Exp $ */
2 1.1 is
3 1.1 is /*-
4 1.2 is * Copyright (c) 1999 The NetBSD Foundation, Inc.
5 1.2 is * All rights reserved.
6 1.2 is *
7 1.2 is * This code is derived from software contributed to The NetBSD Foundation
8 1.2 is * by Ignatios Souvatzis.
9 1.1 is *
10 1.1 is * Redistribution and use in source and binary forms, with or without
11 1.1 is * modification, are permitted provided that the following conditions
12 1.1 is * are met:
13 1.1 is * 1. Redistributions of source code must retain the above copyright
14 1.1 is * notice, this list of conditions and the following disclaimer.
15 1.1 is * 2. Redistributions in binary form must reproduce the above copyright
16 1.1 is * notice, this list of conditions and the following disclaimer in the
17 1.1 is * documentation and/or other materials provided with the distribution.
18 1.2 is * 3. All advertising materials mentioning features or use of this software
19 1.2 is * must display the following acknowledgement:
20 1.2 is * This product includes software developed by the NetBSD
21 1.2 is * Foundation, Inc. and its contributors.
22 1.2 is * 4. Neither the name of The NetBSD Foundation nor the names of its
23 1.2 is * contributors may be used to endorse or promote products derived
24 1.2 is * from this software without specific prior written permission.
25 1.1 is *
26 1.2 is * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
27 1.2 is * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
28 1.2 is * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
29 1.2 is * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
30 1.2 is * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
31 1.2 is * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
32 1.2 is * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
33 1.2 is * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
34 1.2 is * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
35 1.2 is * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
36 1.2 is * POSSIBILITY OF SUCH DAMAGE.
37 1.1 is */
38 1.1 is
39 1.1 is /*
40 1.1 is * Definitions for access to the TMS320AV110AV mpeg audio decoder.
41 1.1 is * Based on the TMS320AV110 data sheet.
42 1.1 is *
43 1.1 is * Currently, only minimum support for audio output. For audio/video
44 1.1 is * synchronization, more is needed.
45 1.1 is */
46 1.1 is
47 1.1 is #ifndef _TMS320AV110_REG_H_
48 1.1 is #define _TMS320AV110_REG_H_
49 1.1 is
50 1.1 is /* symbolic registers and values */
51 1.1 is
52 1.1 is #define TAV_ANC 0x06 /* RO, 4 bytes */
53 1.1 is #define TAV_ANC_AV 0x6c /* RO */
54 1.1 is #define TAV_ATTEN_L 0x1e
55 1.1 is #define TAV_ATTEN_R 0x20
56 1.1 is #define TAV_AUD_ID 0x22
57 1.1 is #define TAV_AUD_ID_EN 0x24
58 1.1 is
59 1.1 is #define TAV_BALE_LIM 0x68 /* 2 bytes */
60 1.1 is #define TAV_BALF_LIM 0x6A /* 2 bytes */
61 1.1 is #define TAV_BUFF 0x12 /* RO, 2 bytes */
62 1.1 is
63 1.1 is #define TAV_CRC_ECM 0x2a
64 1.1 is #define TAV_ECM_IGNORE 0 /* same for SYNC */
65 1.1 is #define TAV_ECM_MUTE 1
66 1.1 is #define TAV_ECM_REPEAT 2
67 1.1 is #define TAV_ECM_SKIP 3
68 1.1 is
69 1.1 is #define TAV_DATAIN 0x18 /* WO */
70 1.1 is #define TAV_DIF 0x6f
71 1.1 is
72 1.1 is #define TAV_DMPH 0x46
73 1.1 is #define TAV_DRAM_EXT 0x3e /* RO */
74 1.1 is #define TAV_DRAM_SIZE(ext) ((ext) ? 131072 : 256)
75 1.1 is #define TAV_DRAM_HSIZE(ext) ((ext) ? 65536 : 128)
76 1.1 is
77 1.1 is #define TAV_FREE_FORM 0x14 /* RW, 11 bit */
78 1.1 is
79 1.1 is #define TAV_HEADER 0x5e /* RO, 4 bytes */
80 1.1 is
81 1.1 is #define TAV_INTR 0x1a /* RO, 2 bytes */
82 1.1 is #define TAV_INTR_EN 0x1c /* RW, 2 bytes */
83 1.1 is #define TAV_INTR_SYNCCHANGE 0x0001
84 1.1 is #define TAV_INTR_HEADERVALID 0x0002
85 1.1 is #define TAV_INTR_PTSVALID 0x0004
86 1.1 is #define TAV_INTR_LOWWATER 0x0008
87 1.1 is #define TAV_INTR_HIGHWATER 0x0010
88 1.1 is #define TAV_INTR_CRCERROR 0x0020
89 1.1 is #define TAV_INTR_ANCILLARY_VALID 0x0040
90 1.1 is #define TAV_INTR_ANCILLARY_FULL 0x0080
91 1.1 is #define TAV_INTR_PCM_OUTPUT_UNDERFLOW 0x0100
92 1.1 is #define TAV_INTR_SAMPLING_FREQ_CHANGE 0x0200
93 1.1 is #define TAV_INTR_DEEMPH_CHANGE 0x0400
94 1.1 is #define TAV_INTR_SRC_DETECT 0x0800
95 1.1 is
96 1.1 is #define TAV_IRC 0x78 /* RO, 33 bit */
97 1.1 is #define TAV_IRC_CNT 0x54 /* RO, 33 bit */
98 1.1 is #define TAV_IRC_LOAD 0x7e
99 1.1 is
100 1.1 is #define TAV_LATENCY 0x3c
101 1.1 is #define TAV_MUTE 0x30
102 1.1 is
103 1.1 is #define TAV_PCM_DIV 0x6e
104 1.1 is #define TAV_PCM_18 0x16
105 1.1 is #define TAV_PCM_FS 0x44 /* RO */
106 1.1 is #define TAV_PCM_ORD 0x38
107 1.1 is
108 1.1 is #define TAV_PLAY 0x2e
109 1.1 is #define TAV_PTS 0x62 /* RO, 33 bits */
110 1.1 is #define TAV_REPEAT 0x34
111 1.1 is #define TAV_RESET 0x40
112 1.1 is #define TAV_RESTART 0x42
113 1.1 is
114 1.1 is #define TAV_SRC 0x72 /* RO, 33 bits */
115 1.1 is #define TAV_SIN_EN 0x70
116 1.1 is #define TAV_SKIP 0x32
117 1.1 is
118 1.1 is #define TAV_STR_SEL 0x36
119 1.1 is #define TAV_STR_SEL_MPEG_AUDIO_STREAM 0
120 1.1 is #define TAV_STR_SEL_MPEG_AUDIO_PACKETS 1
121 1.1 is #define TAV_STR_SEL_MPEG_SYSTEM_STREAM 2
122 1.1 is #define TAV_STR_SEL_AUDIO_BYPASS 3
123 1.1 is
124 1.1 is #define TAV_SYNC_ECM 0x2c /* see CRC_ECM */
125 1.1 is
126 1.1 is #define TAV_SYNC_ST 0x28 /* 0..3 */
127 1.1 is #define TAV_SYNC_ST_UNLOCKED 0
128 1.1 is #define TAV_SYNC_ST_ATTEMPTING 2
129 1.1 is #define TAV_SYNC_ST_LOCKED 3
130 1.1 is
131 1.1 is #define TAV_VERSION 0x6d
132 1.1 is
133 1.1 is #endif /* _TMS320AV110_REG_H_ */
134