blob: 35e06924d4d5f8fed4f03ce7d9df993ee0d37fa9 [file] [log] [blame]
Tim Wawrzynczak605660b2022-06-08 12:48:19 -06001--
2-- Copyright (C) 2022 Google, LLC
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
15with HW.GFX.GMA.Config;
16with HW.GFX.GMA.Panel;
17
18with HW.Debug;
19with GNAT.Source_Info;
20
21package body HW.GFX.GMA.Connectors is
22
23 procedure Post_Reset_Off is
24 begin
25 pragma Debug (Debug.Put_Line (GNAT.Source_Info.Enclosing_Entity));
26 end Post_Reset_Off;
27
28 procedure Initialize is
29 begin
30 pragma Debug (Debug.Put_Line (GNAT.Source_Info.Enclosing_Entity));
31 end Initialize;
32
Nico Hubera8254482024-07-03 12:23:00 +020033 ---------------------------------------------------------------------
34
35 procedure Prepare
36 (Port : in Active_Port_Type;
37 Port_Cfg : in out Port_Config;
38 Success : out Boolean)
39 is
40 begin
41 Success := False;
42 end;
43
44 ---------------------------------------------------------------------
45
Tim Wawrzynczak605660b2022-06-08 12:48:19 -060046 procedure Pre_On
47 (Pipe : in Pipe_Index;
48 Port_Cfg : in Port_Config;
49 PLL_Hint : in Word32;
50 Success : out Boolean) is
51 begin
52 pragma Debug (Debug.Put_Line (GNAT.Source_Info.Enclosing_Entity));
53 Success := True;
54 end Pre_On;
55
56 procedure Post_On
57 (Pipe : in Pipe_Index;
58 Port_Cfg : in Port_Config;
59 PLL_Hint : in Word32;
60 Success : out Boolean) is
61 begin
62 pragma Debug (Debug.Put_Line (GNAT.Source_Info.Enclosing_Entity));
63 Panel.Backlight_On (Port_Cfg.Panel);
64 Success := True;
65 end Post_On;
66
67 procedure Pre_Off (Port_Cfg : Port_Config) is
68 begin
69 pragma Debug (Debug.Put_Line (GNAT.Source_Info.Enclosing_Entity));
70 Panel.Backlight_Off (Port_Cfg.Panel);
71 Panel.Off (Port_Cfg.Panel);
72 end Pre_Off;
73
74 procedure Post_Off (Port_Cfg : Port_Config) is
75 begin
76 pragma Debug (Debug.Put_Line (GNAT.Source_Info.Enclosing_Entity));
77 end Post_Off;
78
79 procedure Pre_All_Off is
80 begin
81 pragma Debug (Debug.Put_Line (GNAT.Source_Info.Enclosing_Entity));
82 for P in Valid_Panels loop
83 Panel.Backlight_Off (P);
84 Panel.Off (P);
85 end loop;
86 end Pre_All_Off;
87
88 procedure Post_All_Off is
89 begin
90 pragma Debug (Debug.Put_Line (GNAT.Source_Info.Enclosing_Entity));
91 end Post_All_Off;
92
93end HW.GFX.GMA.Connectors;