diff options
| author | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2025-01-10 10:42:25 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2025-01-10 10:42:25 +0100 |
| commit | 6b63380f5f45891c5c27715cb290037d072ad212 (patch) | |
| tree | 8281fc7954b12be8103c77dcc1112c0ac9958ee2 /dev/Boot/Mod/NetBoot/NetBoot.h | |
| parent | 54c1aa5e497be0f6fc1b6fe8ee759ac1c874714d (diff) | |
ADD: NetBoot specs revision and patches.
Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'dev/Boot/Mod/NetBoot/NetBoot.h')
| -rw-r--r-- | dev/Boot/Mod/NetBoot/NetBoot.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/dev/Boot/Mod/NetBoot/NetBoot.h b/dev/Boot/Mod/NetBoot/NetBoot.h index 9b7c3c3d..c8896001 100644 --- a/dev/Boot/Mod/NetBoot/NetBoot.h +++ b/dev/Boot/Mod/NetBoot/NetBoot.h @@ -2,7 +2,7 @@ * ======================================================== * * NetBoot - * Copyright (C) 2024, Theater Quality Corp, all rights reserved., all rights reserved. + * Copyright (C) 2024-2025, Theater Quality Corp, all rights reserved., all rights reserved. * * ======================================================== */ @@ -11,6 +11,9 @@ #include <NewKit/Defines.h> +#define kNetBootINetMagic "NETB" +#define kNetBootINetMagicLength 4 + /// @brief the internet header is used to download updates OTA. typedef struct NetBootInternetHeader { @@ -19,8 +22,10 @@ typedef struct NetBootInternetHeader Kernel::Char NB3; /// magic char 3 'T' Kernel::Char NB4; /// magic char 4 'B' - Kernel::Char PatchName[255]; /// example: ColdChoco + Kernel::Char PatchName[255]; /// example: Modjo Kernel::Int32 PatchLength; /// the patch length. Kernel::Char PatchTarget[255]; /// the target file. Kernel::Boolean ImpliesROM; /// does it imply an EEPROM reprogram? + Kernel::Boolean Preflight; /// is it a preflight packet. + Kernel::Char Data[]; /// non preflight packet has a patch blob for a **PatchTarget** } NetBootInternetHeader; |
