xref: /openbmc/qemu/include/exec/address-spaces.h (revision a9c17e9a21af9c4bf9c08dedf0f0df4a6566cf52)
1022c62cbSPaolo Bonzini /*
2022c62cbSPaolo Bonzini  * Internal memory management interfaces
3022c62cbSPaolo Bonzini  *
4022c62cbSPaolo Bonzini  * Copyright 2011 Red Hat, Inc. and/or its affiliates
5022c62cbSPaolo Bonzini  *
6022c62cbSPaolo Bonzini  * Authors:
7022c62cbSPaolo Bonzini  *  Avi Kivity <avi@redhat.com>
8022c62cbSPaolo Bonzini  *
9022c62cbSPaolo Bonzini  * This work is licensed under the terms of the GNU GPL, version 2.  See
10022c62cbSPaolo Bonzini  * the COPYING file in the top-level directory.
11022c62cbSPaolo Bonzini  *
12022c62cbSPaolo Bonzini  */
13022c62cbSPaolo Bonzini 
14*121d0712SMarkus Armbruster #ifndef EXEC_ADDRESS_SPACES_H
15*121d0712SMarkus Armbruster #define EXEC_ADDRESS_SPACES_H
16022c62cbSPaolo Bonzini 
17022c62cbSPaolo Bonzini /*
18022c62cbSPaolo Bonzini  * Internal interfaces between memory.c/exec.c/vl.c.  Do not #include unless
19022c62cbSPaolo Bonzini  * you're one of them.
20022c62cbSPaolo Bonzini  */
21022c62cbSPaolo Bonzini 
22022c62cbSPaolo Bonzini #ifndef CONFIG_USER_ONLY
23022c62cbSPaolo Bonzini 
24022c62cbSPaolo Bonzini /* Get the root memory region.  This interface should only be used temporarily
25022c62cbSPaolo Bonzini  * until a proper bus interface is available.
26022c62cbSPaolo Bonzini  */
27022c62cbSPaolo Bonzini MemoryRegion *get_system_memory(void);
28022c62cbSPaolo Bonzini 
29022c62cbSPaolo Bonzini /* Get the root I/O port region.  This interface should only be used
30022c62cbSPaolo Bonzini  * temporarily until a proper bus interface is available.
31022c62cbSPaolo Bonzini  */
32022c62cbSPaolo Bonzini MemoryRegion *get_system_io(void);
33022c62cbSPaolo Bonzini 
34022c62cbSPaolo Bonzini extern AddressSpace address_space_memory;
35022c62cbSPaolo Bonzini extern AddressSpace address_space_io;
36022c62cbSPaolo Bonzini 
37022c62cbSPaolo Bonzini #endif
38022c62cbSPaolo Bonzini 
39022c62cbSPaolo Bonzini #endif
40