| Nico Huber | 21da574 | 2017-01-20 14:00:53 +0100 | [diff] [blame^] | 1 | -- |
| 2 | -- Copyright (C) 2017 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 | |
| 15 | with HW.Debug; |
| 16 | with GNAT.Source_Info; |
| 17 | |
| 18 | package body HW.GFX.GMA.PLLs |
| 19 | with |
| 20 | Refined_State => (State => null) |
| 21 | is |
| 22 | |
| 23 | procedure Alloc |
| 24 | (Port_Cfg : in Port_Config; |
| 25 | PLL : out T; |
| 26 | Success : out Boolean) |
| 27 | is |
| 28 | begin |
| 29 | pragma Debug (Debug.Put_Line (GNAT.Source_Info.Enclosing_Entity)); |
| 30 | |
| 31 | case Port_Cfg.Port is |
| 32 | when DIGI_A => PLL := DPLL_A; |
| 33 | when DIGI_B => PLL := DPLL_B; |
| 34 | when DIGI_C => PLL := DPLL_C; |
| 35 | when others => PLL := Invalid_PLL; |
| 36 | end case; |
| 37 | |
| 38 | Success := PLL /= Invalid_PLL; |
| 39 | end Alloc; |
| 40 | |
| 41 | procedure Free (PLL : T) is |
| 42 | begin |
| 43 | null; -- FIXME |
| 44 | end Free; |
| 45 | |
| 46 | procedure All_Off is |
| 47 | begin |
| 48 | pragma Debug (Debug.Put_Line (GNAT.Source_Info.Enclosing_Entity)); |
| 49 | |
| 50 | null; -- FIXME |
| 51 | end All_Off; |
| 52 | |
| 53 | function Register_Value (PLL : T) return Word32 is |
| 54 | begin |
| 55 | return 0; -- FIXME |
| 56 | end Register_Value; |
| 57 | |
| 58 | end HW.GFX.GMA.PLLs; |