summaryrefslogtreecommitdiff
path: root/drivers/video/Makefile
diff options
context:
space:
mode:
authorThomas Zimmermann <tzimmermann@suse.de>2024-02-12 12:06:09 +0300
committerThomas Zimmermann <tzimmermann@suse.de>2024-02-14 12:09:13 +0300
commit75fa9b7e375e35739663cde0252d31e586c6314a (patch)
treebc45e1a78af8af4e11e661af408c751bf3618f47 /drivers/video/Makefile
parent6b1f93ea345947c94bf3a7a6e668a2acfd310918 (diff)
downloadlinux-75fa9b7e375e35739663cde0252d31e586c6314a.tar.xz
video: Add helpers for decoding screen_info
The plain values as stored in struct screen_info need to be decoded before being used. Add helpers that decode the type of video output and the framebuffer I/O aperture. Old or non-x86 systems may not set the type of video directly, but only indicate the presence by storing 0x01 in orig_video_isVGA. The decoding logic in screen_info_video_type() takes this into account. It then follows similar code in vgacon's vgacon_startup() to detect the video type from the given values. A call to screen_info_resources() returns all known resources of the given screen_info. The resources' values have been taken from existing code in vgacon and vga16fb. These drivers can later be converted to use the new interfaces. v2: * return ssize_t from screen_info_resources() * don't call __screen_info_has_lfb() unnecessarily Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de> Reviewed-by: Javier Martinez Canillas <javierm@redhat.com> Link: https://patchwork.freedesktop.org/patch/msgid/20240212090736.11464-2-tzimmermann@suse.de
Diffstat (limited to 'drivers/video/Makefile')
-rw-r--r--drivers/video/Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/video/Makefile b/drivers/video/Makefile
index 9eb5557911de..117cbdbb58c2 100644
--- a/drivers/video/Makefile
+++ b/drivers/video/Makefile
@@ -1,11 +1,14 @@
# SPDX-License-Identifier: GPL-2.0
obj-$(CONFIG_APERTURE_HELPERS) += aperture.o
+obj-$(CONFIG_SCREEN_INFO) += screen_info.o
obj-$(CONFIG_STI_CORE) += sticore.o
obj-$(CONFIG_VGASTATE) += vgastate.o
obj-$(CONFIG_VIDEO) += cmdline.o nomodeset.o
obj-$(CONFIG_HDMI) += hdmi.o
+screen_info-y := screen_info_generic.o
+
obj-$(CONFIG_VT) += console/
obj-$(CONFIG_FB_STI) += console/
obj-$(CONFIG_LOGO) += logo/