diff options
author | Simon Ser <simon.ser@intel.com> | 2019-06-19 10:49:58 +0300 |
---|---|---|
committer | Simon Ser <simon.ser@intel.com> | 2019-07-19 10:52:58 +0300 |
commit | c002f3ef5a51b27df0f28e8a64a7a5381aa2e158 (patch) | |
tree | eb004a681478851b719886e4fc022dca21231766 /lib/igt_chamelium.h | |
parent | 043dae641dd5b2d403eda0a94da9a4d81ebff244 (diff) | |
download | platform_external_igt-gpu-tools-c002f3ef5a51b27df0f28e8a64a7a5381aa2e158.tar.gz platform_external_igt-gpu-tools-c002f3ef5a51b27df0f28e8a64a7a5381aa2e158.tar.bz2 platform_external_igt-gpu-tools-c002f3ef5a51b27df0f28e8a64a7a5381aa2e158.zip |
lib/igt_chamelium: add CHAMELIUM_MAX_PORTS
We will always be able to find an upper bound for the number of connectors
supported by a Chamelium board. Instead of using dynamic arrays, simplify the
code by using static ones.
More code will need to have arrays of ports in the future.
Signed-off-by: Simon Ser <simon.ser@intel.com>
Reviewed-by: Arkadiusz Hiler <arkadiusz.hiler@intel.com>
Diffstat (limited to 'lib/igt_chamelium.h')
-rw-r--r-- | lib/igt_chamelium.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/igt_chamelium.h b/lib/igt_chamelium.h index 7f77745f..b6b7eb44 100644 --- a/lib/igt_chamelium.h +++ b/lib/igt_chamelium.h @@ -68,6 +68,13 @@ struct chamelium_audio_file { struct chamelium_edid; /** + * CHAMELIUM_MAX_PORTS: the maximum number of ports supported by igt_chamelium. + * + * For now, we have 1 VGA, 1 HDMI and 2 DisplayPort ports. + */ +#define CHAMELIUM_MAX_PORTS 4 + +/** * CHAMELIUM_DEFAULT_EDID: provide this ID to #chamelium_port_set_edid to use * the default EDID. */ |