blob: fc6cacfee17f08b29999bfa30bf037b2d32a057c [file] [log] [blame]
Nico Huber40820442017-01-20 14:00:53 +01001--
2-- Copyright (C) 2017 secunet Security Networks AG
3--
4-- This program is free software; you can redistribute it and/or modify
5-- it under the terms of the GNU General Public License as published by
6-- the Free Software Foundation; either version 2 of the License, or
7-- (at your option) any later version.
8--
9-- This program is distributed in the hope that it will be useful,
10-- but WITHOUT ANY WARRANTY; without even the implied warranty of
11-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12-- GNU General Public License for more details.
13--
14
Nico Huberfdd93652017-02-08 13:41:38 +010015with HW.GFX.GMA.DP_Info;
16
Nico Huber40820442017-01-20 14:00:53 +010017private package HW.GFX.GMA.DDI_Phy is
18
19 type T is (BC, A);
20
Nico Huberf6266002017-02-03 12:17:28 +010021 procedure Power_On (Phy : T);
22 procedure Power_Off (Phy : T);
23
24 subtype DDI_Phy_Port is GPU_Port range DIGI_A .. DIGI_C;
Nico Huber40820442017-01-20 14:00:53 +010025
Nico Huberafadcac2017-02-08 13:41:38 +010026 procedure Pre_PLL (Port_Cfg : Port_Config);
27
Nico Huberfdd93652017-02-08 13:41:38 +010028 Max_V_Swing : constant DP_Info.DP_Voltage_Swing := DP_Info.VS_Level_3;
29
30 type Emph_Array is array (DP_Info.DP_Voltage_Swing) of DP_Info.DP_Pre_Emph;
31 Max_Pre_Emph : constant Emph_Array :=
32 (DP_Info.VS_Level_0 => DP_Info.Emph_Level_3,
33 DP_Info.VS_Level_1 => DP_Info.Emph_Level_2,
34 DP_Info.VS_Level_2 => DP_Info.Emph_Level_1,
35 others => DP_Info.Emph_Level_0);
36
37 procedure Set_DP_Signal_Levels
38 (Port : Digital_Port;
39 Train_Set : DP_Info.Train_Set);
40
Nico Huber247adf32017-06-12 14:39:11 +020041 subtype HDMI_Buf_Trans_Range is DDI_HDMI_Buf_Trans_Range range 0 .. 9;
Nico Huberfdd93652017-02-08 13:41:38 +010042 procedure Set_HDMI_Signal_Levels
43 (Port : DDI_Phy_Port;
44 Level : HDMI_Buf_Trans_Range);
45
Nico Huber40820442017-01-20 14:00:53 +010046end HW.GFX.GMA.DDI_Phy;