yuzu/src/core/hle/svc.h

45 lines
916 B
C
Raw Normal View History

// Copyright 2014 Citra Emulator Project
2014-12-17 05:38:14 +00:00
// Licensed under GPLv2 or any later version
// Refer to the license.txt file included.
#pragma once
#include "common/common_types.h"
////////////////////////////////////////////////////////////////////////////////////////////////////
// SVC types
struct MemoryInfo {
u64 base_address;
u64 size;
u32 type;
u32 attributes;
u32 permission;
};
struct PageInfo {
u64 flags;
};
////////////////////////////////////////////////////////////////////////////////////////////////////
// Namespace SVC
namespace SVC {
2018-01-01 21:01:06 +00:00
/// 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);
2018-01-01 21:01:06 +00:00
} // namespace SVC