hdafg_dd.h revision 1.1.18.2       1  1.1.18.2  jdolecek /* $NetBSD: hdafg_dd.h,v 1.1.18.2 2017/12/03 11:37:01 jdolecek Exp $ */
      2  1.1.18.2  jdolecek 
      3  1.1.18.2  jdolecek /*
      4  1.1.18.2  jdolecek  * Copyright (c) 2011 Jared D. McNeill <jmcneill (at) invisible.ca>
      5  1.1.18.2  jdolecek  * All rights reserved.
      6  1.1.18.2  jdolecek  *
      7  1.1.18.2  jdolecek  * Redistribution and use in source and binary forms, with or without
      8  1.1.18.2  jdolecek  * modification, are permitted provided that the following conditions
      9  1.1.18.2  jdolecek  * are met:
     10  1.1.18.2  jdolecek  * 1. Redistributions of source code must retain the above copyright
     11  1.1.18.2  jdolecek  *    notice, this list of conditions and the following disclaimer.
     12  1.1.18.2  jdolecek  * 2. The name of the author may not be used to endorse or promote products
     13  1.1.18.2  jdolecek  *    derived from this software without specific prior written permission.
     14  1.1.18.2  jdolecek  *
     15  1.1.18.2  jdolecek  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
     16  1.1.18.2  jdolecek  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
     17  1.1.18.2  jdolecek  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
     18  1.1.18.2  jdolecek  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
     19  1.1.18.2  jdolecek  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
     20  1.1.18.2  jdolecek  * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
     21  1.1.18.2  jdolecek  * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
     22  1.1.18.2  jdolecek  * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
     23  1.1.18.2  jdolecek  * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
     24  1.1.18.2  jdolecek  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
     25  1.1.18.2  jdolecek  * SUCH DAMAGE.
     26  1.1.18.2  jdolecek  */
     27  1.1.18.2  jdolecek 
     28  1.1.18.2  jdolecek #ifndef _HDAFG_DD_H
     29  1.1.18.2  jdolecek #define _HDAFG_DD_H
     30  1.1.18.2  jdolecek 
     31  1.1.18.2  jdolecek #include "hdmireg.h"
     32  1.1.18.2  jdolecek #include "eldreg.h"
     33  1.1.18.2  jdolecek #include "ceareg.h"
     34  1.1.18.2  jdolecek 
     35  1.1.18.2  jdolecek #define	HDAFG_DD_MONITOR_NAME_LEN	32
     36  1.1.18.2  jdolecek #define	HDAFG_DD_MAX_SAD		15
     37  1.1.18.2  jdolecek 
     38  1.1.18.2  jdolecek struct hdafg_dd_info {
     39  1.1.18.2  jdolecek 	struct eld_baseline_block eld;
     40  1.1.18.2  jdolecek 	char		monitor[HDAFG_DD_MONITOR_NAME_LEN];
     41  1.1.18.2  jdolecek 	size_t		nsad;
     42  1.1.18.2  jdolecek 	struct cea_sad	sad[HDAFG_DD_MAX_SAD];
     43  1.1.18.2  jdolecek };
     44  1.1.18.2  jdolecek 
     45  1.1.18.2  jdolecek int	hdafg_dd_parse_info(uint8_t *, size_t, struct hdafg_dd_info *);
     46  1.1.18.2  jdolecek void	hdafg_dd_hdmi_ai_cksum(struct hdmi_audio_infoframe *);
     47  1.1.18.2  jdolecek 
     48  1.1.18.2  jdolecek 
     49  1.1.18.2  jdolecek #endif /* !_HDAFG_DD_H */
     50