xref: /qemu/include/system/address-spaces.h (revision dfc56946a70052136126f6a207f237af8032d74a)
11c0ffa58SAvi Kivity /*
207f35073SDong Xu Wang  * Internal memory management interfaces
31c0ffa58SAvi Kivity  *
41c0ffa58SAvi Kivity  * Copyright 2011 Red Hat, Inc. and/or its affiliates
51c0ffa58SAvi Kivity  *
61c0ffa58SAvi Kivity  * Authors:
71c0ffa58SAvi Kivity  *  Avi Kivity <avi@redhat.com>
81c0ffa58SAvi Kivity  *
91c0ffa58SAvi Kivity  * This work is licensed under the terms of the GNU GPL, version 2.  See
101c0ffa58SAvi Kivity  * the COPYING file in the top-level directory.
111c0ffa58SAvi Kivity  *
121c0ffa58SAvi Kivity  */
131c0ffa58SAvi Kivity 
14*dfc56946SRichard Henderson #ifndef SYSTEM_ADDRESS_SPACES_H
15*dfc56946SRichard Henderson #define SYSTEM_ADDRESS_SPACES_H
161c0ffa58SAvi Kivity 
171c0ffa58SAvi Kivity /*
181c0ffa58SAvi Kivity  * Internal interfaces between memory.c/exec.c/vl.c.  Do not #include unless
191c0ffa58SAvi Kivity  * you're one of them.
201c0ffa58SAvi Kivity  */
211c0ffa58SAvi Kivity 
221c0ffa58SAvi Kivity /* Get the root memory region.  This interface should only be used temporarily
231c0ffa58SAvi Kivity  * until a proper bus interface is available.
241c0ffa58SAvi Kivity  */
251c0ffa58SAvi Kivity MemoryRegion *get_system_memory(void);
261c0ffa58SAvi Kivity 
27309cb471SAvi Kivity /* Get the root I/O port region.  This interface should only be used
28309cb471SAvi Kivity  * temporarily until a proper bus interface is available.
29309cb471SAvi Kivity  */
30309cb471SAvi Kivity MemoryRegion *get_system_io(void);
31309cb471SAvi Kivity 
32f6790af6SAvi Kivity extern AddressSpace address_space_memory;
33f6790af6SAvi Kivity extern AddressSpace address_space_io;
34f6790af6SAvi Kivity 
351c0ffa58SAvi Kivity #endif
36