| Nico Huber | 83693c8 | 2016-10-08 22:17:55 +0200 | [diff] [blame] | 1 | -- |
| 2 | -- Copyright (C) 2015 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 |
| Nico Huber | 125a29e | 2016-10-18 00:23:54 +0200 | [diff] [blame] | 6 | -- the Free Software Foundation; either version 2 of the License, or |
| 7 | -- (at your option) any later version. |
| Nico Huber | 83693c8 | 2016-10-08 22:17:55 +0200 | [diff] [blame] | 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 | private package HW.GFX.GMA.PCH.Sideband is |
| 16 | |
| 17 | type Destination_Type is (SBI_ICLK, SBI_MPHY); |
| 18 | |
| 19 | type Register_Type is |
| 20 | (SBI_SSCDIVINTPHASE6, |
| 21 | SBI_SSCCTL6, |
| 22 | SBI_SSCAUXDIV); |
| 23 | |
| 24 | procedure Read |
| 25 | (Dest : in Destination_Type; |
| 26 | Register : in Register_Type; |
| 27 | Value : out Word32); |
| 28 | |
| 29 | procedure Write |
| 30 | (Dest : in Destination_Type; |
| 31 | Register : in Register_Type; |
| 32 | Value : in Word32); |
| 33 | |
| 34 | procedure Unset_Mask |
| 35 | (Dest : in Destination_Type; |
| 36 | Register : in Register_Type; |
| 37 | Mask : in Word32); |
| 38 | |
| 39 | procedure Set_Mask |
| 40 | (Dest : in Destination_Type; |
| 41 | Register : in Register_Type; |
| 42 | Mask : in Word32); |
| 43 | |
| 44 | procedure Unset_And_Set_Mask |
| 45 | (Dest : in Destination_Type; |
| 46 | Register : in Register_Type; |
| 47 | Mask_Unset : in Word32; |
| 48 | Mask_Set : in Word32); |
| 49 | |
| 50 | end HW.GFX.GMA.PCH.Sideband; |