mirror of
https://github.com/PabloMK7/citra.git
synced 2024-11-30 11:20:18 +00:00
ebdae19fd2
This makes clang-format useful on those. Also add a bunch of forgotten transitive includes, which otherwise prevented compilation.
32 lines
1,012 B
C++
32 lines
1,012 B
C++
// Copyright 2015 Citra Emulator Project
|
|
// Licensed under GPLv2 or any later version
|
|
// Refer to the license.txt file included.
|
|
|
|
#pragma once
|
|
|
|
#include "common/common_types.h"
|
|
#include "core/mmio.h"
|
|
|
|
namespace Memory {
|
|
|
|
void InitMemoryMap();
|
|
|
|
/**
|
|
* Maps an allocated buffer onto a region of the emulated process address space.
|
|
*
|
|
* @param base The address to start mapping at. Must be page-aligned.
|
|
* @param size The amount of bytes to map. Must be page-aligned.
|
|
* @param target Buffer with the memory backing the mapping. Must be of length at least `size`.
|
|
*/
|
|
void MapMemoryRegion(VAddr base, u32 size, u8* target);
|
|
|
|
/**
|
|
* Maps a region of the emulated process address space as a IO region.
|
|
* @param base The address to start mapping at. Must be page-aligned.
|
|
* @param size The amount of bytes to map. Must be page-aligned.
|
|
* @param mmio_handler The handler that backs the mapping.
|
|
*/
|
|
void MapIoRegion(VAddr base, u32 size, MMIORegionPointer mmio_handler);
|
|
|
|
void UnmapRegion(VAddr base, u32 size);
|
|
}
|