| Nico Huber | 8c45bcf | 2016-11-20 17:30:57 +0100 | [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; either version 2 of the License, or |
| 7 | -- (at your option) any later version. |
| 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 | |
| Nico Huber | 040d9b6 | 2019-02-18 00:52:00 +0100 | [diff] [blame] | 15 | with HW.GFX.EDID; |
| 16 | |
| Nico Huber | 8c45bcf | 2016-11-20 17:30:57 +0100 | [diff] [blame] | 17 | package HW.GFX.GMA.Display_Probing |
| 18 | is |
| 19 | |
| Nico Huber | 8b381fc | 2024-03-26 18:04:19 +0100 | [diff] [blame] | 20 | type Port_List_Range is range 0 .. 20; |
| Nico Huber | 8c45bcf | 2016-11-20 17:30:57 +0100 | [diff] [blame] | 21 | type Port_List is array (Port_List_Range) of Port_Type; |
| Nico Huber | 4c7356d | 2016-12-16 14:22:32 +0100 | [diff] [blame] | 22 | All_Ports : constant Port_List := |
| Nico Huber | 8b381fc | 2024-03-26 18:04:19 +0100 | [diff] [blame] | 23 | (DP1, DP2, DP3, DP_TC1, DP_TC2, DP_TC3, DP_TC4, |
| 24 | HDMI1, HDMI2, HDMI3, HDMI_TC1, HDMI_TC2, HDMI_TC3, HDMI_TC4, |
| 25 | USBC1, USBC2, USBC3, USBC4, |
| 26 | Analog, LVDS, eDP); |
| Nico Huber | 8c45bcf | 2016-11-20 17:30:57 +0100 | [diff] [blame] | 27 | |
| Nico Huber | 040d9b6 | 2019-02-18 00:52:00 +0100 | [diff] [blame] | 28 | procedure Read_EDID |
| 29 | (Raw_EDID : out EDID.Raw_EDID_Data; |
| 30 | Port : in Active_Port_Type; |
| 31 | Success : out Boolean) |
| 32 | with |
| Nico Huber | 41e8674 | 2024-07-17 17:10:28 +0200 | [diff] [blame^] | 33 | Relaxed_Initialization => Raw_EDID, |
| 34 | Post => (if Success then Raw_EDID'Initialized and EDID.Valid (Raw_EDID)); |
| Nico Huber | 040d9b6 | 2019-02-18 00:52:00 +0100 | [diff] [blame] | 35 | |
| Nico Huber | 8c45bcf | 2016-11-20 17:30:57 +0100 | [diff] [blame] | 36 | procedure Scan_Ports |
| Nico Huber | 4c7356d | 2016-12-16 14:22:32 +0100 | [diff] [blame] | 37 | (Configs : out Pipe_Configs; |
| 38 | Ports : in Port_List := All_Ports; |
| 39 | Max_Pipe : in Pipe_Index := Pipe_Index'Last; |
| 40 | Keep_Power : in Boolean := False); |
| Nico Huber | 8c45bcf | 2016-11-20 17:30:57 +0100 | [diff] [blame] | 41 | |
| Nico Huber | 92de9c4 | 2019-09-29 19:03:58 +0200 | [diff] [blame] | 42 | procedure Hotplug_Events (Ports : out Port_List); |
| 43 | |
| Nico Huber | 8c45bcf | 2016-11-20 17:30:57 +0100 | [diff] [blame] | 44 | end HW.GFX.GMA.Display_Probing; |