75fa9b7e37
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
74 lines
1.1 KiB
Plaintext
74 lines
1.1 KiB
Plaintext
# SPDX-License-Identifier: GPL-2.0-only
|
|
#
|
|
# Video configuration
|
|
#
|
|
|
|
menu "Graphics support"
|
|
|
|
config APERTURE_HELPERS
|
|
bool
|
|
help
|
|
Support tracking and hand-over of aperture ownership. Required
|
|
by graphics drivers for firmware-provided framebuffers.
|
|
|
|
config SCREEN_INFO
|
|
bool
|
|
default n
|
|
|
|
config STI_CORE
|
|
bool
|
|
depends on PARISC
|
|
help
|
|
STI refers to the HP "Standard Text Interface" which is a set of
|
|
BIOS routines contained in a ROM chip in HP PA-RISC based machines.
|
|
|
|
config VIDEO
|
|
bool
|
|
default n
|
|
|
|
source "drivers/auxdisplay/Kconfig"
|
|
|
|
if HAS_IOMEM
|
|
|
|
config HAVE_FB_ATMEL
|
|
bool
|
|
|
|
source "drivers/char/agp/Kconfig"
|
|
|
|
source "drivers/gpu/vga/Kconfig"
|
|
|
|
source "drivers/gpu/host1x/Kconfig"
|
|
source "drivers/gpu/ipu-v3/Kconfig"
|
|
|
|
source "drivers/gpu/drm/Kconfig"
|
|
|
|
menu "Frame buffer Devices"
|
|
source "drivers/video/fbdev/Kconfig"
|
|
endmenu
|
|
|
|
source "drivers/video/backlight/Kconfig"
|
|
|
|
config VGASTATE
|
|
tristate
|
|
default n
|
|
|
|
config VIDEOMODE_HELPERS
|
|
bool
|
|
|
|
config HDMI
|
|
bool
|
|
|
|
endif # HAS_IOMEM
|
|
|
|
if VT
|
|
source "drivers/video/console/Kconfig"
|
|
endif
|
|
|
|
if FB_CORE || SGI_NEWPORT_CONSOLE
|
|
source "drivers/video/logo/Kconfig"
|
|
|
|
endif
|
|
|
|
|
|
endmenu
|