]> www.infradead.org Git - users/hch/configfs.git/commitdiff
drm/i915/bios: Define the "luminance and gamma" sub-struct of block 46
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 5 Jun 2024 13:47:56 +0000 (16:47 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 7 Jun 2024 11:39:59 +0000 (14:39 +0300)
Since BDB version 211 block 46 has included more luminance and
gamma related information. Define it fully. The data is semi-based
on DisplayID v2.0 apparently.

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

index da8694771f6990ef0917b60b316f72d72e612cff..1af8407e2081d2729ba1223e533f57a58f2a7d43 100644 (file)
@@ -1395,8 +1395,20 @@ struct chromaticity {
        u8 white_y_hi;
 } __packed;
 
+struct luminance_and_gamma {
+       u8 luminance_enable:1;                                          /* 211+ */
+       u8 gamma_enable:1;                                              /* 211+ */
+       u8 rsvd:6;
+
+       u16 min_luminance;                                              /* 211+ */
+       u16 max_luminance;                                              /* 211+ */
+       u16 one_percent_max_luminance;                                  /* 211+ */
+       u8 gamma;                                                       /* 211+ */
+} __packed;
+
 struct bdb_chromaticity {
        struct chromaticity chromaticity[16];
+       struct luminance_and_gamma luminance_and_gamma[16];             /* 211+ */
 } __packed;
 
 /*