2020-05-13 01:14:46 +01:00
|
|
|
/*
|
2021-10-04 20:59:10 +01:00
|
|
|
* Copyright (c) Atmosphère-NX
|
2020-05-13 01:14:46 +01:00
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify it
|
|
|
|
* under the terms and conditions of the GNU General Public License,
|
|
|
|
* version 2, as published by the Free Software Foundation.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope it will be useful, but WITHOUT
|
|
|
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
|
|
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
|
|
|
* more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <exosphere.hpp>
|
|
|
|
|
|
|
|
namespace ams::secmon {
|
|
|
|
|
2020-09-18 05:51:59 +01:00
|
|
|
bool IsPhysicalMemoryAddress(uintptr_t address);
|
2020-05-20 08:34:01 +01:00
|
|
|
size_t GetPhysicalMemorySize();
|
|
|
|
|
2020-05-13 18:56:07 +01:00
|
|
|
void UnmapTzram();
|
2020-05-13 01:14:46 +01:00
|
|
|
|
2020-05-15 22:58:45 +01:00
|
|
|
uintptr_t MapSmcUserPage(uintptr_t address);
|
|
|
|
void UnmapSmcUserPage();
|
|
|
|
|
2020-05-20 08:34:01 +01:00
|
|
|
uintptr_t MapAtmosphereIramPage(uintptr_t address);
|
|
|
|
void UnmapAtmosphereIramPage();
|
|
|
|
|
|
|
|
uintptr_t MapAtmosphereUserPage(uintptr_t address);
|
|
|
|
void UnmapAtmosphereUserPage();
|
|
|
|
|
2020-11-16 22:32:26 +00:00
|
|
|
void MapDramForMarikoProgram();
|
|
|
|
|
2020-05-13 01:14:46 +01:00
|
|
|
}
|