| 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 |
| 6 | -- the Free Software Foundation; version 2 of the License. |
| 7 | -- |
| 8 | -- This program is distributed in the hope that it will be useful, |
| 9 | -- but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 10 | -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 11 | -- GNU General Public License for more details. |
| 12 | -- |
| 13 | |
| 14 | with HW.GFX.DP_Info; |
| 15 | with HW.GFX.DP_Aux_Ch; |
| 16 | |
| 17 | private generic |
| 18 | |
| 19 | TPS3_Supported : Boolean; |
| 20 | |
| 21 | type T (<>) is limited private; |
| 22 | type Aux_T (<>) is limited private; |
| 23 | |
| 24 | with package Aux_Ch is new DP_Aux_Ch (T => Aux_T, others => <>); |
| 25 | |
| 26 | with package DP_Info is new GFX.DP_Info (T => Aux_T, Aux_Ch => Aux_Ch); |
| 27 | |
| 28 | with function To_Aux (Port : T) return Aux_T; |
| 29 | |
| 30 | with function Max_V_Swing (Port : T) return DP_Info.DP_Voltage_Swing; |
| 31 | |
| 32 | with function Max_Pre_Emph |
| 33 | (Port : T; |
| 34 | Train_Set : DP_Info.Train_Set) |
| 35 | return DP_Info.DP_Pre_Emph; |
| 36 | |
| 37 | with procedure Set_Pattern |
| 38 | (Port : T; |
| 39 | Link : DP_Link; |
| 40 | Pattern : DP_Info.Training_Pattern); |
| 41 | |
| 42 | with procedure Set_Signal_Levels |
| 43 | (Port : T; |
| 44 | Link : DP_Link; |
| 45 | Train_Set : DP_Info.Train_Set); |
| 46 | |
| 47 | with procedure Off (Connector : T); |
| 48 | |
| 49 | package HW.GFX.DP_Training |
| 50 | is |
| 51 | |
| 52 | procedure Train_DP |
| 53 | (Port : in T; |
| 54 | Link : in DP_Link; |
| 55 | Success : out Boolean); |
| 56 | |
| 57 | end HW.GFX.DP_Training; |