blob: 5dcdbd4f661008114e2644cd1b79dc377d82c9ff [file] [log] [blame]
Nico Huber8c45bcf2016-11-20 17:30:57 +01001--
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 Huber040d9b62019-02-18 00:52:00 +010015with HW.GFX.EDID;
16
Nico Huber8c45bcf2016-11-20 17:30:57 +010017package HW.GFX.GMA.Display_Probing
18is
19
Nico Huber8beafd72020-01-07 14:59:44 +010020 type Port_List_Range is range 0 .. 8;
Nico Huber8c45bcf2016-11-20 17:30:57 +010021 type Port_List is array (Port_List_Range) of Port_Type;
Nico Huber4c7356d2016-12-16 14:22:32 +010022 All_Ports : constant Port_List :=
Nico Huber8beafd72020-01-07 14:59:44 +010023 (DP1, DP2, DP3, HDMI1, HDMI2, HDMI3, Analog, LVDS, eDP);
Nico Huber8c45bcf2016-11-20 17:30:57 +010024
Nico Huber040d9b62019-02-18 00:52:00 +010025 procedure Read_EDID
26 (Raw_EDID : out EDID.Raw_EDID_Data;
27 Port : in Active_Port_Type;
28 Success : out Boolean)
29 with
30 Post => (if Success then EDID.Valid (Raw_EDID));
31
Nico Huber8c45bcf2016-11-20 17:30:57 +010032 procedure Scan_Ports
Nico Huber4c7356d2016-12-16 14:22:32 +010033 (Configs : out Pipe_Configs;
34 Ports : in Port_List := All_Ports;
35 Max_Pipe : in Pipe_Index := Pipe_Index'Last;
36 Keep_Power : in Boolean := False);
Nico Huber8c45bcf2016-11-20 17:30:57 +010037
Nico Huber92de9c42019-09-29 19:03:58 +020038 procedure Hotplug_Events (Ports : out Port_List);
39
Nico Huber8c45bcf2016-11-20 17:30:57 +010040end HW.GFX.GMA.Display_Probing;