blob: 1b33630ead83b208f8f92816b6748b5e322377a8 [file] [log] [blame]
Nico Huber5e9b1b52016-10-08 22:09:33 +02001--
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
6-- the Free Software Foundation; version 2 of the License.
7--
8-- This program is distributed in the hope that it will be useful,
9-- but WITHOUT ANY WARRANTY; without even the implied warranty of
10-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11-- GNU General Public License for more details.
12--
13
14with System;
15
16generic
17 Base_Addr : Word64;
18 type Element_T is mod <>;
19 type Index_T is range <>;
20 type Array_T is array (Index_T) of Element_T;
21package HW.MMIO_Range
22with
23 Abstract_State =>
24 ((State with External),
25 Base_Address),
26 Initializes => Base_Address
27is
28
29 procedure Read (Value : out Element_T; Index : in Index_T);
30
31 procedure Write (Index : in Index_T; Value : in Element_T);
32
33 procedure Set_Base_Address (Base : Word64);
34
35end HW.MMIO_Range;