summaryrefslogtreecommitdiff
path: root/lib/igt_chamelium.h
diff options
context:
space:
mode:
authorSimon Ser <simon.ser@intel.com>2019-06-11 13:25:07 +0300
committerSimon Ser <simon.ser@intel.com>2019-07-17 17:41:23 +0300
commitce3cf9b933eeb361a58e3d850320c6119f07217f (patch)
tree9254461d3f50cef212e63007885f673ebefa11d2 /lib/igt_chamelium.h
parentb7e0177300606b70b23f379138d0df1fb0ba3cb5 (diff)
lib/igt_chamelium: add chamelium_port_get_video_params
This new XML-RPC call allows to retrieve mode information from the Chamelium. We can use it to check the mode we've chosen has been applied correctly. The method has been added to the Chameleon API in commit [1]. [1]: https://chromium.googlesource.com/chromiumos/platform/chameleon/+/1df012d6ac9429a58a5e0f9362a1ff98f1bff8a7 Signed-off-by: Simon Ser <simon.ser@intel.com> Reviewed-by: Martin Peres <martin.peres@linux.intel.com>
Diffstat (limited to 'lib/igt_chamelium.h')
-rw-r--r--lib/igt_chamelium.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/igt_chamelium.h b/lib/igt_chamelium.h
index ce9e9ced..cd581382 100644
--- a/lib/igt_chamelium.h
+++ b/lib/igt_chamelium.h
@@ -53,6 +53,12 @@ enum chamelium_check {
CHAMELIUM_CHECK_CRC,
};
+struct chamelium_video_params {
+ double clock;
+ int htotal, hactive, hsync_offset, hsync_width, hsync_polarity;
+ int vtotal, vactive, vsync_offset, vsync_width, vsync_polarity;
+};
+
struct chamelium_audio_file {
char *path;
int rate; /* Hz */
@@ -113,6 +119,9 @@ void chamelium_port_set_ddc_state(struct chamelium *chamelium,
void chamelium_port_get_resolution(struct chamelium *chamelium,
struct chamelium_port *port,
int *x, int *y);
+void chamelium_port_get_video_params(struct chamelium *chamelium,
+ struct chamelium_port *port,
+ struct chamelium_video_params *params);
igt_crc_t *chamelium_get_crc_for_area(struct chamelium *chamelium,
struct chamelium_port *port,
int x, int y, int w, int h);