TianoCore EDK2 master
Loading...
Searching...
No Matches
DevicePathTextLib.c File Reference
#include <Base.h>
#include <Protocol/EmuThunk.h>
#include <Protocol/EmuGraphicsWindow.h>
#include <Protocol/EmuBlockIo.h>
#include <Protocol/SimpleFileSystem.h>
#include <Protocol/EmuThread.h>
#include <Library/BaseLib.h>
#include <Library/DevicePathToTextLib.h>
#include <Library/BaseMemoryLib.h>
#include <Library/DevicePathLib.h>

Go to the source code of this file.

Functions

EFI_STATUS EFIAPI DevPathToTextVendorLib (IN OUT POOL_PRINT *Str, IN VOID *DevPath, IN BOOLEAN DisplayOnly, IN BOOLEAN AllowShortcuts)
 
EFI_DEVICE_PATH_PROTOCOLDevPathFromTextEmuThunk (IN CHAR16 *TextDeviceNode)
 
EFI_DEVICE_PATH_PROTOCOLDevPathFromTextEmuThread (IN CHAR16 *TextDeviceNode)
 
EFI_DEVICE_PATH_PROTOCOLDevPathFromTextEmuFs (IN CHAR16 *TextDeviceNode)
 
EFI_STATUS EFIAPI DevicePathToTextLibConstructor (IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
 

Detailed Description

Null Platform Hook Library instance.

Copyright (c) 2010, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file DevicePathTextLib.c.

Function Documentation

◆ DevicePathToTextLibConstructor()

EFI_STATUS EFIAPI DevicePathToTextLibConstructor ( IN EFI_HANDLE  ImageHandle,
IN EFI_SYSTEM_TABLE SystemTable 
)

Register the Filter function

Parameters
ImageHandleThe firmware allocated handle for the EFI image.
SystemTableA pointer to the EFI System Table.
Return values
EFI_SUCCESSThe constructor executed correctly.

Definition at line 169 of file DevicePathTextLib.c.

◆ DevPathFromTextEmuFs()

EFI_DEVICE_PATH_PROTOCOL * DevPathFromTextEmuFs ( IN CHAR16 *  TextDeviceNode)

Converts a text device path node to Hardware Vendor device path structure.

Parameters
TextDeviceNodeThe input Text device path node.
Returns
A pointer to the newly-created Hardware Vendor device path structure.

Definition at line 139 of file DevicePathTextLib.c.

◆ DevPathFromTextEmuThread()

EFI_DEVICE_PATH_PROTOCOL * DevPathFromTextEmuThread ( IN CHAR16 *  TextDeviceNode)

Converts a text device path node to Hardware Vendor device path structure.

Parameters
TextDeviceNodeThe input Text device path node.
Returns
A pointer to the newly-created Hardware Vendor device path structure.

Definition at line 113 of file DevicePathTextLib.c.

◆ DevPathFromTextEmuThunk()

EFI_DEVICE_PATH_PROTOCOL * DevPathFromTextEmuThunk ( IN CHAR16 *  TextDeviceNode)

Converts a text device path node to Hardware Vendor device path structure.

Parameters
TextDeviceNodeThe input Text device path node.
Returns
A pointer to the newly-created Hardware Vendor device path structure.

Definition at line 87 of file DevicePathTextLib.c.

◆ DevPathToTextVendorLib()

EFI_STATUS EFIAPI DevPathToTextVendorLib ( IN OUT POOL_PRINT Str,
IN VOID *  DevPath,
IN BOOLEAN  DisplayOnly,
IN BOOLEAN  AllowShortcuts 
)

Converts a Vendor device path structure to its string representative.

Parameters
StrThe string representative of input device.
DevPathThe input device path structure.
DisplayOnlyIf DisplayOnly is TRUE, then the shorter text representation of the display node is used, where applicable. If DisplayOnly is FALSE, then the longer text representation of the display node is used.
AllowShortcutsIf AllowShortcuts is TRUE, then the shortcut forms of text representation for a device node can be used, where applicable.
Returns
EFI_NOT_FOUND if no string representation exists.
EFI_SUCCESS a string representation was created.

Definition at line 39 of file DevicePathTextLib.c.