]> Git Repo - qemu.git/blame - include/hw/i2c/i2c-ddc.h
Merge remote-tracking branch 'remotes/mst/tags/for_upstream' into staging
[qemu.git] / include / hw / i2c / i2c-ddc.h
CommitLineData
78c71af8
PM
1/* A simple I2C slave for returning monitor EDID data via DDC.
2 *
3 * Copyright (c) 2011 Linaro Limited
4 * Written by Peter Maydell
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License along
16 * with this program; if not, see <http://www.gnu.org/licenses/>.
17 */
18
2a6a4076
MA
19#ifndef I2C_DDC_H
20#define I2C_DDC_H
78c71af8
PM
21
22/* A simple I2C slave which just returns the contents of its EDID blob. */
23
24struct I2CDDCState {
25 /*< private >*/
26 I2CSlave i2c;
27 /*< public >*/
28 bool firstbyte;
29 uint8_t reg;
30 uint8_t edid_blob[128];
31};
32
33typedef struct I2CDDCState I2CDDCState;
34
35#define TYPE_I2CDDC "i2c-ddc"
36#define I2CDDC(obj) OBJECT_CHECK(I2CDDCState, (obj), TYPE_I2CDDC)
37
2a6a4076 38#endif /* I2C_DDC_H */
This page took 0.114846 seconds and 4 git commands to generate.