wut  v1.7.0
Wii U Toolchain
Macros | Typedefs | Enumerations | Functions
memorymap.h File Reference
#include <wut.h>
Include dependency graph for memorymap.h:

Go to the source code of this file.

Macros

#define OS_PAGE_SIZE   (128 * 1024)
 

Typedefs

typedef enum OSMemoryMapMode OSMemoryMapMode
 

Enumerations

enum  OSMemoryMapMode {
  OS_MAP_MEMORY_INVALID = 0 ,
  OS_MAP_MEMORY_READ_ONLY = 1 ,
  OS_MAP_MEMORY_READ_WRITE = 2 ,
  OS_MAP_MEMORY_FREE = 3 ,
  OS_MAP_MEMORY_ALLOCATED = 4
}
 

Functions

uint32_t OSEffectiveToPhysical (uint32_t virtualAddress)
 
uint32_t __OSPhysicalToEffectiveCached (uint32_t physicalAddress)
 
uint32_t __OSPhysicalToEffectiveUncached (uint32_t physicalAddress)
 
BOOL OSIsAddressValid (uint32_t virtualAddress)
 
BOOL __OSValidateAddressSpaceRange (int, uint32_t virtualAddress, uint32_t size)
 
uint32_t OSAllocVirtAddr (uint32_t virtualAddress, uint32_t size, uint32_t align)
 Allocates virtual address range for later mapping. More...
 
BOOL OSFreeVirtAddr (uint32_t virtualAddress, uint32_t size)
 Frees a previously allocated virtual address range back to the system. More...
 
OSMemoryMapMode OSQueryVirtAddr (uint32_t virtualAddress)
 Determines the status of the given virtual memory address - mapped read-write or read-only, free, allocated or invalid. More...
 
BOOL OSMapMemory (uint32_t virtualAddress, uint32_t physicalAddress, uint32_t size, OSMemoryMapMode mode)
 Maps a physical address to a virtual address, with a given size and set of permissions. More...
 
BOOL OSUnmapMemory (uint32_t virtualAddress, uint32_t size)
 Unmaps previously mapped memory. More...
 
void OSGetMapVirtAddrRange (uint32_t *outVirtualAddress, uint32_t *outSize)
 Gets the range of virtual addresses available for mapping. More...
 
void OSGetAvailPhysAddrRange (uint32_t *outPhysicalAddress, uint32_t *outSize)
 Gets the range of available physical memory (not reserved for app code or data). More...
 
void OSGetDataPhysAddrRange (uint32_t *outPhysicalAddress, uint32_t *outSize)
 Gets the range of physical memory used for the application's data. More...