1 -- SPDX-License-Identifier: GPL-2.0-only
4 with HW
.GFX
.GMA
.Display_Probing
;
11 (raw_edid
: out HW
.GFX
.EDID
.Raw_EDID_Data
;
12 port
: in Interfaces
.C
.int
)
13 return Interfaces
.C
.int
15 use type Interfaces
.C
.int
;
16 success
: Boolean := true;
18 if port
not in Active_Port_Type
'Pos (Active_Port_Type
'First)
19 .. Active_Port_Type
'Pos (Active_Port_Type
'Last)
21 raw_edid
:= (others => 0);
24 if not HW
.GFX
.GMA
.Is_Initialized
then
25 HW
.GFX
.GMA
.Initialize
(Success
=> success
);
28 HW
.GFX
.GMA
.Display_Probing
.Read_EDID
29 (raw_edid
, Active_Port_Type
'Val (port
), success
);