2023-04-11 23:25:21 +03:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <BAN/StringView.h>
|
|
|
|
|
|
|
|
namespace Kernel
|
|
|
|
{
|
|
|
|
|
|
|
|
enum class ErrorCode : uint32_t
|
|
|
|
{
|
|
|
|
None,
|
|
|
|
ACPI_NoRootSDT,
|
|
|
|
ACPI_NoSuchHeader,
|
|
|
|
ACPI_RootInvalid,
|
|
|
|
PS2_Timeout,
|
|
|
|
PS2_SelfTest,
|
|
|
|
PS2_Reset,
|
|
|
|
PS2_UnsupportedDevice,
|
|
|
|
Ext2_Invalid,
|
|
|
|
Ext2_Corrupted,
|
|
|
|
Ext2_NoInodes,
|
|
|
|
Storage_Boundaries,
|
|
|
|
Storage_GPTHeader,
|
|
|
|
ATA_NoLBA,
|
|
|
|
ATA_AMNF,
|
|
|
|
ATA_TKZNF,
|
|
|
|
ATA_ABRT,
|
|
|
|
ATA_MCR,
|
|
|
|
ATA_IDNF,
|
|
|
|
ATA_MC,
|
|
|
|
ATA_UNC,
|
|
|
|
ATA_BBK,
|
2023-04-19 17:29:36 +03:00
|
|
|
ATA_UnsupportedDevice,
|
2023-04-11 23:25:21 +03:00
|
|
|
Font_FileTooSmall,
|
|
|
|
Font_Unsupported,
|
|
|
|
Count
|
|
|
|
};
|
|
|
|
|
|
|
|
BAN::StringView error_string(ErrorCode);
|
|
|
|
|
|
|
|
}
|