diff options
| author | Amlal <amlalelmahrouss@icloud.com> | 2024-05-23 07:53:50 +0000 |
|---|---|---|
| committer | Amlal <amlalelmahrouss@icloud.com> | 2024-05-23 07:53:50 +0000 |
| commit | f5081a8f9a8537ad5be5d639955cd1d0e68a9e1d (patch) | |
| tree | c9305701aa2d4ee0235c85c67cd6633e5763ec21 /Kernel/FirmwareKit | |
| parent | ca675beb41dba8d7d16c5793b55d1672f38be3b4 (diff) | |
| parent | 06b1a4bb12b4043b606d8bb0d55942d636c6833e (diff) | |
Merged in MHR-23 (pull request #13)
MHR-23
Diffstat (limited to 'Kernel/FirmwareKit')
| -rw-r--r-- | Kernel/FirmwareKit/EFI.hxx | 2 | ||||
| -rw-r--r-- | Kernel/FirmwareKit/EFI/API.hxx | 10 | ||||
| -rw-r--r-- | Kernel/FirmwareKit/EFI/EFI.hxx | 19 | ||||
| -rw-r--r-- | Kernel/FirmwareKit/EPM.hxx | 9 | ||||
| -rw-r--r-- | Kernel/FirmwareKit/Handover.hxx | 6 |
5 files changed, 27 insertions, 19 deletions
diff --git a/Kernel/FirmwareKit/EFI.hxx b/Kernel/FirmwareKit/EFI.hxx index c2585456..d09e6407 100644 --- a/Kernel/FirmwareKit/EFI.hxx +++ b/Kernel/FirmwareKit/EFI.hxx @@ -1,6 +1,6 @@ /* ------------------------------------------- - Copyright SoftwareLabs + Copyright SoftwareLabs ------------------------------------------- */ diff --git a/Kernel/FirmwareKit/EFI/API.hxx b/Kernel/FirmwareKit/EFI/API.hxx index 37781f23..8e8183d6 100644 --- a/Kernel/FirmwareKit/EFI/API.hxx +++ b/Kernel/FirmwareKit/EFI/API.hxx @@ -1,6 +1,6 @@ /* ------------------------------------------- - Copyright SoftwareLabs + Copyright SoftwareLabs ------------------------------------------- */ @@ -69,10 +69,10 @@ Bascially frees everything we have in the EFI side. } /*** - * @brief Throw an error, stop execution as well. - * @param ErrorCode error code to be print. - * @param Reason reason to be print. - */ + * @brief Throw an error, stop execution as well. + * @param ErrorCode error code to be print. + * @param Reason reason to be print. + */ inline void ThrowError(const EfiCharType* ErrorCode, const EfiCharType* Reason) noexcept { diff --git a/Kernel/FirmwareKit/EFI/EFI.hxx b/Kernel/FirmwareKit/EFI/EFI.hxx index 5f88fcaf..2e1ef4d6 100644 --- a/Kernel/FirmwareKit/EFI/EFI.hxx +++ b/Kernel/FirmwareKit/EFI/EFI.hxx @@ -1,6 +1,6 @@ /* ------------------------------------------- - Copyright SoftwareLabs + Copyright SoftwareLabs ------------------------------------------- */ @@ -754,14 +754,21 @@ typedef struct EfiTime struct EfiFileInfo final { - UInt64 Size; - UInt64 FileSize; - UInt64 PhysicalSize; + /// @brief Structure size. + UInt64 Size; + /// @brief File size. + UInt64 FileSize; + /// @brief Physical size on disk. + UInt64 PhysicalSize; + /// @brief Create time. EfiTime CreateTime; + /// @brief Last access time. EfiTime LastAccessTime; + /// @brief Edit time. EfiTime EditTime; - UInt64 Attribute; - // Do not touch that, it's EFI specific. + /// @brief Attributes. + UInt64 Attribute; + /// @brief VLA file name. WideChar FileName[1]; }; diff --git a/Kernel/FirmwareKit/EPM.hxx b/Kernel/FirmwareKit/EPM.hxx index 0051beac..aa5dc92a 100644 --- a/Kernel/FirmwareKit/EPM.hxx +++ b/Kernel/FirmwareKit/EPM.hxx @@ -1,11 +1,11 @@ /* ------------------------------------------- - Copyright SoftwareLabs + Copyright SoftwareLabs ------------------------------------------- */ /** - @brief The Explicit Partition Map scheme. + @brief The Explicit Partition Map scheme. */ #ifndef __PARTITION_MAP__ @@ -87,8 +87,6 @@ struct PACKED PartitionBlock #define kEPMMagicError "EPM??" -#define kEPMMaxBlks 128 - ///! @brief Version kind enum. ///! @brief Use in boot block version field. @@ -123,6 +121,9 @@ typedef struct PartitionBlock PartitionBlockType; ///! @brief Current EPM revision (2) #define kEPMRevisionUEFI (0xF) +/* @brief Maximum block count. */ +#define kEPMMaxBlks 128 + /// END OF SPECS #endif // ifndef __PARTITION_MAP__ diff --git a/Kernel/FirmwareKit/Handover.hxx b/Kernel/FirmwareKit/Handover.hxx index 1d671f4e..1a7d1da7 100644 --- a/Kernel/FirmwareKit/Handover.hxx +++ b/Kernel/FirmwareKit/Handover.hxx @@ -1,6 +1,6 @@ /* ------------------------------------------- - Copyright SoftwareLabs + Copyright SoftwareLabs ------------------------------------------- */ @@ -29,7 +29,7 @@ namespace NewOS::HEL { /** - @brief the kind of executable we're loading. + @brief the kind of executable we're loading. */ enum { @@ -40,7 +40,7 @@ namespace NewOS::HEL }; /** - @brief The executable architecture. + @brief The executable architecture. */ enum |
