Update binfo.h

This commit is contained in:
Alex 2022-10-13 23:17:36 +03:00
parent 398d889c74
commit e477618116
Signed by untrusted user who does not match committer: enderice2
GPG Key ID: EACC3AD603BAB4DD

View File

@ -1,8 +1,6 @@
#ifndef __FENNIX_KERNEL_BOOT_INFO_H__ #ifndef __FENNIX_KERNEL_BOOT_INFO_H__
#define __FENNIX_KERNEL_BOOT_INFO_H__ #define __FENNIX_KERNEL_BOOT_INFO_H__
#include <types.h>
enum MemoryType enum MemoryType
{ {
Usable, Usable,
@ -25,19 +23,19 @@ struct BootInfo
struct FramebufferInfo struct FramebufferInfo
{ {
void *BaseAddress; void *BaseAddress;
uint64_t Width; __UINT64_TYPE__ Width;
uint64_t Height; __UINT64_TYPE__ Height;
uint64_t Pitch; __UINT64_TYPE__ Pitch;
uint16_t BitsPerPixel; __UINT16_TYPE__ BitsPerPixel;
uint8_t MemoryModel; __UINT8_TYPE__ MemoryModel;
uint8_t RedMaskSize; __UINT8_TYPE__ RedMaskSize;
uint8_t RedMaskShift; __UINT8_TYPE__ RedMaskShift;
uint8_t GreenMaskSize; __UINT8_TYPE__ GreenMaskSize;
uint8_t GreenMaskShift; __UINT8_TYPE__ GreenMaskShift;
uint8_t BlueMaskSize; __UINT8_TYPE__ BlueMaskSize;
uint8_t BlueMaskShift; __UINT8_TYPE__ BlueMaskShift;
void *ExtendedDisplayIdentificationData; void *ExtendedDisplayIdentificationData;
uint64_t EDIDSize; __UINT64_TYPE__ EDIDSize;
} Framebuffer[MAX_FRAMEBUFFERS]; } Framebuffer[MAX_FRAMEBUFFERS];
struct MemoryInfo struct MemoryInfo
@ -45,11 +43,11 @@ struct BootInfo
struct MemoryEntryInfo struct MemoryEntryInfo
{ {
void *BaseAddress; void *BaseAddress;
uint64_t Length; __UINT64_TYPE__ Length;
enum MemoryType Type; enum MemoryType Type;
} Entry[MAX_MEMORY_ENTRIES]; } Entry[MAX_MEMORY_ENTRIES];
uint64_t Entries; __UINT64_TYPE__ Entries;
uint64_t Size; __UINT64_TYPE__ Size;
} Memory; } Memory;
struct ModuleInfo struct ModuleInfo
@ -57,7 +55,7 @@ struct BootInfo
void *Address; void *Address;
char Path[256]; char Path[256];
char CommandLine[256]; char CommandLine[256];
uint64_t Size; __UINT64_TYPE__ Size;
} Modules[MAX_MODULES]; } Modules[MAX_MODULES];
struct RSDPInfo struct RSDPInfo
@ -65,41 +63,41 @@ struct BootInfo
/** /**
* @brief Signature * @brief Signature
*/ */
unsigned char Signature[8]; __UINT8_TYPE__ Signature[8];
/** /**
* @brief Checksum * @brief Checksum
*/ */
uint8_t Checksum; __UINT8_TYPE__ Checksum;
/** /**
* @brief OEM ID * @brief OEM ID
*/ */
uint8_t OEMID[6]; __UINT8_TYPE__ OEMID[6];
/** /**
* @brief Revision * @brief Revision
*/ */
uint8_t Revision; __UINT8_TYPE__ Revision;
/** /**
* @brief Address of the Root System Description Table * @brief Address of the Root System Description Table
*/ */
uint32_t RSDTAddress; __UINT32_TYPE__ RSDTAddress;
/* END OF RSDP 1.0 */ /* END OF RSDP 1.0 */
/** /**
* @brief Length * @brief Length
*/ */
uint32_t Length; __UINT32_TYPE__ Length;
/** /**
* @brief Extended System Descriptor Table * @brief Extended System Descriptor Table
*/ */
uint64_t XSDTAddress; __UINT64_TYPE__ XSDTAddress;
/** /**
* @brief Extended checksum * @brief Extended checksum
*/ */
uint8_t ExtendedChecksum; __UINT8_TYPE__ ExtendedChecksum;
/** /**
* @brief Reserved * @brief Reserved
*/ */
uint8_t Reserved[3]; __UINT8_TYPE__ Reserved[3];
} __attribute__((packed)) * RSDP; } __attribute__((packed)) * RSDP;
struct KernelInfo struct KernelInfo
@ -108,7 +106,7 @@ struct BootInfo
void *VirtualBase; void *VirtualBase;
void *FileBase; void *FileBase;
char CommandLine[256]; char CommandLine[256];
uint64_t Size; __UINT64_TYPE__ Size;
} Kernel; } Kernel;
struct BootloaderInfo struct BootloaderInfo