blob: 195b2f3f04ef8f229eb493f19b00939a256fff1f [file] [log] [blame]
Nico Huber21da5742017-01-20 14:00:53 +01001--
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
15private package HW.GFX.GMA.PLLs
16with
17 Abstract_State => (State with Part_Of => GMA.State)
18is
19
20 -- Broxton DDI PHY PLLs are tied to the port.
21 -- So the allocation will be a stub.
22
23 -- XXX: Types should be private (but that triggers a bug in SPARK GPL 2016)
24 type T is (Invalid_PLL, DPLL_A, DPLL_B, DPLL_C);
25 Invalid : constant T := Invalid_PLL;
26
27 procedure Initialize is null
28 with
29 Global => (Output => State);
30
31 procedure Alloc
32 (Port_Cfg : in Port_Config;
33 PLL : out T;
34 Success : out Boolean);
35
36 pragma Warnings (GNATprove, Off, "subprogram ""*"" has no effect");
37 procedure Free (PLL : T);
38
39 procedure All_Off;
40 pragma Warnings (GNATprove, On, "subprogram ""*"" has no effect");
41
42 pragma Warnings (GNATprove, Off, "unused variable ""PLL""");
43 function Register_Value (PLL : T) return Word32;
44 pragma Warnings (GNATprove, On, "unused variable ""PLL""");
45
46end HW.GFX.GMA.PLLs;