XenevaOS
Loading...
Searching...
No Matches
Macros | Functions | Variables
file.cpp File Reference
#include "file.h"
#include <Protocol/SimpleFileSystem.h>
#include <Protocol/LoadFile.h>
#include <Protocol\LoadedImage.h>
#include <Guid\FileInfo.h>
#include "lowlevel.h"
Include dependency graph for file.cpp:

Macros

#define EFI_FILE_SYSTEM_INFO_ID   {0x9576e93, 0x6d3f, 0x11d2, {0x8e, 0x39, 0x0, 0xa0, 0xc9, 0x69, 0x72, 0x3b }}
 

Functions

void cleandcache_to_pou_by_va (size_t va_start, UINTN size)
 
void invalidate_icache_by_va (size_t va_start, UINTN size)
 
XEFileXEOpenAndReadFile (EFI_HANDLE ImageHandle, CHAR16 *Filename)
 
VOID XECloseFile (XEFile *file)
 

Variables

EFI_GUID FileSystemProtocol
 
EFI_GUID LoadFileProtocol
 
EFI_GUID GenericFileInfo
 

Macro Definition Documentation

◆ EFI_FILE_SYSTEM_INFO_ID

#define EFI_FILE_SYSTEM_INFO_ID   {0x9576e93, 0x6d3f, 0x11d2, {0x8e, 0x39, 0x0, 0xa0, 0xc9, 0x69, 0x72, 0x3b }}

Function Documentation

◆ cleandcache_to_pou_by_va()

void cleandcache_to_pou_by_va ( size_t  va_start,
UINTN  size 
)

◆ invalidate_icache_by_va()

void invalidate_icache_by_va ( size_t  va_start,
UINTN  size 
)

◆ XECloseFile()

VOID XECloseFile ( XEFile file)

◆ XEOpenAndReadFile()

XEFile * XEOpenAndReadFile ( EFI_HANDLE  ImageHandle,
CHAR16 Filename 
)

Variable Documentation

◆ FileSystemProtocol

EFI_GUID FileSystemProtocol
Initial value:
= {
0x964E5B22,
0x6459,
0x11D2,
{
0x8E, 0x39, 0x00, 0xA0, 0xC9, 0x69, 0x72, 0x3B
}
}

BSD 2-Clause License

Copyright (c) 2023-2025, Manas Kamal Choudhury All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

◆ GenericFileInfo

EFI_GUID GenericFileInfo
Initial value:
= {
0x9576E92,
0x6D3F,
0x11D2,
{
0x8E, 0x39, 0x00, 0xA0, 0xC9, 0x69, 0x72, 0x3B
}
}

◆ LoadFileProtocol

EFI_GUID LoadFileProtocol
Initial value:
= {
0x56EC3091,
0x954C,
0x11D2,
{
0x8E, 0x3F, 0x00, 0xA0, 0xC9, 0x69, 0x72, 0x3B
}
}