4 * Copyright (C) 2017 : GreenSocs
5 * http://www.greensocs.com/ , email: info@greensocs.com
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), \
34 typedef struct MMIOInterface
{
35 DeviceState parent_obj
;
37 MemoryRegion
*subregion
;
46 void mmio_interface_map(MMIOInterface
*s
);
47 void mmio_interface_unmap(MMIOInterface
*s
);
49 #endif /* MMIO_INTERFACE_H */