| Tim Wawrzynczak | 605660b | 2022-06-08 12:48:19 -0600 | [diff] [blame] | 1 | -- |
| 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 | |
| 15 | with HW.GFX.GMA.Config; |
| 16 | with HW.GFX.GMA.Panel; |
| 17 | |
| 18 | with HW.Debug; |
| 19 | with GNAT.Source_Info; |
| 20 | |
| 21 | package 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 | |
| 80 | end HW.GFX.GMA.Connectors; |