2 * (c) 2013-2014 Alexander Warg <warg@os.inf.tu-dresden.de>
3 * economic rights: Technische Universität Dresden (Germany)
5 * This file is part of TUD:OS and distributed under the terms of the
6 * GNU General Public License 2.
7 * Please see the COPYING-GPL-2 file for details.
11 #include <l4/sys/l4int.h>
14 #include "mmio_device.h"
22 Region(l4_addr_t a) : start(a), end(a) {}
23 Region(l4_addr_t s, l4_addr_t e) : start(s), end(e) {}
25 static Region ss(l4_addr_t start, l4_size_t size)
26 { return Region(start, start + size - 1); }
28 bool operator < (Region const &r) const { return end < r.start; }
31 typedef std::map<Region, Vmm::Mmio_device *> Vm_mem;