Home | History | Annotate | Line # | Download | only in ic
      1  1.4  martin /*	$NetBSD: tms320av110reg.h,v 1.4 2008/04/28 20:23:51 martin Exp $	*/
      2  1.1      is 
      3  1.1      is /*-
      4  1.3      is  * Copyright (c) 1997 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.1      is  *
     19  1.2      is  * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
     20  1.2      is  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
     21  1.2      is  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
     22  1.2      is  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
     23  1.2      is  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
     24  1.2      is  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
     25  1.2      is  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
     26  1.2      is  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
     27  1.2      is  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
     28  1.2      is  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
     29  1.2      is  * POSSIBILITY OF SUCH DAMAGE.
     30  1.1      is  */
     31  1.1      is 
     32  1.1      is /*
     33  1.1      is  * Definitions for access to the TMS320AV110AV mpeg audio decoder.
     34  1.1      is  * Based on the TMS320AV110 data sheet.
     35  1.1      is  *
     36  1.1      is  * Currently, only minimum support for audio output. For audio/video
     37  1.1      is  * synchronization, more is needed.
     38  1.1      is  */
     39  1.1      is 
     40  1.1      is #ifndef _TMS320AV110_REG_H_
     41  1.1      is #define _TMS320AV110_REG_H_
     42  1.1      is 
     43  1.1      is /* symbolic registers and values */
     44  1.1      is 
     45  1.1      is #define TAV_ANC				0x06	/* RO, 4 bytes */
     46  1.1      is #define TAV_ANC_AV			0x6c	/* RO */
     47  1.1      is #define TAV_ATTEN_L			0x1e
     48  1.1      is #define TAV_ATTEN_R			0x20
     49  1.1      is #define TAV_AUD_ID			0x22
     50  1.1      is #define TAV_AUD_ID_EN			0x24
     51  1.1      is 
     52  1.1      is #define TAV_BALE_LIM			0x68	/* 2 bytes */
     53  1.1      is #define TAV_BALF_LIM			0x6A	/* 2 bytes */
     54  1.1      is #define TAV_BUFF			0x12	/* RO, 2 bytes */
     55  1.1      is 
     56  1.1      is #define	TAV_CRC_ECM			0x2a
     57  1.1      is #define TAV_ECM_IGNORE				0	/* same for SYNC */
     58  1.1      is #define TAV_ECM_MUTE				1
     59  1.1      is #define TAV_ECM_REPEAT				2
     60  1.1      is #define TAV_ECM_SKIP				3
     61  1.1      is 
     62  1.1      is #define TAV_DATAIN			0x18	/* WO */
     63  1.1      is #define TAV_DIF				0x6f
     64  1.1      is 
     65  1.1      is #define TAV_DMPH			0x46
     66  1.1      is #define TAV_DRAM_EXT			0x3e	/* RO */
     67  1.1      is #define TAV_DRAM_SIZE(ext) ((ext) ? 131072 : 256)
     68  1.1      is #define TAV_DRAM_HSIZE(ext) ((ext) ? 65536 : 128)
     69  1.1      is 
     70  1.1      is #define TAV_FREE_FORM			0x14	/* RW, 11 bit */
     71  1.1      is 
     72  1.1      is #define TAV_HEADER			0x5e	/* RO, 4 bytes */
     73  1.1      is 
     74  1.1      is #define TAV_INTR			0x1a	/* RO, 2 bytes */
     75  1.1      is #define TAV_INTR_EN			0x1c	/* RW, 2 bytes */
     76  1.1      is #define TAV_INTR_SYNCCHANGE			0x0001
     77  1.1      is #define TAV_INTR_HEADERVALID			0x0002
     78  1.1      is #define TAV_INTR_PTSVALID			0x0004
     79  1.1      is #define TAV_INTR_LOWWATER			0x0008
     80  1.1      is #define TAV_INTR_HIGHWATER			0x0010
     81  1.1      is #define TAV_INTR_CRCERROR			0x0020
     82  1.1      is #define TAV_INTR_ANCILLARY_VALID		0x0040
     83  1.1      is #define TAV_INTR_ANCILLARY_FULL			0x0080
     84  1.1      is #define TAV_INTR_PCM_OUTPUT_UNDERFLOW		0x0100
     85  1.1      is #define TAV_INTR_SAMPLING_FREQ_CHANGE		0x0200
     86  1.1      is #define TAV_INTR_DEEMPH_CHANGE			0x0400
     87  1.1      is #define TAV_INTR_SRC_DETECT			0x0800
     88  1.1      is 
     89  1.1      is #define TAV_IRC				0x78	/* RO, 33 bit */
     90  1.1      is #define TAV_IRC_CNT			0x54	/* RO, 33 bit */
     91  1.1      is #define TAV_IRC_LOAD			0x7e
     92  1.1      is 
     93  1.1      is #define TAV_LATENCY			0x3c
     94  1.1      is #define TAV_MUTE			0x30
     95  1.1      is 
     96  1.1      is #define TAV_PCM_DIV			0x6e
     97  1.1      is #define TAV_PCM_18			0x16
     98  1.1      is #define TAV_PCM_FS			0x44	/* RO */
     99  1.1      is #define TAV_PCM_ORD			0x38
    100  1.1      is 
    101  1.1      is #define TAV_PLAY			0x2e
    102  1.1      is #define TAV_PTS				0x62	/* RO, 33 bits */
    103  1.1      is #define TAV_REPEAT			0x34
    104  1.1      is #define TAV_RESET			0x40
    105  1.1      is #define TAV_RESTART			0x42
    106  1.1      is 
    107  1.1      is #define TAV_SRC				0x72	/* RO, 33 bits */
    108  1.1      is #define TAV_SIN_EN			0x70
    109  1.1      is #define TAV_SKIP			0x32
    110  1.1      is 
    111  1.1      is #define TAV_STR_SEL			0x36
    112  1.1      is #define TAV_STR_SEL_MPEG_AUDIO_STREAM		0
    113  1.1      is #define TAV_STR_SEL_MPEG_AUDIO_PACKETS		1
    114  1.1      is #define TAV_STR_SEL_MPEG_SYSTEM_STREAM		2
    115  1.1      is #define TAV_STR_SEL_AUDIO_BYPASS		3
    116  1.1      is 
    117  1.1      is #define TAV_SYNC_ECM			0x2c	/* see CRC_ECM */
    118  1.1      is 
    119  1.1      is #define	TAV_SYNC_ST			0x28	/* 0..3 */
    120  1.1      is #define	TAV_SYNC_ST_UNLOCKED			0
    121  1.1      is #define	TAV_SYNC_ST_ATTEMPTING			2
    122  1.1      is #define	TAV_SYNC_ST_LOCKED			3
    123  1.1      is 
    124  1.1      is #define	TAV_VERSION			0x6d
    125  1.1      is 
    126  1.1      is #endif /* _TMS320AV110_REG_H_ */
    127