| Nico Huber | 5e9b1b5 | 2016-10-08 22:09:33 +0200 | [diff] [blame] | 1 | -- |
| 2 | -- Copyright (C) 2015-2016 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 | aab715f | 2016-10-18 00:22:25 +0200 | [diff] [blame^] | 6 | -- the Free Software Foundation; either version 2 of the License, or |
| 7 | -- (at your option) any later version. |
| Nico Huber | 5e9b1b5 | 2016-10-08 22:09:33 +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 | with System; |
| 16 | |
| 17 | generic |
| 18 | Base_Addr : Word64; |
| 19 | type Element_T is mod <>; |
| 20 | type Index_T is range <>; |
| 21 | type Array_T is array (Index_T) of Element_T; |
| 22 | package HW.MMIO_Range |
| 23 | with |
| 24 | Abstract_State => |
| 25 | ((State with External), |
| 26 | Base_Address), |
| 27 | Initializes => Base_Address |
| 28 | is |
| 29 | |
| 30 | procedure Read (Value : out Element_T; Index : in Index_T); |
| 31 | |
| 32 | procedure Write (Index : in Index_T; Value : in Element_T); |
| 33 | |
| 34 | procedure Set_Base_Address (Base : Word64); |
| 35 | |
| 36 | end HW.MMIO_Range; |