xref: /haiku/headers/private/graphics/common/ddc.h (revision 93a1ccabb982a7cbe20ded2f02fdc7ffa4950af6)
18f6c61bcSshadow303 /*
2*93a1ccabSAxel Dörfler  * Copyright (c) 2003, Thomas Kurschel
3*93a1ccabSAxel Dörfler  * Distributed under the terms of the MIT License.
48f6c61bcSshadow303 */
58f6c61bcSshadow303 #ifndef _DDC_H
68f6c61bcSshadow303 #define _DDC_H
78f6c61bcSshadow303 
8*93a1ccabSAxel Dörfler 
98f6c61bcSshadow303 #include "i2c.h"
108f6c61bcSshadow303 #include "edid.h"
118f6c61bcSshadow303 
12*93a1ccabSAxel Dörfler 
13*93a1ccabSAxel Dörfler void ddc2_init_timing(i2c_bus *bus);
14*93a1ccabSAxel Dörfler 
158f6c61bcSshadow303 // read EDID and VDIF from monitor via ddc2
168f6c61bcSshadow303 // (currently, *vdif and *vdif_len is always set to null)
178f6c61bcSshadow303 status_t ddc2_read_edid1(const i2c_bus *bus, edid1_info *edid,
18*93a1ccabSAxel Dörfler 	void **vdif, size_t *vdifLength);
198f6c61bcSshadow303 
20*93a1ccabSAxel Dörfler #endif	/* _DDC_H */
21