monitor: Fix tracepoint crash on JSON syntax error
[qemu/armbru.git] / include / hw / misc / mmio_interface.h
blob90d34fb2286f3d6f1fa66238a738ae234afcffbb
1 /*
2 * mmio_interface.h
4 * Copyright (C) 2017 : GreenSocs
5 * http://www.greensocs.com/ , email: info@greensocs.com
7 * Developed by :
8 * Frederic Konrad <fred.konrad@greensocs.com>
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation, either version 2 of the License, or
13 * (at your option)any later version.
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
20 * You should have received a copy of the GNU General Public License along
21 * with this program; if not, see <http://www.gnu.org/licenses/>.
25 #ifndef MMIO_INTERFACE_H
26 #define MMIO_INTERFACE_H
28 #include "exec/memory.h"
30 #define TYPE_MMIO_INTERFACE "mmio_interface"
31 #define MMIO_INTERFACE(obj) OBJECT_CHECK(MMIOInterface, (obj), \
32 TYPE_MMIO_INTERFACE)
34 typedef struct MMIOInterface {
35 DeviceState parent_obj;
37 MemoryRegion *subregion;
38 MemoryRegion ram_mem;
39 uint64_t start;
40 uint64_t end;
41 bool ro;
42 uint64_t id;
43 void *host_ptr;
44 } MMIOInterface;
46 void mmio_interface_map(MMIOInterface *s);
47 void mmio_interface_unmap(MMIOInterface *s);
49 #endif /* MMIO_INTERFACE_H */