1 // SPDX-License-Identifier: GPL-2.0+
7 #define LOG_CATEGORY UCLASS_VIDEO_OSD
11 #include <video_osd.h>
13 int video_osd_get_info(struct udevice *dev, struct video_osd_info *info)
15 struct video_osd_ops *ops = video_osd_get_ops(dev);
17 return ops->get_info(dev, info);
20 int video_osd_set_mem(struct udevice *dev, uint col, uint row, u8 *buf,
21 size_t buflen, uint count)
23 struct video_osd_ops *ops = video_osd_get_ops(dev);
25 return ops->set_mem(dev, col, row, buf, buflen, count);
28 int video_osd_set_size(struct udevice *dev, uint col, uint row)
30 struct video_osd_ops *ops = video_osd_get_ops(dev);
32 return ops->set_size(dev, col, row);
35 int video_osd_print(struct udevice *dev, uint col, uint row, ulong color,
38 struct video_osd_ops *ops = video_osd_get_ops(dev);
40 return ops->print(dev, col, row, color, text);
43 UCLASS_DRIVER(video_osd) = {
44 .id = UCLASS_VIDEO_OSD,
46 .flags = DM_UC_FLAG_SEQ_ALIAS,