The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/dev/ic/tms320av110reg.h

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

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

Cache object: fec2afb64a87395a9e48e18540f17b62


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.