| Nico Huber | 83693c8 | 2016-10-08 22:17:55 +0200 | [diff] [blame] | 1 | -- |
| 2 | -- Copyright (C) 2015-2016 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 |
| Nico Huber | 125a29e | 2016-10-18 00:23:54 +0200 | [diff] [blame^] | 6 | -- the Free Software Foundation; either version 2 of the License, or |
| 7 | -- (at your option) any later version. |
| Nico Huber | 83693c8 | 2016-10-08 22:17:55 +0200 | [diff] [blame] | 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 | |
| 15 | with HW.GFX.DP_Info; |
| 16 | with HW.GFX.DP_Aux_Ch; |
| 17 | |
| 18 | private generic |
| 19 | |
| 20 | TPS3_Supported : Boolean; |
| 21 | |
| 22 | type T (<>) is limited private; |
| 23 | type Aux_T (<>) is limited private; |
| 24 | |
| 25 | with package Aux_Ch is new DP_Aux_Ch (T => Aux_T, others => <>); |
| 26 | |
| 27 | with package DP_Info is new GFX.DP_Info (T => Aux_T, Aux_Ch => Aux_Ch); |
| 28 | |
| 29 | with function To_Aux (Port : T) return Aux_T; |
| 30 | |
| 31 | with function Max_V_Swing (Port : T) return DP_Info.DP_Voltage_Swing; |
| 32 | |
| 33 | with function Max_Pre_Emph |
| 34 | (Port : T; |
| 35 | Train_Set : DP_Info.Train_Set) |
| 36 | return DP_Info.DP_Pre_Emph; |
| 37 | |
| 38 | with procedure Set_Pattern |
| 39 | (Port : T; |
| 40 | Link : DP_Link; |
| 41 | Pattern : DP_Info.Training_Pattern); |
| 42 | |
| 43 | with procedure Set_Signal_Levels |
| 44 | (Port : T; |
| 45 | Link : DP_Link; |
| 46 | Train_Set : DP_Info.Train_Set); |
| 47 | |
| 48 | with procedure Off (Connector : T); |
| 49 | |
| 50 | package HW.GFX.DP_Training |
| 51 | is |
| 52 | |
| 53 | procedure Train_DP |
| 54 | (Port : in T; |
| 55 | Link : in DP_Link; |
| 56 | Success : out Boolean); |
| 57 | |
| 58 | end HW.GFX.DP_Training; |