TianoCore EDK2 master
Loading...
Searching...
No Matches
WinHost.h File Reference
#include <stdio.h>
#include <time.h>
#include "WinInclude.h"
#include <PiPei.h>
#include <IndustryStandard/PeImage.h>
#include <Guid/FileInfo.h>
#include <Guid/FileSystemInfo.h>
#include <Guid/FileSystemVolumeLabelInfo.h>
#include <Ppi/EmuThunk.h>
#include <Ppi/Reset2.h>
#include <Protocol/EmuThunk.h>
#include <Protocol/SimpleFileSystem.h>
#include <Protocol/EmuBlockIo.h>
#include <Protocol/BlockIo.h>
#include <Protocol/EmuSnp.h>
#include <Library/BaseLib.h>
#include <Library/PeCoffLib.h>
#include <Library/DebugLib.h>
#include <Library/MemoryAllocationLib.h>
#include <Library/ThunkPpiList.h>
#include <Library/ThunkProtocolList.h>
#include <Library/PcdLib.h>
#include <Library/PrintLib.h>
#include <Library/BaseMemoryLib.h>
#include <Library/PeiServicesLib.h>
#include <Library/PeCoffExtraActionLib.h>
#include <Library/NetLib.h>

Go to the source code of this file.

Data Structures

struct  NT_FD_INFO
 
struct  NT_SYSTEM_MEMORY
 

Macros

#define TEMPORARY_RAM_SIZE   0x20000
 

Functions

RETURN_STATUS EFIAPI SecPeCoffGetEntryPoint (IN VOID *Pe32Data, IN OUT VOID **EntryPoint)
 
VOID SecLoadSecCore (IN UINTN TemporaryRam, IN UINTN TemporaryRamSize, IN VOID *BootFirmwareVolumeBase, IN UINTN BootFirmwareVolumeSize, IN VOID *SecCorePe32File)
 
EFI_STATUS EFIAPI SecWinNtFdAddress (IN UINTN Index, IN OUT EFI_PHYSICAL_ADDRESS *FdBase, IN OUT UINT64 *FdSize)
 
EFI_STATUS EFIAPI SecImageRead (IN VOID *FileHandle, IN UINTN FileOffset, IN OUT UINTN *ReadSize, OUT VOID *Buffer)
 
CHAR16 * AsciiToUnicode (IN CHAR8 *Ascii, IN UINTN *StrLen OPTIONAL)
 
UINTN CountSeparatorsInString (IN CONST CHAR16 *String, IN CHAR16 Separator)
 
BOOLEAN EfiSystemMemoryRange (IN VOID *MemoryAddress)
 
VOID SecInitializeThunk (VOID)
 

Variables

EMU_THUNK_PROTOCOL gEmuThunkProtocol
 
EMU_IO_THUNK_PROTOCOL mWinNtWndThunkIo
 
EMU_IO_THUNK_PROTOCOL mWinNtFileSystemThunkIo
 
EMU_IO_THUNK_PROTOCOL mWinNtBlockIoThunkIo
 
EMU_IO_THUNK_PROTOCOL mWinNtSnpThunkIo
 

Detailed Description

Copyright (c) 2006 - 2022, Intel Corporation. All rights reserved.
(C) Copyright 2020 Hewlett Packard Enterprise Development LP
SPDX-License-Identifier: BSD-2-Clause-Patent

Module Name: WinHost.h

Abstract: Include file for Windows Host

Definition in file WinHost.h.

Macro Definition Documentation

◆ TEMPORARY_RAM_SIZE

#define TEMPORARY_RAM_SIZE   0x20000

Definition at line 50 of file WinHost.h.

Function Documentation

◆ AsciiToUnicode()

CHAR16 * AsciiToUnicode ( IN CHAR8 *  Ascii,
IN UINTN *StrLen  OPTIONAL 
)

Definition at line 865 of file WinHost.c.

◆ CountSeparatorsInString()

UINTN CountSeparatorsInString ( IN CONST CHAR16 *  String,
IN CHAR16  Separator 
)

Definition at line 913 of file WinHost.c.

◆ EfiSystemMemoryRange()

BOOLEAN EfiSystemMemoryRange ( IN VOID *  MemoryAddress)

Definition at line 691 of file Host.c.

◆ SecImageRead()

EFI_STATUS EFIAPI SecImageRead ( IN VOID *  FileHandle,
IN UINTN  FileOffset,
IN OUT UINTN ReadSize,
OUT VOID *  Buffer 
)

Definition at line 866 of file Host.c.

◆ SecInitializeThunk()

VOID SecInitializeThunk ( VOID  )

Definition at line 418 of file WinThunk.c.

◆ SecLoadSecCore()

VOID SecLoadSecCore ( IN UINTN  TemporaryRam,
IN UINTN  TemporaryRamSize,
IN VOID *  BootFirmwareVolumeBase,
IN UINTN  BootFirmwareVolumeSize,
IN VOID *  SecCorePe32File 
)

Definition at line 693 of file WinHost.c.

◆ SecPeCoffGetEntryPoint()

RETURN_STATUS EFIAPI SecPeCoffGetEntryPoint ( IN VOID *  Pe32Data,
IN OUT VOID **  EntryPoint 
)

Definition at line 734 of file Host.c.

Variable Documentation

◆ gEmuThunkProtocol

EMU_THUNK_PROTOCOL gEmuThunkProtocol
extern

Definition at line 409 of file EmuThunk.c.

◆ mWinNtBlockIoThunkIo

EMU_IO_THUNK_PROTOCOL mWinNtBlockIoThunkIo
extern

Definition at line 537 of file WinBlockIo.c.

◆ mWinNtFileSystemThunkIo

EMU_IO_THUNK_PROTOCOL mWinNtFileSystemThunkIo
extern

Definition at line 2418 of file WinFileSystem.c.

◆ mWinNtSnpThunkIo

EMU_IO_THUNK_PROTOCOL mWinNtSnpThunkIo
extern

Definition at line 1126 of file WinPacketFilter.c.

◆ mWinNtWndThunkIo

EMU_IO_THUNK_PROTOCOL mWinNtWndThunkIo
extern

Definition at line 897 of file WinGopScreen.c.