summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2024-04-25 10:12:17 +0200
committerAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2024-04-25 10:12:17 +0200
commit4b7ec5d5d2351f47f3ce423147b956247997d532 (patch)
tree817fb844fea4c530d5bc380375cf97b89085bc3e
parent1cae0d2cde6e775ecb1625aa93a5d65d996efad0 (diff)
MHR-16: Update EPM specs.
Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
-rw-r--r--Private/FirmwareKit/EPM.hxx12
1 files changed, 10 insertions, 2 deletions
diff --git a/Private/FirmwareKit/EPM.hxx b/Private/FirmwareKit/EPM.hxx
index b7f77742..3b3585be 100644
--- a/Private/FirmwareKit/EPM.hxx
+++ b/Private/FirmwareKit/EPM.hxx
@@ -29,6 +29,7 @@ typedef struct BlockGUID {
/**
* @brief The EPM bootloader block.
+ * @note NumBlock and LbaStart are ignored on UEFI.
*/
struct PACKED BootBlock {
NewOS::Char Magic[kEPMMagicLength];
@@ -42,7 +43,7 @@ struct PACKED BootBlock {
/**
* @brief The EPM partition block.
- * used to describe a partition inside a media.
+ * used to describe a partition inside a media, doesn't exist on uefi.
*/
struct PACKED PartitionBlock {
NewOS::Char Name[kEPMNameLength];
@@ -75,6 +76,10 @@ struct PACKED PartitionBlock {
#define kEPMMagicPPC "EPMPC"
+/* @brief UEFI magic for EPM */
+
+#define kEPMMagicUEFI "EPMUE"
+
/* @brief Invalid magic for EPM */
#define kEPMMagicError "EPM??"
@@ -109,7 +114,10 @@ typedef struct PartitionBlock PartitionBlockType;
#define kEPMStartPartitionBlk (0)
///! @brief Current EPM revision (2)
-#define kEPMRevision (21)
+#define kEPMRevision (2)
+
+///! @brief Current EPM revision (2)
+#define kEPMRevisionUEFI (0xF)
/// END SPECS