xref: /openbmc/qemu/include/exec/memory-internal.h (revision c39f95dc)
1 /*
2  * Declarations for obsolete exec.c functions
3  *
4  * Copyright 2011 Red Hat, Inc. and/or its affiliates
5  *
6  * Authors:
7  *  Avi Kivity <avi@redhat.com>
8  *
9  * This work is licensed under the terms of the GNU GPL, version 2 or
10  * later.  See the COPYING file in the top-level directory.
11  *
12  */
13 
14 /*
15  * This header is for use by exec.c and memory.c ONLY.  Do not include it.
16  * The functions declared here will be removed soon.
17  */
18 
19 #ifndef MEMORY_INTERNAL_H
20 #define MEMORY_INTERNAL_H
21 
22 #ifndef CONFIG_USER_ONLY
23 typedef struct AddressSpaceDispatch AddressSpaceDispatch;
24 
25 extern const MemoryRegionOps unassigned_mem_ops;
26 
27 bool memory_region_access_valid(MemoryRegion *mr, hwaddr addr,
28                                 unsigned size, bool is_write);
29 
30 void flatview_add_to_dispatch(FlatView *fv, MemoryRegionSection *section);
31 AddressSpaceDispatch *address_space_dispatch_new(FlatView *fv);
32 void address_space_dispatch_compact(AddressSpaceDispatch *d);
33 
34 AddressSpaceDispatch *address_space_to_dispatch(AddressSpace *as);
35 AddressSpaceDispatch *flatview_to_dispatch(FlatView *fv);
36 void address_space_dispatch_free(AddressSpaceDispatch *d);
37 
38 void mtree_print_dispatch(fprintf_function mon, void *f,
39                           struct AddressSpaceDispatch *d,
40                           MemoryRegion *root);
41 
42 #endif
43 #endif
44