Avi Kivity | 1c0ffa5 | 2011-07-26 14:26:04 +0300 | [diff] [blame] | 1 | /* |
Dong Xu Wang | 07f3507 | 2011-11-22 18:06:26 +0800 | [diff] [blame] | 2 | * Internal memory management interfaces |
Avi Kivity | 1c0ffa5 | 2011-07-26 14:26:04 +0300 | [diff] [blame] | 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. See |
| 10 | * the COPYING file in the top-level directory. |
| 11 | * |
| 12 | */ |
| 13 | |
| 14 | #ifndef EXEC_MEMORY_H |
| 15 | #define EXEC_MEMORY_H |
| 16 | |
| 17 | /* |
| 18 | * Internal interfaces between memory.c/exec.c/vl.c. Do not #include unless |
| 19 | * you're one of them. |
| 20 | */ |
| 21 | |
| 22 | #include "memory.h" |
| 23 | |
| 24 | #ifndef CONFIG_USER_ONLY |
| 25 | |
| 26 | /* Get the root memory region. This interface should only be used temporarily |
| 27 | * until a proper bus interface is available. |
| 28 | */ |
| 29 | MemoryRegion *get_system_memory(void); |
| 30 | |
Avi Kivity | 309cb47 | 2011-08-08 16:09:03 +0300 | [diff] [blame] | 31 | /* Get the root I/O port region. This interface should only be used |
| 32 | * temporarily until a proper bus interface is available. |
| 33 | */ |
| 34 | MemoryRegion *get_system_io(void); |
| 35 | |
Avi Kivity | 1c0ffa5 | 2011-07-26 14:26:04 +0300 | [diff] [blame] | 36 | /* Set the root memory region. This region is the system memory map. */ |
| 37 | void set_system_memory_map(MemoryRegion *mr); |
| 38 | |
Avi Kivity | 658b222 | 2011-07-26 14:26:08 +0300 | [diff] [blame] | 39 | /* Set the I/O memory region. This region is the I/O memory map. */ |
| 40 | void set_system_io_map(MemoryRegion *mr); |
| 41 | |
Avi Kivity | 1c0ffa5 | 2011-07-26 14:26:04 +0300 | [diff] [blame] | 42 | #endif |
| 43 | |
| 44 | #endif |