1 .\" $NetBSD: ddc.9,v 1.3 2006/12/23 06:36:19 wiz Exp $
3 .\" Copyright 2006 Itronix Inc.
4 .\" All rights reserved.
6 .\" Written by Garrett D'Amore for Itronix Inc.
8 .\" Redistribution and use in source and binary forms, with or without
9 .\" modification, are permitted provided that the following conditions
11 .\" 1. Redistributions of source code must retain the above copyright
12 .\" notice, this list of conditions and the following disclaimer.
13 .\" 2. Redistributions in binary form must reproduce the above copyright
14 .\" notice, this list of conditions and the following disclaimer in the
15 .\" documentation and/or other materials provided with the distribution.
16 .\" 3. The name of Intronix Inc. may not be used to endorse
17 .\" or promote products derived from this software without specific prior
18 .\" written permission.
20 .\" THIS SOFTWARE IS PROVIDED BY INTRONIX INC. ``AS IS'' AND
21 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
22 .\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
23 .\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL ITRONIX INC. BE LIABLE FOR ANY
24 .\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
25 .\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
26 .\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
27 .\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
28 .\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
29 .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
30 .\" POSSIBILITY OF SUCH DAMAGE.
37 .Nd VESA Display Data Channel V2
49 reads a VESA Extended Display Identification Data block (EDID) via
50 VESA Display Data Channel (DDCv2). DDCv2 is a protocol for data exchange
51 between display devices (such as monitors and flat panels) and host
52 machines using an I2C bus.
56 argument is a machine-dependent tag used to specify the I2C
57 bus on which the DDCv2 device is located.
60 argument is a pointer to a buffer where the EDID data will be stored.
63 argument is the amount of data to read into the buffer. (The buffer must be
64 large enough.) Typically, this value will be 128, which is the size of a
65 normal EDID data block.
67 Normally the EDID data block will be post-processed with the
73 function returns zero on success, and non-zero otherwise.
77 function is part of the
79 driver, and is only included in the kernel if that driver is also included.
81 The following code uses
83 to retrieve and print information about a monitor:
86 struct edid_info info;
91 /* initialize i2c tag... */
93 if ((ddc_read_edid(tag, buffer, 128) == 0) \*[Am]\*[Am]
94 (edid_parse(buffer, \*[Am]info) == 0))
99 Note that this must be called before the PCI bus is attached during
106 DDCv2 support was added in
109 .An Garrett D'Amore Aq gdamore@NetBSD.org