1
2
3
4
5
6
7#include <common.h>
8#include <dm.h>
9#include <video_osd.h>
10
11int video_osd_get_info(struct udevice *dev, struct video_osd_info *info)
12{
13 struct video_osd_ops *ops = video_osd_get_ops(dev);
14
15 return ops->get_info(dev, info);
16}
17
18int video_osd_set_mem(struct udevice *dev, uint col, uint row, u8 *buf,
19 size_t buflen, uint count)
20{
21 struct video_osd_ops *ops = video_osd_get_ops(dev);
22
23 return ops->set_mem(dev, col, row, buf, buflen, count);
24}
25
26int video_osd_set_size(struct udevice *dev, uint col, uint row)
27{
28 struct video_osd_ops *ops = video_osd_get_ops(dev);
29
30 return ops->set_size(dev, col, row);
31}
32
33int video_osd_print(struct udevice *dev, uint col, uint row, ulong color,
34 char *text)
35{
36 struct video_osd_ops *ops = video_osd_get_ops(dev);
37
38 return ops->print(dev, col, row, color, text);
39}
40
41UCLASS_DRIVER(video_osd) = {
42 .id = UCLASS_VIDEO_OSD,
43 .name = "video_osd",
44 .flags = DM_UC_FLAG_SEQ_ALIAS,
45};
46