blob: 7e6d000c7d42ad31a037fc75c7e28edb972cf969 [file] [log] [blame]
Nico Huber83693c82016-10-08 22:17:55 +02001--
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 Huber125a29e2016-10-18 00:23:54 +02006-- the Free Software Foundation; either version 2 of the License, or
7-- (at your option) any later version.
Nico Huber83693c82016-10-08 22:17:55 +02008--
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
15with HW.GFX.DP_Info;
16with HW.GFX.DP_Aux_Ch;
17
18private 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
50package HW.GFX.DP_Training
51is
52
53 procedure Train_DP
54 (Port : in T;
55 Link : in DP_Link;
56 Success : out Boolean);
57
58end HW.GFX.DP_Training;