1 // SPDX-License-Identifier: GPL-2.0+
4 * Mario Six, Guntermann & Drunck GmbH, mario.six@gdsys.cc
11 int video_osd_get_info(struct udevice *dev, struct video_osd_info *info)
13 struct video_osd_ops *ops = video_osd_get_ops(dev);
15 return ops->get_info(dev, info);
18 int video_osd_set_mem(struct udevice *dev, uint col, uint row, u8 *buf,
19 size_t buflen, uint count)
21 struct video_osd_ops *ops = video_osd_get_ops(dev);
23 return ops->set_mem(dev, col, row, buf, buflen, count);
26 int video_osd_set_size(struct udevice *dev, uint col, uint row)
28 struct video_osd_ops *ops = video_osd_get_ops(dev);
30 return ops->set_size(dev, col, row);
33 int video_osd_print(struct udevice *dev, uint col, uint row, ulong color,
36 struct video_osd_ops *ops = video_osd_get_ops(dev);
38 return ops->print(dev, col, row, color, text);
41 UCLASS_DRIVER(video_osd) = {
42 .id = UCLASS_VIDEO_OSD,
44 .flags = DM_UC_FLAG_SEQ_ALIAS,