address-spaces.h 907 B

123456789101112131415161718192021222324252627282930313233343536373839
  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_ADDRESS_SPACES_H
  14. #define EXEC_ADDRESS_SPACES_H
  15. /*
  16. * Internal interfaces between memory.c/exec.c/vl.c. Do not #include unless
  17. * you're one of them.
  18. */
  19. #ifndef CONFIG_USER_ONLY
  20. /* Get the root memory region. This interface should only be used temporarily
  21. * until a proper bus interface is available.
  22. */
  23. MemoryRegion *get_system_memory(void);
  24. /* Get the root I/O port region. This interface should only be used
  25. * temporarily until a proper bus interface is available.
  26. */
  27. MemoryRegion *get_system_io(void);
  28. extern AddressSpace address_space_memory;
  29. extern AddressSpace address_space_io;
  30. #endif
  31. #endif