PatchworkOS
Loading...
Searching...
No Matches
boot_info.h File Reference
#include <kernel/mem/paging_types.h>
#include <gnu-efi/inc/efi.h>
#include <gnu-efi/inc/efilib.h>
#include <stdint.h>
#include <sys/elf.h>
#include <sys/io.h>
#include <sys/list.h>

Go to the source code of this file.

Data Structures

struct  boot_gop_t
 
struct  boot_memory_map_t
 
struct  boot_file_t
 
struct  boot_dir_t
 
struct  boot_disk_t
 
struct  boot_kernel_t
 
struct  boot_memory_t
 
struct  boot_info_t
 

Macros

#define BOOT_MEMORY_MAP_GET_DESCRIPTOR(map, index)    (EFI_MEMORY_DESCRIPTOR*)((uint64_t)(map)->descriptors + ((index) * (map)->descSize))
 

Typedefs

typedef struct boot_dir boot_dir_t
 
typedef struct boot_info boot_info_t
 

Functions

static bool boot_is_mem_ram (EFI_MEMORY_TYPE type)
 

Macro Definition Documentation

◆ BOOT_MEMORY_MAP_GET_DESCRIPTOR

#define BOOT_MEMORY_MAP_GET_DESCRIPTOR (   map,
  index 
)     (EFI_MEMORY_DESCRIPTOR*)((uint64_t)(map)->descriptors + ((index) * (map)->descSize))

Definition at line 41 of file boot_info.h.

Typedef Documentation

◆ boot_dir_t

typedef struct boot_dir boot_dir_t

Definition at line 53 of file boot_info.h.

◆ boot_info_t

typedef struct boot_info boot_info_t

Definition at line 76 of file boot_info.h.

Function Documentation

◆ boot_is_mem_ram()

static bool boot_is_mem_ram ( EFI_MEMORY_TYPE  type)
static

Definition at line 13 of file boot_info.h.

Referenced by pmm_detect_memory(), and pmm_is_efi_mem_available().