]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
drm/i915/bios: Define VBT block 20 (OEM Customizable Modes) contents
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 3 May 2024 12:24:35 +0000 (15:24 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 8 May 2024 13:42:27 +0000 (16:42 +0300)
Define the contents of VBT block 20 (OEM Customizable Modes).
Each entry is either 26 or 28 bytes, depending on the BDB version.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240503122449.27266-22-ville.syrjala@linux.intel.com
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/display/intel_vbt_defs.h

index 0ae1d242a420f16003fd25546b9102ca706830ee..bf1f2848f4cb57f727c35a6ac43cc7e432b424e7 100644 (file)
@@ -897,6 +897,30 @@ struct bdb_display_remove_old {
        struct display_remove_entry_old table[];
 } __packed;
 
+/*
+ * Block 20 - OEM Customizable Modes
+ */
+
+struct oem_mode {
+       u8 enable_in_vbios:1;
+       u8 enable_in_os:1;
+       u8 enable_in_gop:1;                                     /* 207+ */
+       u8 reserved:5;
+       u8 display_flags;                                       /* ???-216 */
+       u16 x_res;
+       u16 y_res;
+       u8 color_depth;
+       u8 refresh_rate;
+       struct bdb_edid_dtd dtd;
+       u16 display_flags_2;                                    /* 217+ */
+} __packed;
+
+struct bdb_oem_custom {
+       u8 num_entries;
+       u8 entry_size;
+       struct oem_mode modes[];
+} __packed;
+
 /*
  * Block 22 - SDVO LVDS General Options
  */