11.3Sjmcneill/* $NetBSD: ddcvar.h,v 1.3 2015/05/17 01:27:16 jmcneill Exp $ */ 21.1Sgdamore 31.1Sgdamore/*- 41.1Sgdamore * Copyright (c) 2006 Itronix Inc. 51.1Sgdamore * All rights reserved. 61.1Sgdamore * 71.1Sgdamore * Written by Garrett D'Amore for Itronix Inc. 81.1Sgdamore * 91.1Sgdamore * Redistribution and use in source and binary forms, with or without 101.1Sgdamore * modification, are permitted provided that the following conditions 111.1Sgdamore * are met: 121.1Sgdamore * 1. Redistributions of source code must retain the above copyright 131.1Sgdamore * notice, this list of conditions and the following disclaimer. 141.1Sgdamore * 2. Redistributions in binary form must reproduce the above copyright 151.1Sgdamore * notice, this list of conditions and the following disclaimer in the 161.1Sgdamore * documentation and/or other materials provided with the distribution. 171.1Sgdamore * 3. The name of Itronix Inc. may not be used to endorse 181.1Sgdamore * or promote products derived from this software without specific 191.1Sgdamore * prior written permission. 201.1Sgdamore * 211.1Sgdamore * THIS SOFTWARE IS PROVIDED BY ITRONIX INC. ``AS IS'' AND ANY EXPRESS 221.1Sgdamore * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 231.1Sgdamore * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 241.1Sgdamore * ARE DISCLAIMED. IN NO EVENT SHALL ITRONIX INC. BE LIABLE FOR ANY 251.1Sgdamore * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 261.1Sgdamore * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE 271.1Sgdamore * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 281.1Sgdamore * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 291.1Sgdamore * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 301.1Sgdamore * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 311.1Sgdamore * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 321.1Sgdamore */ 331.1Sgdamore 341.1Sgdamore 351.1Sgdamore#ifndef _DEV_I2C_DDCVAR_H_ 361.1Sgdamore#define _DEV_I2C_DDCVAR_H_ 371.1Sgdamore 381.3Sjmcneillint ddc_dev_read_edid(device_t, u_int8_t *, size_t); 391.3Sjmcneillint ddc_dev_read_edid_block(device_t, u_int8_t *, size_t, uint8_t); 401.3Sjmcneill 411.1Sgdamore/* 421.1Sgdamore * display drivers can use this to access DDC without using the 431.1Sgdamore * autoconfiguration framework. 441.1Sgdamore */ 451.1Sgdamoreint ddc_read_edid(i2c_tag_t, u_int8_t *, size_t); 461.2Sjmcneillint ddc_read_edid_block(i2c_tag_t, u_int8_t *, size_t, uint8_t); 471.1Sgdamore 481.1Sgdamore#endif /* _DEV_I2C_DDCVAR_H_ */ 49