drmutils: Add support for Concurrent Writeback feature

1. Define Capture modes for Concurrent Writeback feature.
2. Define DRM CRTC operation to set the Capture mode.

CRs-Fixed: 2217822
Change-Id: I7c2f614edda4d0a7918795085073191585bdf0c8
diff --git a/libdrmutils/drm_interface.h b/libdrmutils/drm_interface.h
index 9c96057..5df56dc 100644
--- a/libdrmutils/drm_interface.h
+++ b/libdrmutils/drm_interface.h
@@ -297,6 +297,12 @@
    */
   CRTC_SET_IDLE_TIMEOUT,
   /*
+   * Op: Sets Capture mode for Concurrent Writeback feature.
+   * Arg: uint32_t - CRTC ID
+   *      uint32_t - Capture mode
+   */
+  CRTC_SET_CAPTURE_MODE,
+  /*
    * Op: Returns retire fence for this commit. Should be called after Commit() on
    * DRMAtomicReqInterface.
    * Arg: uint32_t - Connector ID
@@ -564,6 +570,7 @@
   drm_panel_hdr_properties panel_hdr_prop;
   uint32_t transfer_time_us;
   drm_msm_ext_hdr_properties ext_hdr_prop;
+  bool concurrent_writeback;
 };
 
 /* Identifier token for a display */
@@ -696,6 +703,11 @@
   SERIAL = 2,
 };
 
+enum struct DRMCWbCaptureMode {
+  MIXER_OUT = 0,
+  DSPP_OUT = 1,
+};
+
 struct DRMSolidfillStage {
   DRMRect bounding_rect {};
   bool is_exclusion_rect = false;