2022-04-23 04:59:50 -04:00
|
|
|
// SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project
|
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
2020-12-27 23:56:57 -05:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "core/hle/result.h"
|
|
|
|
|
2021-02-12 18:43:01 -05:00
|
|
|
namespace Kernel {
|
2020-12-27 23:56:57 -05:00
|
|
|
|
2021-02-12 18:43:01 -05:00
|
|
|
// Confirmed Switch kernel error codes
|
|
|
|
|
2021-04-11 14:41:48 -04:00
|
|
|
constexpr ResultCode ResultOutOfSessions{ErrorModule::Kernel, 7};
|
|
|
|
constexpr ResultCode ResultInvalidArgument{ErrorModule::Kernel, 14};
|
2021-01-16 01:02:33 -05:00
|
|
|
constexpr ResultCode ResultNoSynchronizationObject{ErrorModule::Kernel, 57};
|
2020-12-27 23:56:57 -05:00
|
|
|
constexpr ResultCode ResultTerminationRequested{ErrorModule::Kernel, 59};
|
2021-02-12 18:43:01 -05:00
|
|
|
constexpr ResultCode ResultInvalidSize{ErrorModule::Kernel, 101};
|
2020-12-27 23:56:57 -05:00
|
|
|
constexpr ResultCode ResultInvalidAddress{ErrorModule::Kernel, 102};
|
2021-01-31 19:55:11 -05:00
|
|
|
constexpr ResultCode ResultOutOfResource{ErrorModule::Kernel, 103};
|
2021-02-12 18:43:01 -05:00
|
|
|
constexpr ResultCode ResultOutOfMemory{ErrorModule::Kernel, 104};
|
2021-04-11 14:41:48 -04:00
|
|
|
constexpr ResultCode ResultOutOfHandles{ErrorModule::Kernel, 105};
|
2020-12-27 23:56:57 -05:00
|
|
|
constexpr ResultCode ResultInvalidCurrentMemory{ErrorModule::Kernel, 106};
|
2021-04-11 14:41:48 -04:00
|
|
|
constexpr ResultCode ResultInvalidNewMemoryPermission{ErrorModule::Kernel, 108};
|
|
|
|
constexpr ResultCode ResultInvalidMemoryRegion{ErrorModule::Kernel, 110};
|
2021-01-01 05:06:06 -05:00
|
|
|
constexpr ResultCode ResultInvalidPriority{ErrorModule::Kernel, 112};
|
2021-01-03 04:49:18 -05:00
|
|
|
constexpr ResultCode ResultInvalidCoreId{ErrorModule::Kernel, 113};
|
2020-12-27 23:56:57 -05:00
|
|
|
constexpr ResultCode ResultInvalidHandle{ErrorModule::Kernel, 114};
|
2021-02-12 18:43:01 -05:00
|
|
|
constexpr ResultCode ResultInvalidPointer{ErrorModule::Kernel, 115};
|
2021-01-16 01:02:33 -05:00
|
|
|
constexpr ResultCode ResultInvalidCombination{ErrorModule::Kernel, 116};
|
2020-12-27 23:56:57 -05:00
|
|
|
constexpr ResultCode ResultTimedOut{ErrorModule::Kernel, 117};
|
|
|
|
constexpr ResultCode ResultCancelled{ErrorModule::Kernel, 118};
|
2021-02-12 18:43:01 -05:00
|
|
|
constexpr ResultCode ResultOutOfRange{ErrorModule::Kernel, 119};
|
2020-12-27 23:56:57 -05:00
|
|
|
constexpr ResultCode ResultInvalidEnumValue{ErrorModule::Kernel, 120};
|
2021-02-12 18:43:01 -05:00
|
|
|
constexpr ResultCode ResultNotFound{ErrorModule::Kernel, 121};
|
2021-01-16 01:02:33 -05:00
|
|
|
constexpr ResultCode ResultBusy{ErrorModule::Kernel, 122};
|
2021-04-11 14:41:48 -04:00
|
|
|
constexpr ResultCode ResultSessionClosed{ErrorModule::Kernel, 123};
|
2020-12-27 23:56:57 -05:00
|
|
|
constexpr ResultCode ResultInvalidState{ErrorModule::Kernel, 125};
|
2021-04-11 14:41:48 -04:00
|
|
|
constexpr ResultCode ResultReservedUsed{ErrorModule::Kernel, 126};
|
2021-04-23 20:00:15 -04:00
|
|
|
constexpr ResultCode ResultPortClosed{ErrorModule::Kernel, 131};
|
2021-04-11 14:41:48 -04:00
|
|
|
constexpr ResultCode ResultLimitReached{ErrorModule::Kernel, 132};
|
|
|
|
constexpr ResultCode ResultInvalidId{ErrorModule::Kernel, 519};
|
2020-12-27 23:56:57 -05:00
|
|
|
|
2021-02-12 18:43:01 -05:00
|
|
|
} // namespace Kernel
|