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