| Nico Huber | 4082044 | 2017-01-20 14:00:53 +0100 | [diff] [blame] | 1 | -- |
| 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 Huber | fdd9365 | 2017-02-08 13:41:38 +0100 | [diff] [blame^] | 15 | with HW.GFX.GMA.DP_Info; |
| 16 | |
| Nico Huber | 4082044 | 2017-01-20 14:00:53 +0100 | [diff] [blame] | 17 | private package HW.GFX.GMA.DDI_Phy is |
| 18 | |
| 19 | type T is (BC, A); |
| 20 | |
| Nico Huber | f626600 | 2017-02-03 12:17:28 +0100 | [diff] [blame] | 21 | 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 Huber | 4082044 | 2017-01-20 14:00:53 +0100 | [diff] [blame] | 25 | |
| Nico Huber | afadcac | 2017-02-08 13:41:38 +0100 | [diff] [blame] | 26 | procedure Pre_PLL (Port_Cfg : Port_Config); |
| 27 | |
| Nico Huber | fdd9365 | 2017-02-08 13:41:38 +0100 | [diff] [blame^] | 28 | 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 | |
| 41 | type HDMI_Buf_Trans_Range is range 0 .. 9; |
| 42 | procedure Set_HDMI_Signal_Levels |
| 43 | (Port : DDI_Phy_Port; |
| 44 | Level : HDMI_Buf_Trans_Range); |
| 45 | |
| Nico Huber | 4082044 | 2017-01-20 14:00:53 +0100 | [diff] [blame] | 46 | end HW.GFX.GMA.DDI_Phy; |