Initial upstream commit
The history contained unlicensed code so everything got squashed, sorry.
Change-Id: I9f5775208f9df6fb29074bf3bc498f68cb17b3a0
Signed-off-by: Nico Huber <nico.huber@secunet.com>
diff --git a/common/ironlake/hw-gfx-gma-connectors-fdi.ads b/common/ironlake/hw-gfx-gma-connectors-fdi.ads
new file mode 100644
index 0000000..9f0cf08
--- /dev/null
+++ b/common/ironlake/hw-gfx-gma-connectors-fdi.ads
@@ -0,0 +1,43 @@
+--
+-- Copyright (C) 2016 secunet Security Networks AG
+--
+-- This program is free software; you can redistribute it and/or modify
+-- it under the terms of the GNU General Public License as published by
+-- the Free Software Foundation; version 2 of the License.
+--
+-- This program is distributed in the hope that it will be useful,
+-- but WITHOUT ANY WARRANTY; without even the implied warranty of
+-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+-- GNU General Public License for more details.
+--
+
+with HW.GFX.GMA.PCH;
+
+private package HW.GFX.GMA.Connectors.FDI
+is
+
+ subtype GPU_FDI_Port is GPU_Port range DIGI_B .. DIGI_D;
+
+ type PCH_FDI_Mapping is array (GPU_FDI_Port) of PCH.FDI_Port_Type;
+ PCH_FDIs : constant PCH_FDI_Mapping :=
+ (DIGI_B => PCH.FDI_A,
+ DIGI_C => PCH.FDI_B,
+ DIGI_D => PCH.FDI_C);
+
+ type Off_Type is (Link_Off, Clock_Off);
+
+ ----------------------------------------------------------------------------
+
+ procedure Pre_On (Port_Cfg : Port_Config)
+ with
+ Pre => Port_Cfg.Port in GPU_FDI_Port;
+
+ procedure Post_On
+ (Port_Cfg : in Port_Config;
+ Success : out Boolean)
+ with
+ Pre => Port_Cfg.Port in GPU_FDI_Port;
+
+ procedure Off (Port : GPU_FDI_Port; OT : Off_Type);
+
+end HW.GFX.GMA.Connectors.FDI;