From 5468ca71a59c9e24c1d392554e8f97f0c1705394 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Sun, 10 Mar 2024 15:41:08 +0100 Subject: Kernel: Reworked StorageKit to add AHCI support. Signed-off-by: Amlal El Mahrouss --- Public/Kits/System.Core/Containers/XIFF.hxx | 40 +++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 Public/Kits/System.Core/Containers/XIFF.hxx (limited to 'Public/Kits/System.Core/Containers') diff --git a/Public/Kits/System.Core/Containers/XIFF.hxx b/Public/Kits/System.Core/Containers/XIFF.hxx new file mode 100644 index 00000000..28c25bf9 --- /dev/null +++ b/Public/Kits/System.Core/Containers/XIFF.hxx @@ -0,0 +1,40 @@ +/** =========================================== + (C) Mahrouss Logic + ===========================================*/ + +#ifndef __XIFF__ +#define __XIFF__ + +/** --------------------------------------------------- + + * THIS FILE CONTAINS CODE FOR THE eXtended Information File Format. + * XIFF is used to make setup programs/audio/video files. + +------------------------------------------------------- */ + +#include + +/// @brief four-character code for XIFF. +#define kFourCCLength_XIFF 4 + +/*** + * @brief Generic XIFF header + * Used by XIFF based containers. + */ + +struct PACKED XiffHeader final { + BYTE f_Mag[kFourCCLength_XIFF]; // XIFF string (includes \0) + DWORD f_Size; // overall size of header (XiffHeader) in bytes + DWORD f_FormatType; // format type. generic + BYTE f_SpecificMag[4]; // The sub header magic + DWORD f_SpecificSize; // length of the format data + DWORD f_SpecificFormatType; // format type. generic +}; + +#define kXIFFContainerVideo "XVFF" +#define kXIFFContainerAudio "XAFF" +#define kXIFFContainerInstaller "XnFF" +#define kXIFFContainerGeneric "XIFF" +#define kXIFFContainerBinary "XEFF" + +#endif // ifndef __XIFF__ -- cgit v1.2.3