dm: video: Add driver-model support to vesa graphics

Provide a function to run the Vesa BIOS for a given PCI device and obtain
the resulting configuration (e.g. display size) for use by the video
uclass. This makes it easier to write a video driver that uses vesa and
supports driver model.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
This commit is contained in:
Simon Glass authored and Bin Meng committed 2016-10-11 11:55:33 +08:00
1 parent d8441ea27e
commit ee87ee82e1
2 files changed
+57

No files matched your search

+2
View File
@@ -106,5 +106,7 @@ extern struct vbe_mode_info mode_info;
struct graphic_device;
int vbe_get_video_info(struct graphic_device *gdev);
struct video_priv;
int vbe_setup_video(struct udevice *dev, int (*int15_handler)(void));
#endif