summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/board/nintendo/nx/k_system_control.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2021-04-10 09:02:52 +0200
committerGitHub <noreply@github.com>2021-04-10 09:02:52 +0200
commitb04877dd952d7da11647f16626952d7325e4e900 (patch)
treed097ebea3b24a2c815015c17e6c5fd89c69ce045 /src/core/hle/kernel/board/nintendo/nx/k_system_control.h
parentMerge pull request #6171 from german77/services (diff)
parenthle: kernel: Breakup InitializeMemoryLayout. (diff)
downloadyuzu-b04877dd952d7da11647f16626952d7325e4e900.tar
yuzu-b04877dd952d7da11647f16626952d7325e4e900.tar.gz
yuzu-b04877dd952d7da11647f16626952d7325e4e900.tar.bz2
yuzu-b04877dd952d7da11647f16626952d7325e4e900.tar.lz
yuzu-b04877dd952d7da11647f16626952d7325e4e900.tar.xz
yuzu-b04877dd952d7da11647f16626952d7325e4e900.tar.zst
yuzu-b04877dd952d7da11647f16626952d7325e4e900.zip
Diffstat (limited to 'src/core/hle/kernel/board/nintendo/nx/k_system_control.h')
-rw-r--r--src/core/hle/kernel/board/nintendo/nx/k_system_control.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/core/hle/kernel/board/nintendo/nx/k_system_control.h b/src/core/hle/kernel/board/nintendo/nx/k_system_control.h
new file mode 100644
index 000000000..52f230ced
--- /dev/null
+++ b/src/core/hle/kernel/board/nintendo/nx/k_system_control.h
@@ -0,0 +1,28 @@
+// Copyright 2021 yuzu Emulator Project
+// Licensed under GPLv2 or any later version
+// Refer to the license.txt file included.
+
+#pragma once
+
+#include "common/common_types.h"
+
+namespace Kernel::Board::Nintendo::Nx {
+
+class KSystemControl {
+public:
+ class Init {
+ public:
+ // Initialization.
+ static std::size_t GetIntendedMemorySize();
+ static PAddr GetKernelPhysicalBaseAddress(u64 base_address);
+ static bool ShouldIncreaseThreadResourceLimit();
+ static std::size_t GetApplicationPoolSize();
+ static std::size_t GetAppletPoolSize();
+ static std::size_t GetMinimumNonSecureSystemPoolSize();
+ };
+
+ static u64 GenerateRandomRange(u64 min, u64 max);
+ static u64 GenerateRandomU64();
+};
+
+} // namespace Kernel::Board::Nintendo::Nx