| 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 |
| Angel Pons | 450c24c | 2020-05-13 00:49:52 +0200 | [diff] [blame] | 20 | (SBI_SSCDIVINTPHASE, |
| 21 | SBI_SSCDITHPHASE, |
| 22 | SBI_SSCCTL, |
| 23 | SBI_SSCDIVINTPHASE6, |
| Nico Huber | 83693c8 | 2016-10-08 22:17:55 +0200 | [diff] [blame] | 24 | SBI_SSCCTL6, |
| Angel Pons | 450c24c | 2020-05-13 00:49:52 +0200 | [diff] [blame] | 25 | SBI_SSCAUXDIV, |
| 26 | SBI_GEN0, |
| 27 | SBI_DBUFF0, |
| 28 | |
| 29 | SBI_MPHY_2008, |
| 30 | SBI_MPHY_206C, |
| 31 | SBI_MPHY_2080, |
| 32 | SBI_MPHY_208C, |
| 33 | SBI_MPHY_2098, |
| 34 | SBI_MPHY_20C4, |
| 35 | SBI_MPHY_20EC, |
| 36 | SBI_MPHY_2108, |
| 37 | SBI_MPHY_216C, |
| 38 | SBI_MPHY_2180, |
| 39 | SBI_MPHY_218C, |
| 40 | SBI_MPHY_2198, |
| 41 | SBI_MPHY_21C4, |
| 42 | SBI_MPHY_21EC, |
| 43 | SBI_MPHY_8008); |
| Nico Huber | 83693c8 | 2016-10-08 22:17:55 +0200 | [diff] [blame] | 44 | |
| 45 | procedure Read |
| 46 | (Dest : in Destination_Type; |
| 47 | Register : in Register_Type; |
| 48 | Value : out Word32); |
| 49 | |
| 50 | procedure Write |
| 51 | (Dest : in Destination_Type; |
| 52 | Register : in Register_Type; |
| 53 | Value : in Word32); |
| 54 | |
| 55 | procedure Unset_Mask |
| 56 | (Dest : in Destination_Type; |
| 57 | Register : in Register_Type; |
| 58 | Mask : in Word32); |
| 59 | |
| 60 | procedure Set_Mask |
| 61 | (Dest : in Destination_Type; |
| 62 | Register : in Register_Type; |
| 63 | Mask : in Word32); |
| 64 | |
| 65 | procedure Unset_And_Set_Mask |
| 66 | (Dest : in Destination_Type; |
| 67 | Register : in Register_Type; |
| 68 | Mask_Unset : in Word32; |
| 69 | Mask_Set : in Word32); |
| 70 | |
| 71 | end HW.GFX.GMA.PCH.Sideband; |