X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=include%2Fvideo_bridge.h;h=22e93dbb53b3a4cf2b32f74596684ee5473ef457;hb=634fe73eedb9551a13296f356afae67539583f17;hp=c7b8681849c7da82421a8bc44d4a14410506440d;hpb=ae27120c31d58b8bb694d9155bcffdcfae8552a6;p=oweals%2Fu-boot.git diff --git a/include/video_bridge.h b/include/video_bridge.h index c7b8681849..22e93dbb53 100644 --- a/include/video_bridge.h +++ b/include/video_bridge.h @@ -1,8 +1,7 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ /* * Copyright (C) 2015 Google, Inc * Written by Simon Glass - * - * SPDX-License-Identifier: GPL-2.0+ */ #ifndef __VIDEO_BRIDGE @@ -53,6 +52,16 @@ struct video_bridge_ops { * @return 0 if OK, -ve on error */ int (*set_backlight)(struct udevice *dev, int percent); + + /** + * read_edid() - Read information from EDID + * + * @dev: Device to read from + * @buf: Buffer to read into + * @buf_size: Buffer size + * @return number of bytes read, <=0 for error + */ + int (*read_edid)(struct udevice *dev, u8 *buf, int buf_size); }; #define video_bridge_get_ops(dev) \ @@ -89,4 +98,14 @@ int video_bridge_set_active(struct udevice *dev, bool active); */ int video_bridge_check_attached(struct udevice *dev); +/** + * video_bridge_read_edid() - Read information from EDID + * + * @dev: Device to read from + * @buf: Buffer to read into + * @buf_size: Buffer size + * @return number of bytes read, <=0 for error + */ +int video_bridge_read_edid(struct udevice *dev, u8 *buf, int buf_size); + #endif