| Nico Huber | 83693c8 | 2016-10-08 22:17:55 +0200 | [diff] [blame^] | 1 | -- |
| 2 | -- Copyright (C) 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.GMA.PCH; |
| 15 | |
| 16 | private package HW.GFX.GMA.Connectors.FDI |
| 17 | is |
| 18 | |
| 19 | subtype GPU_FDI_Port is GPU_Port range DIGI_B .. DIGI_D; |
| 20 | |
| 21 | type PCH_FDI_Mapping is array (GPU_FDI_Port) of PCH.FDI_Port_Type; |
| 22 | PCH_FDIs : constant PCH_FDI_Mapping := |
| 23 | (DIGI_B => PCH.FDI_A, |
| 24 | DIGI_C => PCH.FDI_B, |
| 25 | DIGI_D => PCH.FDI_C); |
| 26 | |
| 27 | type Off_Type is (Link_Off, Clock_Off); |
| 28 | |
| 29 | ---------------------------------------------------------------------------- |
| 30 | |
| 31 | procedure Pre_On (Port_Cfg : Port_Config) |
| 32 | with |
| 33 | Pre => Port_Cfg.Port in GPU_FDI_Port; |
| 34 | |
| 35 | procedure Post_On |
| 36 | (Port_Cfg : in Port_Config; |
| 37 | Success : out Boolean) |
| 38 | with |
| 39 | Pre => Port_Cfg.Port in GPU_FDI_Port; |
| 40 | |
| 41 | procedure Off (Port : GPU_FDI_Port; OT : Off_Type); |
| 42 | |
| 43 | end HW.GFX.GMA.Connectors.FDI; |