blob: 5e66b963db166ddae479804d54882228e0611515 [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
33 procedure Pre_On
34 (Pipe : in Pipe_Index;
35 Port_Cfg : in Port_Config;
36 PLL_Hint : in Word32;
37 Success : out Boolean) is
38 begin
39 pragma Debug (Debug.Put_Line (GNAT.Source_Info.Enclosing_Entity));
40 Success := True;
41 end Pre_On;
42
43 procedure Post_On
44 (Pipe : in Pipe_Index;
45 Port_Cfg : in Port_Config;
46 PLL_Hint : in Word32;
47 Success : out Boolean) is
48 begin
49 pragma Debug (Debug.Put_Line (GNAT.Source_Info.Enclosing_Entity));
50 Panel.Backlight_On (Port_Cfg.Panel);
51 Success := True;
52 end Post_On;
53
54 procedure Pre_Off (Port_Cfg : Port_Config) is
55 begin
56 pragma Debug (Debug.Put_Line (GNAT.Source_Info.Enclosing_Entity));
57 Panel.Backlight_Off (Port_Cfg.Panel);
58 Panel.Off (Port_Cfg.Panel);
59 end Pre_Off;
60
61 procedure Post_Off (Port_Cfg : Port_Config) is
62 begin
63 pragma Debug (Debug.Put_Line (GNAT.Source_Info.Enclosing_Entity));
64 end Post_Off;
65
66 procedure Pre_All_Off is
67 begin
68 pragma Debug (Debug.Put_Line (GNAT.Source_Info.Enclosing_Entity));
69 for P in Valid_Panels loop
70 Panel.Backlight_Off (P);
71 Panel.Off (P);
72 end loop;
73 end Pre_All_Off;
74
75 procedure Post_All_Off is
76 begin
77 pragma Debug (Debug.Put_Line (GNAT.Source_Info.Enclosing_Entity));
78 end Post_All_Off;
79
80end HW.GFX.GMA.Connectors;