summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2021-03-20 08:00:49 +0100
committerbunnei <bunneidev@gmail.com>2021-03-21 22:45:03 +0100
commit10265ad0e4fbc5e54c1607d18eded80d8340606c (patch)
treec5cbba076072af1acf2b47492f3b54dea92e706e /src/core
parentcommon: Move common sizes to their own header for code reuse. (diff)
downloadyuzu-10265ad0e4fbc5e54c1607d18eded80d8340606c.tar
yuzu-10265ad0e4fbc5e54c1607d18eded80d8340606c.tar.gz
yuzu-10265ad0e4fbc5e54c1607d18eded80d8340606c.tar.bz2
yuzu-10265ad0e4fbc5e54c1607d18eded80d8340606c.tar.lz
yuzu-10265ad0e4fbc5e54c1607d18eded80d8340606c.tar.xz
yuzu-10265ad0e4fbc5e54c1607d18eded80d8340606c.tar.zst
yuzu-10265ad0e4fbc5e54c1607d18eded80d8340606c.zip
Diffstat (limited to 'src/core')
-rw-r--r--src/core/CMakeLists.txt1
-rw-r--r--src/core/hle/kernel/board/nintendo/nx/secure_monitor.h26
2 files changed, 27 insertions, 0 deletions
diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt
index fdd084537..b09938de9 100644
--- a/src/core/CMakeLists.txt
+++ b/src/core/CMakeLists.txt
@@ -143,6 +143,7 @@ add_library(core STATIC
hle/ipc_helpers.h
hle/kernel/board/nintendo/nx/k_system_control.cpp
hle/kernel/board/nintendo/nx/k_system_control.h
+ hle/kernel/board/nintendo/nx/secure_monitor.h
hle/kernel/client_port.cpp
hle/kernel/client_port.h
hle/kernel/client_session.cpp
diff --git a/src/core/hle/kernel/board/nintendo/nx/secure_monitor.h b/src/core/hle/kernel/board/nintendo/nx/secure_monitor.h
new file mode 100644
index 000000000..0c366b252
--- /dev/null
+++ b/src/core/hle/kernel/board/nintendo/nx/secure_monitor.h
@@ -0,0 +1,26 @@
+// 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::Smc {
+
+enum MemorySize {
+ MemorySize_4GB = 0,
+ MemorySize_6GB = 1,
+ MemorySize_8GB = 2,
+};
+
+enum MemoryArrangement {
+ MemoryArrangement_4GB = 0,
+ MemoryArrangement_4GBForAppletDev = 1,
+ MemoryArrangement_4GBForSystemDev = 2,
+ MemoryArrangement_6GB = 3,
+ MemoryArrangement_6GBForAppletDev = 4,
+ MemoryArrangement_8GB = 5,
+};
+
+} // namespace Kernel::Board::Nintendo::Nx::Smc