blob: fb7215262fc63255e3be7d91c631fb84d2f9ede0 [file] [log] [blame]
Nico Huber5e9b1b52016-10-08 22:09:33 +02001--
2-- Copyright (C) 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
14package body HW.MMIO_Range
15with
16 Refined_State =>
17 (State => MMIO,
18 Base_Address => null)
19is
20
21 MMIO : Array_T with Volatile, Address => System'To_Address (Base_Addr);
22
23 procedure Read (Value : out Element_T; Index : in Index_T) is
24 begin
25 Value := MMIO (Index);
26 end Read;
27
28 procedure Write (Index : in Index_T; Value : in Element_T) is
29 begin
30 MMIO (Index) := Value;
31 end Write;
32
33 procedure Set_Base_Address (Base : Word64) is null;
34
35end HW.MMIO_Range;