summaryrefslogtreecommitdiffstats
path: root/src/core/hle/svc.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-01-01 22:01:06 +0100
committerbunnei <bunneidev@gmail.com>2018-01-01 22:01:06 +0100
commit72f671fd7a72d75d6fd697673bee1be18a6dda8b (patch)
treef03e2b4f75df1f50cbbbe29a70420d32b7467e90 /src/core/hle/svc.h
parentvm_manager: Stub out a bunch of interfaces used by svcGetInfo. (diff)
downloadyuzu-72f671fd7a72d75d6fd697673bee1be18a6dda8b.tar
yuzu-72f671fd7a72d75d6fd697673bee1be18a6dda8b.tar.gz
yuzu-72f671fd7a72d75d6fd697673bee1be18a6dda8b.tar.bz2
yuzu-72f671fd7a72d75d6fd697673bee1be18a6dda8b.tar.lz
yuzu-72f671fd7a72d75d6fd697673bee1be18a6dda8b.tar.xz
yuzu-72f671fd7a72d75d6fd697673bee1be18a6dda8b.tar.zst
yuzu-72f671fd7a72d75d6fd697673bee1be18a6dda8b.zip
Diffstat (limited to 'src/core/hle/svc.h')
-rw-r--r--src/core/hle/svc.h40
1 files changed, 12 insertions, 28 deletions
diff --git a/src/core/hle/svc.h b/src/core/hle/svc.h
index 417a1735f..fd001a38e 100644
--- a/src/core/hle/svc.h
+++ b/src/core/hle/svc.h
@@ -26,35 +26,19 @@ struct PageInfo {
namespace SVC {
-/// Values accepted by svcGetSystemInfo's type parameter.
-enum class SystemInfoType {
- /**
- * Reports total used memory for all regions or a specific one, according to the extra
- * parameter. See `SystemInfoMemUsageRegion`.
- */
- REGION_MEMORY_USAGE = 0,
- /**
- * Returns the memory usage for certain allocations done internally by the kernel.
- */
- KERNEL_ALLOCATED_PAGES = 2,
- /**
- * "This returns the total number of processes which were launched directly by the kernel.
- * For the ARM11 NATIVE_FIRM kernel, this is 5, for processes sm, fs, pm, loader, and pxi."
- */
- KERNEL_SPAWNED_PIDS = 26,
-};
-
-/**
- * Accepted by svcGetSystemInfo param with REGION_MEMORY_USAGE type. Selects a region to query
- * memory usage of.
- */
-enum class SystemInfoMemUsageRegion {
- ALL = 0,
- APPLICATION = 1,
- SYSTEM = 2,
- BASE = 3,
+/// Values accepted by svcGetInfo
+enum class GetInfoType : u64 {
+ // 1.0.0+
+ TotalMemoryUsage = 6,
+ TotalHeapUsage = 7,
+ RandomEntropy = 11,
+ // 2.0.0+
+ AddressSpaceBaseAddr = 12,
+ AddressSpaceSize = 13,
+ NewMapRegionBaseAddr = 14,
+ NewMapRegionSize = 15,
};
void CallSVC(u32 immediate);
-} // namespace
+} // namespace SVC