diff options
author | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2024-05-03 15:24:35 +0300 |
---|---|---|
committer | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2024-05-08 16:42:27 +0300 |
commit | afa1bf2d5df261e3e0dbecce1204106f11a8d351 (patch) | |
tree | 7e13dbe9392c81dc0221b743de5418c3f8cff04b /drivers/gpu/drm/i915/display/intel_vbt_defs.h | |
parent | e225161e2aff5dffd1ff754d86c17c7f9b6457f5 (diff) | |
download | linux-afa1bf2d5df261e3e0dbecce1204106f11a8d351.tar.gz linux-afa1bf2d5df261e3e0dbecce1204106f11a8d351.tar.bz2 linux-afa1bf2d5df261e3e0dbecce1204106f11a8d351.zip |
drm/i915/bios: Define VBT block 20 (OEM Customizable Modes) contents
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>
Diffstat (limited to 'drivers/gpu/drm/i915/display/intel_vbt_defs.h')
-rw-r--r-- | drivers/gpu/drm/i915/display/intel_vbt_defs.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/display/intel_vbt_defs.h b/drivers/gpu/drm/i915/display/intel_vbt_defs.h index 0ae1d242a420..bf1f2848f4cb 100644 --- a/drivers/gpu/drm/i915/display/intel_vbt_defs.h +++ b/drivers/gpu/drm/i915/display/intel_vbt_defs.h @@ -898,6 +898,30 @@ struct bdb_display_remove_old { } __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 */ |