2
0

exec-memory.h 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /*
  2. * Internal memory management interfaces
  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. #ifndef EXEC_MEMORY_H
  14. #define EXEC_MEMORY_H
  15. /*
  16. * Internal interfaces between memory.c/exec.c/vl.c. Do not #include unless
  17. * you're one of them.
  18. */
  19. #include "memory.h"
  20. #ifndef CONFIG_USER_ONLY
  21. /* Get the root memory region. This interface should only be used temporarily
  22. * until a proper bus interface is available.
  23. */
  24. MemoryRegion *get_system_memory(void);
  25. /* Get the root I/O port region. This interface should only be used
  26. * temporarily until a proper bus interface is available.
  27. */
  28. MemoryRegion *get_system_io(void);
  29. /* Set the root memory region. This region is the system memory map. */
  30. void set_system_memory_map(MemoryRegion *mr);
  31. /* Set the I/O memory region. This region is the I/O memory map. */
  32. void set_system_io_map(MemoryRegion *mr);
  33. #endif
  34. #endif