summaryrefslogtreecommitdiffstats
path: root/include/linux/screen_info.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/screen_info.h')
-rw-r--r--include/linux/screen_info.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/linux/screen_info.h b/include/linux/screen_info.h
index 75303c1262..6a4a3cec46 100644
--- a/include/linux/screen_info.h
+++ b/include/linux/screen_info.h
@@ -49,6 +49,16 @@ static inline u64 __screen_info_lfb_size(const struct screen_info *si, unsigned
return lfb_size;
}
+static inline bool __screen_info_vbe_mode_nonvga(const struct screen_info *si)
+{
+ /*
+ * VESA modes typically run on VGA hardware. Set bit 5 signals that this
+ * is not the case. Drivers can then not make use of VGA resources. See
+ * Sec 4.4 of the VBE 2.0 spec.
+ */
+ return si->vesa_attributes & BIT(5);
+}
+
static inline unsigned int __screen_info_video_type(unsigned int type)
{
switch (type) {