]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
drm/i915/bios: Define VBT block 3 (Display Toggle Option) contents
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 3 May 2024 12:24:23 +0000 (15:24 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 8 May 2024 13:35:36 +0000 (16:35 +0300)
Define the contents of VBT block 3 (Display Toggle Option).

On modern VBTs this is just a single byte, but on ALM there is
also some extra to do with toggle lists or something.

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

index 6858a7631eee447c8cd0c2cb42f721e62383962f..816d8107143795255cf06dda6ecd6c89dd835f96 100644 (file)
@@ -141,7 +141,7 @@ struct bdb_header {
 enum bdb_block_id {
        BDB_GENERAL_FEATURES            = 1,
        BDB_GENERAL_DEFINITIONS         = 2,
-       BDB_OLD_TOGGLE_LIST             = 3,
+       BDB_DISPLAY_TOGGLE              = 3,
        BDB_MODE_SUPPORT_LIST           = 4,
        BDB_GENERIC_MODE_TABLE          = 5,
        BDB_EXT_MMIO_REGS               = 6, /* VBIOS only */
@@ -561,6 +561,16 @@ struct bdb_general_definitions {
        u8 devices[];
 } __packed;
 
+/*
+ * Block 3 - Display Toggle Option Block
+ */
+
+struct bdb_display_toggle {
+       u8 feature_bits;
+       u16 num_entries;                                        /* ALM only */
+       u16 list[];                                             /* ALM only */
+} __packed;
+
 /*
  * Block 9 - SRD Feature Block
  */