[PATCH DO NOT MERGE i-g-t v2 09/26] lib/unigraf: Add used defines for TSI_Types
Louis Chauvet
louis.chauvet at bootlin.com
Thu Jul 17 18:46:29 UTC 2025
Current unigraf public release are not c-compatible, this file hardcode
some values The next release of libTSI should include a c-compatible
TSI_types.h file, that will be directly used in place of this file.
---
lib/unigraf/TSI_types.h | 44 ++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 44 insertions(+)
diff --git a/lib/unigraf/TSI_types.h b/lib/unigraf/TSI_types.h
new file mode 100644
index 0000000000000000000000000000000000000000..583ee30ef658b1dbc98cde295fd63d8d36602725
--- /dev/null
+++ b/lib/unigraf/TSI_types.h
@@ -0,0 +1,44 @@
+/* SPDX-License-Identifier: MIT */
+
+// DO NOT MERGE THIS FILE
+//
+// Current unigraf public release are not c-compatible, this file hardcode some values
+// The next release of libTSI should include a c-compatible TSI_types.h file, that will
+// be directly used in place of this file
+
+#ifndef TSI_REG_H
+
+#define TSI_VERSION_TEXT 0x80000001
+#define TSI_DEVCAP_VIDEO_CAPTURE 0x00000001
+#define TSI_SEARCHOPTIONS_SHOW_DEVICES_IN_USE 0x00000001
+
+#define TSI_EDID_TE_INPUT 0x1100
+#define TSI_EDID_SELECT_STREAM 0x1102
+
+#define TSI_BASE_LEGACY_GENERIC(offset) (0x210 + offset)
+#define TSI_FORCE_HOT_PLUG_STATE_W TSI_BASE_LEGACY_GENERIC(0x2)
+
+#define TSI_BASE_HDRX(offset) (0x50000000u + 0x23000 + offset)
+#define TSI_HDRX_HPD_CONTROL_W TSI_BASE_HDRX(0x02)
+
+#define TSI_DPRX_LINK_FLAGS_MST 0x01
+#define TSI_DPRX_LINK_FLAGS_TPS3 0x02
+#define TSI_DPRX_LINK_FLAGS_TPS4 0x03
+#define TSI_DPRX_LINK_FLAGS_EDP 0x04
+#define TSI_DPRX_NOT_DOCUMENTED_SIDEBAND_MSG_SUPPORT 0x20
+
+#define TSI_BASE_DPRX(offset) (0x50000000u + 0x21000 + offset)
+#define TSI_DPRX_HPD_FORCE TSI_BASE_DPRX(0x12)
+#define TSI_DPRX_MST_SINK_COUNT TSI_BASE_DPRX(0x9D)
+
+#define TSI_BASE_LEGACY_DPRX(offset) (0x2b0 + offset)
+#define TSI_DPRX_DPCD_BASE_W TSI_BASE_LEGACY_DPRX(0x9)
+#define TSI_DPRX_DPCD_DATA TSI_BASE_LEGACY_DPRX(0xA)
+#define TSI_DPRX_LINK_FLAGS TSI_BASE_LEGACY_DPRX(0x12)
+#define TSI_DPRX_STREAM_SELECT TSI_BASE_LEGACY_DPRX(0x13)
+#define TSI_DPRX_CRC_R_R TSI_BASE_LEGACY_DPRX(0x14)
+#define TSI_DPRX_CRC_G_R TSI_BASE_LEGACY_DPRX(0x15)
+#define TSI_DPRX_CRC_B_R TSI_BASE_LEGACY_DPRX(0x16)
+#define TSI_DPRX_HPD_PULSE_W TSI_BASE_LEGACY_DPRX(0x1B)
+
+#endif
--
2.50.0
More information about the igt-dev
mailing list