MdePkg/Library/UefiDevicePathLib/DevicePathFromText.c File Reference


Functions

CHAR16UefiDevicePathLibStrDuplicate (IN CONST CHAR16 *Src)
CHAR16GetParamByNodeName (IN CHAR16 *Str, IN CHAR16 *NodeName)
CHAR16SplitStr (IN OUT CHAR16 **List, IN CHAR16 Separator)
CHAR16GetNextParamStr (IN OUT CHAR16 **List)
CHAR16GetNextDeviceNodeStr (IN OUT CHAR16 **DevicePath, OUT BOOLEAN *IsInstanceEnd)
BOOLEAN IsHexStr (IN CHAR16 *Str)
UINTN Strtoi (IN CHAR16 *Str)
VOID Strtoi64 (IN CHAR16 *Str, OUT UINT64 *Data)
EFI_STATUS StrToBuf (OUT UINT8 *Buf, IN UINTN BufferLength, IN CHAR16 *Str)
EFI_STATUS StrToGuid (IN CHAR16 *Str, OUT EFI_GUID *Guid)
VOID StrToIPv4Addr (IN OUT CHAR16 **Str, OUT EFI_IPv4_ADDRESS *IPv4Addr)
VOID StrToIPv6Addr (IN OUT CHAR16 **Str, OUT EFI_IPv6_ADDRESS *IPv6Addr)
VOID StrToAscii (IN CHAR16 *Str, IN OUT CHAR8 **AsciiStr)
EFI_DEVICE_PATH_PROTOCOLDevPathFromTextGenericPath (IN UINT8 Type, IN CHAR16 *TextDeviceNode)
EFI_DEVICE_PATH_PROTOCOLDevPathFromTextPath (IN CHAR16 *TextDeviceNode)
EFI_DEVICE_PATH_PROTOCOLDevPathFromTextHardwarePath (IN CHAR16 *TextDeviceNode)
EFI_DEVICE_PATH_PROTOCOLDevPathFromTextPci (IN CHAR16 *TextDeviceNode)
EFI_DEVICE_PATH_PROTOCOLDevPathFromTextPcCard (IN CHAR16 *TextDeviceNode)
EFI_DEVICE_PATH_PROTOCOLDevPathFromTextMemoryMapped (IN CHAR16 *TextDeviceNode)
EFI_DEVICE_PATH_PROTOCOLConvertFromTextVendor (IN CHAR16 *TextDeviceNode, IN UINT8 Type, IN UINT8 SubType)
EFI_DEVICE_PATH_PROTOCOLDevPathFromTextVenHw (IN CHAR16 *TextDeviceNode)
EFI_DEVICE_PATH_PROTOCOLDevPathFromTextCtrl (IN CHAR16 *TextDeviceNode)
EFI_DEVICE_PATH_PROTOCOLDevPathFromTextBmc (IN CHAR16 *TextDeviceNode)
EFI_DEVICE_PATH_PROTOCOLDevPathFromTextAcpiPath (IN CHAR16 *TextDeviceNode)
UINT32 EisaIdFromText (IN CHAR16 *Text)
EFI_DEVICE_PATH_PROTOCOLDevPathFromTextAcpi (IN CHAR16 *TextDeviceNode)
EFI_DEVICE_PATH_PROTOCOLConvertFromTextAcpi (IN CHAR16 *TextDeviceNode, IN UINT32 PnPId)
EFI_DEVICE_PATH_PROTOCOLDevPathFromTextPciRoot (IN CHAR16 *TextDeviceNode)
EFI_DEVICE_PATH_PROTOCOLDevPathFromTextPcieRoot (IN CHAR16 *TextDeviceNode)
EFI_DEVICE_PATH_PROTOCOLDevPathFromTextFloppy (IN CHAR16 *TextDeviceNode)
EFI_DEVICE_PATH_PROTOCOLDevPathFromTextKeyboard (IN CHAR16 *TextDeviceNode)
EFI_DEVICE_PATH_PROTOCOLDevPathFromTextSerial (IN CHAR16 *TextDeviceNode)
EFI_DEVICE_PATH_PROTOCOLDevPathFromTextParallelPort (IN CHAR16 *TextDeviceNode)
EFI_DEVICE_PATH_PROTOCOLDevPathFromTextAcpiEx (IN CHAR16 *TextDeviceNode)
EFI_DEVICE_PATH_PROTOCOLDevPathFromTextAcpiExp (IN CHAR16 *TextDeviceNode)
EFI_DEVICE_PATH_PROTOCOLDevPathFromTextAcpiAdr (IN CHAR16 *TextDeviceNode)
EFI_DEVICE_PATH_PROTOCOLDevPathFromTextMsg (IN CHAR16 *TextDeviceNode)
EFI_DEVICE_PATH_PROTOCOLDevPathFromTextAta (IN CHAR16 *TextDeviceNode)
EFI_DEVICE_PATH_PROTOCOLDevPathFromTextScsi (IN CHAR16 *TextDeviceNode)
EFI_DEVICE_PATH_PROTOCOLDevPathFromTextFibre (IN CHAR16 *TextDeviceNode)
EFI_DEVICE_PATH_PROTOCOLDevPathFromTextFibreEx (IN CHAR16 *TextDeviceNode)
EFI_DEVICE_PATH_PROTOCOLDevPathFromText1394 (IN CHAR16 *TextDeviceNode)
EFI_DEVICE_PATH_PROTOCOLDevPathFromTextUsb (IN CHAR16 *TextDeviceNode)
EFI_DEVICE_PATH_PROTOCOLDevPathFromTextI2O (IN CHAR16 *TextDeviceNode)
EFI_DEVICE_PATH_PROTOCOLDevPathFromTextInfiniband (IN CHAR16 *TextDeviceNode)
EFI_DEVICE_PATH_PROTOCOLDevPathFromTextVenMsg (IN CHAR16 *TextDeviceNode)
EFI_DEVICE_PATH_PROTOCOLDevPathFromTextVenPcAnsi (IN CHAR16 *TextDeviceNode)
EFI_DEVICE_PATH_PROTOCOLDevPathFromTextVenVt100 (IN CHAR16 *TextDeviceNode)
EFI_DEVICE_PATH_PROTOCOLDevPathFromTextVenVt100Plus (IN CHAR16 *TextDeviceNode)
EFI_DEVICE_PATH_PROTOCOLDevPathFromTextVenUtf8 (IN CHAR16 *TextDeviceNode)
EFI_DEVICE_PATH_PROTOCOLDevPathFromTextUartFlowCtrl (IN CHAR16 *TextDeviceNode)
EFI_DEVICE_PATH_PROTOCOLDevPathFromTextSAS (IN CHAR16 *TextDeviceNode)
EFI_DEVICE_PATH_PROTOCOLDevPathFromTextSasEx (IN CHAR16 *TextDeviceNode)
EFI_DEVICE_PATH_PROTOCOLDevPathFromTextNVMe (IN CHAR16 *TextDeviceNode)
EFI_DEVICE_PATH_PROTOCOLDevPathFromTextUfs (IN CHAR16 *TextDeviceNode)
EFI_DEVICE_PATH_PROTOCOLDevPathFromTextSd (IN CHAR16 *TextDeviceNode)
EFI_DEVICE_PATH_PROTOCOLDevPathFromTextDebugPort (IN CHAR16 *TextDeviceNode)
EFI_DEVICE_PATH_PROTOCOLDevPathFromTextMAC (IN CHAR16 *TextDeviceNode)
UINTN NetworkProtocolFromText (IN CHAR16 *Text)
EFI_DEVICE_PATH_PROTOCOLDevPathFromTextIPv4 (IN CHAR16 *TextDeviceNode)
EFI_DEVICE_PATH_PROTOCOLDevPathFromTextIPv6 (IN CHAR16 *TextDeviceNode)
EFI_DEVICE_PATH_PROTOCOLDevPathFromTextUart (IN CHAR16 *TextDeviceNode)
EFI_DEVICE_PATH_PROTOCOLConvertFromTextUsbClass (IN CHAR16 *TextDeviceNode, IN USB_CLASS_TEXT *UsbClassText)
EFI_DEVICE_PATH_PROTOCOLDevPathFromTextUsbClass (IN CHAR16 *TextDeviceNode)
EFI_DEVICE_PATH_PROTOCOLDevPathFromTextUsbAudio (IN CHAR16 *TextDeviceNode)
EFI_DEVICE_PATH_PROTOCOLDevPathFromTextUsbCDCControl (IN CHAR16 *TextDeviceNode)
EFI_DEVICE_PATH_PROTOCOLDevPathFromTextUsbHID (IN CHAR16 *TextDeviceNode)
EFI_DEVICE_PATH_PROTOCOLDevPathFromTextUsbImage (IN CHAR16 *TextDeviceNode)
EFI_DEVICE_PATH_PROTOCOLDevPathFromTextUsbPrinter (IN CHAR16 *TextDeviceNode)
EFI_DEVICE_PATH_PROTOCOLDevPathFromTextUsbMassStorage (IN CHAR16 *TextDeviceNode)
EFI_DEVICE_PATH_PROTOCOLDevPathFromTextUsbHub (IN CHAR16 *TextDeviceNode)
EFI_DEVICE_PATH_PROTOCOLDevPathFromTextUsbCDCData (IN CHAR16 *TextDeviceNode)
EFI_DEVICE_PATH_PROTOCOLDevPathFromTextUsbSmartCard (IN CHAR16 *TextDeviceNode)
EFI_DEVICE_PATH_PROTOCOLDevPathFromTextUsbVideo (IN CHAR16 *TextDeviceNode)
EFI_DEVICE_PATH_PROTOCOLDevPathFromTextUsbDiagnostic (IN CHAR16 *TextDeviceNode)
EFI_DEVICE_PATH_PROTOCOLDevPathFromTextUsbWireless (IN CHAR16 *TextDeviceNode)
EFI_DEVICE_PATH_PROTOCOLDevPathFromTextUsbDeviceFirmwareUpdate (IN CHAR16 *TextDeviceNode)
EFI_DEVICE_PATH_PROTOCOLDevPathFromTextUsbIrdaBridge (IN CHAR16 *TextDeviceNode)
EFI_DEVICE_PATH_PROTOCOLDevPathFromTextUsbTestAndMeasurement (IN CHAR16 *TextDeviceNode)
EFI_DEVICE_PATH_PROTOCOLDevPathFromTextUsbWwid (IN CHAR16 *TextDeviceNode)
EFI_DEVICE_PATH_PROTOCOLDevPathFromTextUnit (IN CHAR16 *TextDeviceNode)
EFI_DEVICE_PATH_PROTOCOLDevPathFromTextiSCSI (IN CHAR16 *TextDeviceNode)
EFI_DEVICE_PATH_PROTOCOLDevPathFromTextVlan (IN CHAR16 *TextDeviceNode)
EFI_DEVICE_PATH_PROTOCOLDevPathFromTextBluetooth (IN CHAR16 *TextDeviceNode)
EFI_DEVICE_PATH_PROTOCOLDevPathFromTextWiFi (IN CHAR16 *TextDeviceNode)
EFI_DEVICE_PATH_PROTOCOLDevPathFromTextUri (IN CHAR16 *TextDeviceNode)
EFI_DEVICE_PATH_PROTOCOLDevPathFromTextMediaPath (IN CHAR16 *TextDeviceNode)
EFI_DEVICE_PATH_PROTOCOLDevPathFromTextHD (IN CHAR16 *TextDeviceNode)
EFI_DEVICE_PATH_PROTOCOLDevPathFromTextCDROM (IN CHAR16 *TextDeviceNode)
EFI_DEVICE_PATH_PROTOCOLDevPathFromTextVenMedia (IN CHAR16 *TextDeviceNode)
EFI_DEVICE_PATH_PROTOCOLDevPathFromTextFilePath (IN CHAR16 *TextDeviceNode)
EFI_DEVICE_PATH_PROTOCOLDevPathFromTextMedia (IN CHAR16 *TextDeviceNode)
EFI_DEVICE_PATH_PROTOCOLDevPathFromTextFv (IN CHAR16 *TextDeviceNode)
EFI_DEVICE_PATH_PROTOCOLDevPathFromTextFvFile (IN CHAR16 *TextDeviceNode)
EFI_DEVICE_PATH_PROTOCOLDevPathFromTextRelativeOffsetRange (IN CHAR16 *TextDeviceNode)
EFI_DEVICE_PATH_PROTOCOLDevPathFromTextRamDisk (IN CHAR16 *TextDeviceNode)
EFI_DEVICE_PATH_PROTOCOLDevPathFromTextVirtualDisk (IN CHAR16 *TextDeviceNode)
EFI_DEVICE_PATH_PROTOCOLDevPathFromTextVirtualCd (IN CHAR16 *TextDeviceNode)
EFI_DEVICE_PATH_PROTOCOLDevPathFromTextPersistentVirtualDisk (IN CHAR16 *TextDeviceNode)
EFI_DEVICE_PATH_PROTOCOLDevPathFromTextPersistentVirtualCd (IN CHAR16 *TextDeviceNode)
EFI_DEVICE_PATH_PROTOCOLDevPathFromTextBbsPath (IN CHAR16 *TextDeviceNode)
EFI_DEVICE_PATH_PROTOCOLDevPathFromTextBBS (IN CHAR16 *TextDeviceNode)
EFI_DEVICE_PATH_PROTOCOLDevPathFromTextSata (IN CHAR16 *TextDeviceNode)
EFI_DEVICE_PATH_PROTOCOL *EFIAPI UefiDevicePathLibConvertTextToDeviceNode (IN CONST CHAR16 *TextDeviceNode)
EFI_DEVICE_PATH_PROTOCOL *EFIAPI UefiDevicePathLibConvertTextToDevicePath (IN CONST CHAR16 *TextDevicePath)

Variables

GLOBAL_REMOVE_IF_UNREFERENCED
DEVICE_PATH_FROM_TEXT_TABLE 
mUefiDevicePathLibDevPathFromTextTable []

Detailed Description

DevicePathFromText protocol as defined in the UEFI 2.0 specification.

Copyright (c) 2013 - 2015, Intel Corporation. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at http://opensource.org/licenses/bsd-license.php

THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.


Function Documentation

EFI_DEVICE_PATH_PROTOCOL* ConvertFromTextAcpi ( IN CHAR16 TextDeviceNode,
IN UINT32  PnPId 
)

Converts a text device path node to ACPI HID device path structure.

Parameters:
TextDeviceNode The input Text device path node.
PnPId The input plug and play identification.
Returns:
A pointer to the newly-created ACPI HID device path structure.

References ACPI_DEVICE_PATH, ACPI_DP, CreateDeviceNode(), EFI_PNP_ID, GetNextParamStr(), ACPI_HID_DEVICE_PATH::HID, Strtoi(), and ACPI_HID_DEVICE_PATH::UID.

Referenced by DevPathFromTextFloppy(), DevPathFromTextKeyboard(), DevPathFromTextParallelPort(), DevPathFromTextPcieRoot(), DevPathFromTextPciRoot(), and DevPathFromTextSerial().

EFI_DEVICE_PATH_PROTOCOL* ConvertFromTextUsbClass ( IN CHAR16 TextDeviceNode,
IN USB_CLASS_TEXT UsbClassText 
)

EFI_DEVICE_PATH_PROTOCOL* ConvertFromTextVendor ( IN CHAR16 TextDeviceNode,
IN UINT8  Type,
IN UINT8  SubType 
)

Converts a text device path node to Vendor device path structure based on the input Type and SubType.

Parameters:
TextDeviceNode The input Text device path node.
Type The type of device path node.
SubType The subtype of device path node.
Returns:
A pointer to the newly-created Vendor device path structure.

References CreateDeviceNode(), GetNextParamStr(), VENDOR_DEVICE_PATH::Guid, StrLen(), StrToBuf(), and StrToGuid().

Referenced by DevPathFromTextVenHw(), DevPathFromTextVenMedia(), and DevPathFromTextVenMsg().

EFI_DEVICE_PATH_PROTOCOL* DevPathFromText1394 ( IN CHAR16 TextDeviceNode  ) 

Converts a text device path node to 1394 device path structure.

Parameters:
TextDeviceNode The input Text device path node.
Returns:
A pointer to the newly-created 1394 device path structure.

References CreateDeviceNode(), GetNextParamStr(), F1394_DEVICE_PATH::Guid, MESSAGING_DEVICE_PATH, MSG_1394_DP, F1394_DEVICE_PATH::Reserved, and StrHexToUint64().

EFI_DEVICE_PATH_PROTOCOL* DevPathFromTextAcpi ( IN CHAR16 TextDeviceNode  ) 

Converts a text device path node to ACPI HID device path structure.

Parameters:
TextDeviceNode The input Text device path node.
Returns:
A pointer to the newly-created ACPI HID device path structure.

References ACPI_DEVICE_PATH, ACPI_DP, CreateDeviceNode(), EisaIdFromText(), GetNextParamStr(), ACPI_HID_DEVICE_PATH::HID, Strtoi(), and ACPI_HID_DEVICE_PATH::UID.

EFI_DEVICE_PATH_PROTOCOL* DevPathFromTextAcpiAdr ( IN CHAR16 TextDeviceNode  ) 

Converts a text device path node to ACPI _ADR device path structure.

Parameters:
TextDeviceNode The input Text device path node.
Returns:
A pointer to the newly-created ACPI _ADR device path structure.

References ACPI_ADR_DP, ACPI_DEVICE_PATH, ACPI_ADR_DEVICE_PATH::ADR, ASSERT, CreateDeviceNode(), DevicePathNodeLength(), GetNextParamStr(), IS_NULL, NULL, ReallocatePool(), SetDevicePathNodeLength(), and Strtoi().

EFI_DEVICE_PATH_PROTOCOL* DevPathFromTextAcpiEx ( IN CHAR16 TextDeviceNode  ) 

Converts a text device path node to ACPI extension device path structure.

Parameters:
TextDeviceNode The input Text device path node.
Returns:
A pointer to the newly-created ACPI extension device path structure.

References ACPI_DEVICE_PATH, ACPI_EXTENDED_DP, ACPI_EXTENDED_HID_DEVICE_PATH::CID, CreateDeviceNode(), EisaIdFromText(), GetNextParamStr(), ACPI_EXTENDED_HID_DEVICE_PATH::HID, StrLen(), StrToAscii(), Strtoi(), and ACPI_EXTENDED_HID_DEVICE_PATH::UID.

EFI_DEVICE_PATH_PROTOCOL* DevPathFromTextAcpiExp ( IN CHAR16 TextDeviceNode  ) 

Converts a text device path node to ACPI extension device path structure.

Parameters:
TextDeviceNode The input Text device path node.
Returns:
A pointer to the newly-created ACPI extension device path structure.

References ACPI_DEVICE_PATH, ACPI_EXTENDED_DP, ACPI_EXTENDED_HID_DEVICE_PATH::CID, CreateDeviceNode(), EisaIdFromText(), GetNextParamStr(), ACPI_EXTENDED_HID_DEVICE_PATH::HID, StrLen(), StrToAscii(), and ACPI_EXTENDED_HID_DEVICE_PATH::UID.

EFI_DEVICE_PATH_PROTOCOL* DevPathFromTextAcpiPath ( IN CHAR16 TextDeviceNode  ) 

Converts a generic ACPI text device path node to ACPI device path structure.

Parameters:
TextDeviceNode The input Text device path node.
Returns:
A pointer to ACPI device path structure.

References ACPI_DEVICE_PATH, and DevPathFromTextGenericPath().

EFI_DEVICE_PATH_PROTOCOL* DevPathFromTextAta ( IN CHAR16 TextDeviceNode  ) 

Converts a text device path node to Parallel Port device path structure.

Parameters:
TextDeviceNode The input Text device path node.
Returns:
A pointer to the newly-created Parallel Port device path structure.

References CreateDeviceNode(), GetNextParamStr(), ATAPI_DEVICE_PATH::Lun, MESSAGING_DEVICE_PATH, MSG_ATAPI_DP, ATAPI_DEVICE_PATH::PrimarySecondary, ATAPI_DEVICE_PATH::SlaveMaster, StrCmp(), and Strtoi().

EFI_DEVICE_PATH_PROTOCOL* DevPathFromTextBBS ( IN CHAR16 TextDeviceNode  ) 

Converts a text device path node to BIOS Boot Specification device path structure.

Parameters:
TextDeviceNode The input Text device path node.
Returns:
A pointer to the newly-created BIOS Boot Specification device path structure.

References BBS_BBS_DP, BBS_DEVICE_PATH, BBS_TYPE_CDROM, BBS_TYPE_EMBEDDED_NETWORK, BBS_TYPE_FLOPPY, BBS_TYPE_HARDDRIVE, BBS_TYPE_PCMCIA, BBS_TYPE_USB, CreateDeviceNode(), BBS_BBS_DEVICE_PATH::DeviceType, GetNextParamStr(), BBS_BBS_DEVICE_PATH::StatusFlag, StrCmp(), BBS_BBS_DEVICE_PATH::String, StrLen(), StrToAscii(), and Strtoi().

EFI_DEVICE_PATH_PROTOCOL* DevPathFromTextBbsPath ( IN CHAR16 TextDeviceNode  ) 

Converts a BBS text device path node to BBS device path structure.

Parameters:
TextDeviceNode The input Text device path node.
Returns:
A pointer to BBS device path structure.

References BBS_DEVICE_PATH, and DevPathFromTextGenericPath().

EFI_DEVICE_PATH_PROTOCOL* DevPathFromTextBluetooth ( IN CHAR16 TextDeviceNode  ) 

Converts a text device path node to Bluetooth device path structure.

Parameters:
TextDeviceNode The input Text device path node.
Returns:
A pointer to the newly-created Bluetooth device path structure.

References BLUETOOTH_ADDRESS::Address, AllocateZeroPool(), BLUETOOTH_DEVICE_PATH::BD_ADDR, CreateDeviceNode(), FreePool(), GetNextParamStr(), IS_NULL, MESSAGING_DEVICE_PATH, MSG_BLUETOOTH_DP, NULL, StrCpyS(), StrnCatS(), StrSize(), and Strtoi().

EFI_DEVICE_PATH_PROTOCOL* DevPathFromTextBmc ( IN CHAR16 TextDeviceNode  ) 

Converts a text device path node to BMC device path structure.

Parameters:
TextDeviceNode The input Text device path node.
Returns:
A pointer to the newly-created BMC device path structure.

References BMC_DEVICE_PATH::BaseAddress, CreateDeviceNode(), GetNextParamStr(), HARDWARE_DEVICE_PATH, HW_BMC_DP, BMC_DEVICE_PATH::InterfaceType, StrHexToUint64(), Strtoi(), and WriteUnaligned64().

EFI_DEVICE_PATH_PROTOCOL* DevPathFromTextCDROM ( IN CHAR16 TextDeviceNode  ) 

Converts a text device path node to CDROM device path structure.

Parameters:
TextDeviceNode The input Text device path node.
Returns:
A pointer to the newly-created CDROM device path structure.

References CDROM_DEVICE_PATH::BootEntry, CreateDeviceNode(), GetNextParamStr(), MEDIA_CDROM_DP, MEDIA_DEVICE_PATH, CDROM_DEVICE_PATH::PartitionSize, CDROM_DEVICE_PATH::PartitionStart, Strtoi(), and Strtoi64().

EFI_DEVICE_PATH_PROTOCOL* DevPathFromTextCtrl ( IN CHAR16 TextDeviceNode  ) 

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

Parameters:
TextDeviceNode The input Text device path node.
Returns:
A pointer to the newly-created Hardware Controller device path structure.

References CONTROLLER_DEVICE_PATH::ControllerNumber, CreateDeviceNode(), GetNextParamStr(), HARDWARE_DEVICE_PATH, HW_CONTROLLER_DP, and Strtoi().

EFI_DEVICE_PATH_PROTOCOL* DevPathFromTextDebugPort ( IN CHAR16 TextDeviceNode  ) 

Converts a text device path node to Debug Port device path structure.

Parameters:
TextDeviceNode The input Text device path node.
Returns:
A pointer to the newly-created Debug Port device path structure.

References CopyGuid(), CreateDeviceNode(), gEfiDebugPortProtocolGuid, VENDOR_DEFINED_MESSAGING_DEVICE_PATH::Guid, MESSAGING_DEVICE_PATH, and MSG_VENDOR_DP.

EFI_DEVICE_PATH_PROTOCOL* DevPathFromTextFibre ( IN CHAR16 TextDeviceNode  ) 

Converts a text device path node to Fibre device path structure.

Parameters:
TextDeviceNode The input Text device path node.
Returns:
A pointer to the newly-created Fibre device path structure.

References CreateDeviceNode(), GetNextParamStr(), FIBRECHANNEL_DEVICE_PATH::Lun, MESSAGING_DEVICE_PATH, MSG_FIBRECHANNEL_DP, FIBRECHANNEL_DEVICE_PATH::Reserved, Strtoi64(), and FIBRECHANNEL_DEVICE_PATH::WWN.

EFI_DEVICE_PATH_PROTOCOL* DevPathFromTextFibreEx ( IN CHAR16 TextDeviceNode  ) 

Converts a text device path node to FibreEx device path structure.

Parameters:
TextDeviceNode The input Text device path node.
Returns:
A pointer to the newly-created FibreEx device path structure.

References CreateDeviceNode(), GetNextParamStr(), FIBRECHANNELEX_DEVICE_PATH::Lun, MESSAGING_DEVICE_PATH, MSG_FIBRECHANNELEX_DP, FIBRECHANNELEX_DEVICE_PATH::Reserved, Strtoi64(), SwapBytes64(), and FIBRECHANNELEX_DEVICE_PATH::WWN.

EFI_DEVICE_PATH_PROTOCOL* DevPathFromTextFilePath ( IN CHAR16 TextDeviceNode  ) 

Converts a text device path node to File device path structure.

Parameters:
TextDeviceNode The input Text device path node.
Returns:
A pointer to the newly-created File device path structure.

References CreateDeviceNode(), MEDIA_DEVICE_PATH, MEDIA_FILEPATH_DP, FILEPATH_DEVICE_PATH::PathName, StrCpyS(), and StrLen().

Referenced by UefiDevicePathLibConvertTextToDeviceNode().

EFI_DEVICE_PATH_PROTOCOL* DevPathFromTextFloppy ( IN CHAR16 TextDeviceNode  ) 

Converts a text device path node to Floppy device path structure.

Parameters:
TextDeviceNode The input Text device path node.
Returns:
A pointer to the newly-created Floppy device path structure.

References ConvertFromTextAcpi().

EFI_DEVICE_PATH_PROTOCOL* DevPathFromTextFv ( IN CHAR16 TextDeviceNode  ) 

Converts a text device path node to firmware volume device path structure.

Parameters:
TextDeviceNode The input Text device path node.
Returns:
A pointer to the newly-created firmware volume device path structure.

References CreateDeviceNode(), MEDIA_FW_VOL_DEVICE_PATH::FvName, GetNextParamStr(), MEDIA_DEVICE_PATH, MEDIA_PIWG_FW_VOL_DP, and StrToGuid().

EFI_DEVICE_PATH_PROTOCOL* DevPathFromTextFvFile ( IN CHAR16 TextDeviceNode  ) 

Converts a text device path node to firmware file device path structure.

Parameters:
TextDeviceNode The input Text device path node.
Returns:
A pointer to the newly-created firmware file device path structure.

References CreateDeviceNode(), MEDIA_FW_VOL_FILEPATH_DEVICE_PATH::FvFileName, GetNextParamStr(), MEDIA_DEVICE_PATH, MEDIA_PIWG_FW_FILE_DP, and StrToGuid().

EFI_DEVICE_PATH_PROTOCOL* DevPathFromTextGenericPath ( IN UINT8  Type,
IN CHAR16 TextDeviceNode 
)

Converts a generic text device path node to device path structure.

Parameters:
Type The type of the device path node.
TextDeviceNode The input text device path node.
Returns:
A pointer to device path structure.

References CreateDeviceNode(), GetNextParamStr(), NULL, StrLen(), StrToBuf(), and Strtoi().

Referenced by DevPathFromTextAcpiPath(), DevPathFromTextBbsPath(), DevPathFromTextHardwarePath(), DevPathFromTextMediaPath(), DevPathFromTextMsg(), and DevPathFromTextPath().

EFI_DEVICE_PATH_PROTOCOL* DevPathFromTextHardwarePath ( IN CHAR16 TextDeviceNode  ) 

Converts a generic hardware text device path node to Hardware device path structure.

Parameters:
TextDeviceNode The input Text device path node.
Returns:
A pointer to Hardware device path structure.

References DevPathFromTextGenericPath(), and HARDWARE_DEVICE_PATH.

EFI_DEVICE_PATH_PROTOCOL* DevPathFromTextHD ( IN CHAR16 TextDeviceNode  ) 

EFI_DEVICE_PATH_PROTOCOL* DevPathFromTextI2O ( IN CHAR16 TextDeviceNode  ) 

Converts a text device path node to I20 device path structure.

Parameters:
TextDeviceNode The input Text device path node.
Returns:
A pointer to the newly-created I20 device path structure.

References CreateDeviceNode(), GetNextParamStr(), MESSAGING_DEVICE_PATH, MSG_I2O_DP, Strtoi(), and I2O_DEVICE_PATH::Tid.

EFI_DEVICE_PATH_PROTOCOL* DevPathFromTextInfiniband ( IN CHAR16 TextDeviceNode  ) 

Converts a text device path node to Infini Band device path structure.

Parameters:
TextDeviceNode The input Text device path node.
Returns:
A pointer to the newly-created Infini Band device path structure.

References CopyMem(), CreateDeviceNode(), INFINIBAND_DEVICE_PATH::DeviceId, GetNextParamStr(), MESSAGING_DEVICE_PATH, MSG_INFINIBAND_DP, INFINIBAND_DEVICE_PATH::PortGid, INFINIBAND_DEVICE_PATH::ResourceFlags, INFINIBAND_DEVICE_PATH::ServiceId, StrToGuid(), Strtoi(), Strtoi64(), and INFINIBAND_DEVICE_PATH::TargetPortId.

EFI_DEVICE_PATH_PROTOCOL* DevPathFromTextIPv4 ( IN CHAR16 TextDeviceNode  ) 

EFI_DEVICE_PATH_PROTOCOL* DevPathFromTextIPv6 ( IN CHAR16 TextDeviceNode  ) 

EFI_DEVICE_PATH_PROTOCOL* DevPathFromTextiSCSI ( IN CHAR16 TextDeviceNode  ) 

Converts a text device path node to iSCSI device path structure.

Parameters:
TextDeviceNode The input Text device path node.
Returns:
A pointer to the newly-created iSCSI device path structure.

References CreateDeviceNode(), GetNextParamStr(), ISCSI_DEVICE_PATH_WITH_NAME::LoginOption, ISCSI_DEVICE_PATH_WITH_NAME::Lun, MESSAGING_DEVICE_PATH, MSG_ISCSI_DP, ISCSI_DEVICE_PATH_WITH_NAME::NetworkProtocol, StrCmp(), StrLen(), StrToAscii(), Strtoi(), Strtoi64(), ISCSI_DEVICE_PATH_WITH_NAME::TargetName, and ISCSI_DEVICE_PATH_WITH_NAME::TargetPortalGroupTag.

EFI_DEVICE_PATH_PROTOCOL* DevPathFromTextKeyboard ( IN CHAR16 TextDeviceNode  ) 

Converts a text device path node to Keyboard device path structure.

Parameters:
TextDeviceNode The input Text device path node.
Returns:
A pointer to the newly-created Keyboard device path structure.

References ConvertFromTextAcpi().

EFI_DEVICE_PATH_PROTOCOL* DevPathFromTextMAC ( IN CHAR16 TextDeviceNode  ) 

Converts a text device path node to MAC device path structure.

Parameters:
TextDeviceNode The input Text device path node.
Returns:
A pointer to the newly-created MAC device path structure.

References EFI_MAC_ADDRESS::Addr, CreateDeviceNode(), GetNextParamStr(), MAC_ADDR_DEVICE_PATH::IfType, MAC_ADDR_DEVICE_PATH::MacAddress, MESSAGING_DEVICE_PATH, MSG_MAC_ADDR_DP, StrToBuf(), and Strtoi().

EFI_DEVICE_PATH_PROTOCOL* DevPathFromTextMedia ( IN CHAR16 TextDeviceNode  ) 

Converts a text device path node to Media protocol device path structure.

Parameters:
TextDeviceNode The input Text device path node.
Returns:
A pointer to the newly-created Media protocol device path structure.

References CreateDeviceNode(), GetNextParamStr(), MEDIA_DEVICE_PATH, MEDIA_PROTOCOL_DP, MEDIA_PROTOCOL_DEVICE_PATH::Protocol, and StrToGuid().

EFI_DEVICE_PATH_PROTOCOL* DevPathFromTextMediaPath ( IN CHAR16 TextDeviceNode  ) 

Converts a media text device path node to media device path structure.

Parameters:
TextDeviceNode The input Text device path node.
Returns:
A pointer to media device path structure.

References DevPathFromTextGenericPath(), and MEDIA_DEVICE_PATH.

EFI_DEVICE_PATH_PROTOCOL* DevPathFromTextMemoryMapped ( IN CHAR16 TextDeviceNode  ) 

Converts a text device path node to Hardware memory map device path structure.

Parameters:
TextDeviceNode The input Text device path node.
Returns:
A pointer to Hardware memory map device path structure.

References CreateDeviceNode(), MEMMAP_DEVICE_PATH::EndingAddress, GetNextParamStr(), HARDWARE_DEVICE_PATH, HW_MEMMAP_DP, MEMMAP_DEVICE_PATH::MemoryType, MEMMAP_DEVICE_PATH::StartingAddress, Strtoi(), and Strtoi64().

EFI_DEVICE_PATH_PROTOCOL* DevPathFromTextMsg ( IN CHAR16 TextDeviceNode  ) 

Converts a generic messaging text device path node to messaging device path structure.

Parameters:
TextDeviceNode The input Text device path node.
Returns:
A pointer to messaging device path structure.

References DevPathFromTextGenericPath(), and MESSAGING_DEVICE_PATH.

EFI_DEVICE_PATH_PROTOCOL* DevPathFromTextNVMe ( IN CHAR16 TextDeviceNode  ) 

Converts a text device path node to NVM Express Namespace device path structure.

Parameters:
TextDeviceNode The input Text device path node.
Returns:
A pointer to the newly-created NVM Express Namespace device path structure.

References CreateDeviceNode(), GetNextParamStr(), MESSAGING_DEVICE_PATH, MSG_NVME_NAMESPACE_DP, NVME_NAMESPACE_DEVICE_PATH::NamespaceId, NVME_NAMESPACE_DEVICE_PATH::NamespaceUuid, SplitStr(), StrHexToUintn(), and Strtoi().

EFI_DEVICE_PATH_PROTOCOL* DevPathFromTextParallelPort ( IN CHAR16 TextDeviceNode  ) 

Converts a text device path node to Parallel Port device path structure.

Parameters:
TextDeviceNode The input Text device path node.
Returns:
A pointer to the newly-created Parallel Port device path structure.

References ConvertFromTextAcpi().

EFI_DEVICE_PATH_PROTOCOL* DevPathFromTextPath ( IN CHAR16 TextDeviceNode  ) 

Converts a generic text device path node to device path structure.

Parameters:
TextDeviceNode The input Text device path node.
Returns:
A pointer to device path structure.

References DevPathFromTextGenericPath(), GetNextParamStr(), and Strtoi().

EFI_DEVICE_PATH_PROTOCOL* DevPathFromTextPcCard ( IN CHAR16 TextDeviceNode  ) 

Converts a text device path node to Hardware PC card device path structure.

Parameters:
TextDeviceNode The input Text device path node.
Returns:
A pointer to Hardware PC card device path structure.

References CreateDeviceNode(), PCCARD_DEVICE_PATH::FunctionNumber, GetNextParamStr(), HARDWARE_DEVICE_PATH, HW_PCCARD_DP, and Strtoi().

EFI_DEVICE_PATH_PROTOCOL* DevPathFromTextPci ( IN CHAR16 TextDeviceNode  ) 

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

Parameters:
TextDeviceNode The input Text device path node.
Returns:
A pointer to Hardware PCI device path structure.

References CreateDeviceNode(), PCI_DEVICE_PATH::Device, PCI_DEVICE_PATH::Function, GetNextParamStr(), HARDWARE_DEVICE_PATH, HW_PCI_DP, and Strtoi().

EFI_DEVICE_PATH_PROTOCOL* DevPathFromTextPcieRoot ( IN CHAR16 TextDeviceNode  ) 

Converts a text device path node to PCIE root device path structure.

Parameters:
TextDeviceNode The input Text device path node.
Returns:
A pointer to the newly-created PCIE root device path structure.

References ConvertFromTextAcpi().

EFI_DEVICE_PATH_PROTOCOL* DevPathFromTextPciRoot ( IN CHAR16 TextDeviceNode  ) 

Converts a text device path node to PCI root device path structure.

Parameters:
TextDeviceNode The input Text device path node.
Returns:
A pointer to the newly-created PCI root device path structure.

References ConvertFromTextAcpi().

EFI_DEVICE_PATH_PROTOCOL* DevPathFromTextPersistentVirtualCd ( IN CHAR16 TextDeviceNode  ) 

Converts a text device path node to text persistent virtual cd device path structure.

Parameters:
TextDeviceNode The input Text device path node.
Returns:
A pointer to the newly-created Text device path structure.

References CopyGuid(), CreateDeviceNode(), MEDIA_RAM_DISK_DEVICE_PATH::EndingAddr, gEfiPersistentVirtualCdGuid, GetNextParamStr(), MEDIA_RAM_DISK_DEVICE_PATH::Instance, MEDIA_DEVICE_PATH, MEDIA_RAM_DISK_DP, MEDIA_RAM_DISK_DEVICE_PATH::StartingAddr, Strtoi(), Strtoi64(), MEDIA_RAM_DISK_DEVICE_PATH::TypeGuid, and WriteUnaligned64().

EFI_DEVICE_PATH_PROTOCOL* DevPathFromTextPersistentVirtualDisk ( IN CHAR16 TextDeviceNode  ) 

Converts a text device path node to text persistent virtual disk device path structure.

Parameters:
TextDeviceNode The input Text device path node.
Returns:
A pointer to the newly-created Text device path structure.

References CopyGuid(), CreateDeviceNode(), MEDIA_RAM_DISK_DEVICE_PATH::EndingAddr, gEfiPersistentVirtualDiskGuid, GetNextParamStr(), MEDIA_RAM_DISK_DEVICE_PATH::Instance, MEDIA_DEVICE_PATH, MEDIA_RAM_DISK_DP, MEDIA_RAM_DISK_DEVICE_PATH::StartingAddr, Strtoi(), Strtoi64(), MEDIA_RAM_DISK_DEVICE_PATH::TypeGuid, and WriteUnaligned64().

EFI_DEVICE_PATH_PROTOCOL* DevPathFromTextRamDisk ( IN CHAR16 TextDeviceNode  ) 

Converts a text device path node to text ram disk device path structure.

Parameters:
TextDeviceNode The input Text device path node.
Returns:
A pointer to the newly-created Text device path structure.

References CreateDeviceNode(), MEDIA_RAM_DISK_DEVICE_PATH::EndingAddr, GetNextParamStr(), MEDIA_RAM_DISK_DEVICE_PATH::Instance, MEDIA_DEVICE_PATH, MEDIA_RAM_DISK_DP, MEDIA_RAM_DISK_DEVICE_PATH::StartingAddr, StrToGuid(), Strtoi(), Strtoi64(), MEDIA_RAM_DISK_DEVICE_PATH::TypeGuid, and WriteUnaligned64().

EFI_DEVICE_PATH_PROTOCOL* DevPathFromTextRelativeOffsetRange ( IN CHAR16 TextDeviceNode  ) 

Converts a text device path node to text relative offset device path structure.

Parameters:
TextDeviceNode The input Text device path node.
Returns:
A pointer to the newly-created Text device path structure.

References CreateDeviceNode(), MEDIA_RELATIVE_OFFSET_RANGE_DEVICE_PATH::EndingOffset, GetNextParamStr(), MEDIA_DEVICE_PATH, MEDIA_RELATIVE_OFFSET_RANGE_DP, MEDIA_RELATIVE_OFFSET_RANGE_DEVICE_PATH::StartingOffset, and Strtoi64().

EFI_DEVICE_PATH_PROTOCOL* DevPathFromTextSAS ( IN CHAR16 TextDeviceNode  ) 

Converts a text device path node to Serial Attached SCSI device path structure.

Parameters:
TextDeviceNode The input Text device path node.
Returns:
A pointer to the newly-created Serial Attached SCSI device path structure.

References BIT0, BIT1, BIT4, CopyGuid(), CreateDeviceNode(), SAS_DEVICE_PATH::DeviceTopology, gEfiSasDevicePathGuid, GetNextParamStr(), SAS_DEVICE_PATH::Guid, SAS_DEVICE_PATH::Lun, MESSAGING_DEVICE_PATH, MSG_VENDOR_DP, SAS_DEVICE_PATH::RelativeTargetPort, SAS_DEVICE_PATH::Reserved, SAS_DEVICE_PATH::SasAddress, StrCmp(), Strtoi(), and Strtoi64().

EFI_DEVICE_PATH_PROTOCOL* DevPathFromTextSasEx ( IN CHAR16 TextDeviceNode  ) 

Converts a text device path node to Serial Attached SCSI Ex device path structure.

Parameters:
TextDeviceNode The input Text device path node.
Returns:
A pointer to the newly-created Serial Attached SCSI Ex device path structure.

References BIT0, BIT1, BIT4, CreateDeviceNode(), SASEX_DEVICE_PATH::DeviceTopology, GetNextParamStr(), SASEX_DEVICE_PATH::Lun, MESSAGING_DEVICE_PATH, MSG_SASEX_DP, SASEX_DEVICE_PATH::RelativeTargetPort, SASEX_DEVICE_PATH::SasAddress, StrCmp(), Strtoi(), Strtoi64(), SwapBytes64(), and WriteUnaligned64().

EFI_DEVICE_PATH_PROTOCOL* DevPathFromTextSata ( IN CHAR16 TextDeviceNode  ) 

Converts a text device path node to SATA device path structure.

Parameters:
TextDeviceNode The input Text device path node.
Returns:
A pointer to the newly-created SATA device path structure.

References CreateDeviceNode(), GetNextParamStr(), SATA_DEVICE_PATH::HBAPortNumber, SATA_DEVICE_PATH::Lun, MESSAGING_DEVICE_PATH, MSG_SATA_DP, SATA_DEVICE_PATH::PortMultiplierPortNumber, and Strtoi().

EFI_DEVICE_PATH_PROTOCOL* DevPathFromTextScsi ( IN CHAR16 TextDeviceNode  ) 

Converts a text device path node to SCSI device path structure.

Parameters:
TextDeviceNode The input Text device path node.
Returns:
A pointer to the newly-created SCSI device path structure.

References CreateDeviceNode(), GetNextParamStr(), SCSI_DEVICE_PATH::Lun, MESSAGING_DEVICE_PATH, MSG_SCSI_DP, SCSI_DEVICE_PATH::Pun, and Strtoi().

EFI_DEVICE_PATH_PROTOCOL* DevPathFromTextSd ( IN CHAR16 TextDeviceNode  ) 

Converts a text device path node to SD (Secure Digital) device path structure.

Parameters:
TextDeviceNode The input Text device path node.
Returns:
A pointer to the newly-created SD device path structure.

References CreateDeviceNode(), GetNextParamStr(), MESSAGING_DEVICE_PATH, MSG_SD_DP, SD_DEVICE_PATH::SlotNumber, and Strtoi().

EFI_DEVICE_PATH_PROTOCOL* DevPathFromTextSerial ( IN CHAR16 TextDeviceNode  ) 

Converts a text device path node to Serial device path structure.

Parameters:
TextDeviceNode The input Text device path node.
Returns:
A pointer to the newly-created Serial device path structure.

References ConvertFromTextAcpi().

EFI_DEVICE_PATH_PROTOCOL* DevPathFromTextUart ( IN CHAR16 TextDeviceNode  ) 

Converts a text device path node to UART device path structure.

Parameters:
TextDeviceNode The input Text device path node.
Returns:
A pointer to the newly-created UART device path structure.

References UART_DEVICE_PATH::BaudRate, CreateDeviceNode(), UART_DEVICE_PATH::DataBits, GetNextParamStr(), MESSAGING_DEVICE_PATH, MSG_UART_DP, UART_DEVICE_PATH::Parity, UART_DEVICE_PATH::StopBits, StrCmp(), Strtoi(), and Strtoi64().

EFI_DEVICE_PATH_PROTOCOL* DevPathFromTextUartFlowCtrl ( IN CHAR16 TextDeviceNode  ) 

Converts a text device path node to UART Flow Control device path structure.

Parameters:
TextDeviceNode The input Text device path node.
Returns:
A pointer to the newly-created UART Flow Control device path structure.

References CopyGuid(), CreateDeviceNode(), UART_FLOW_CONTROL_DEVICE_PATH::FlowControlMap, gEfiUartDevicePathGuid, GetNextParamStr(), UART_FLOW_CONTROL_DEVICE_PATH::Guid, MESSAGING_DEVICE_PATH, MSG_VENDOR_DP, and StrCmp().

EFI_DEVICE_PATH_PROTOCOL* DevPathFromTextUfs ( IN CHAR16 TextDeviceNode  ) 

Converts a text device path node to UFS device path structure.

Parameters:
TextDeviceNode The input Text device path node.
Returns:
A pointer to the newly-created UFS device path structure.

References CreateDeviceNode(), GetNextParamStr(), UFS_DEVICE_PATH::Lun, MESSAGING_DEVICE_PATH, MSG_UFS_DP, UFS_DEVICE_PATH::Pun, and Strtoi().

EFI_DEVICE_PATH_PROTOCOL* DevPathFromTextUnit ( IN CHAR16 TextDeviceNode  ) 

Converts a text device path node to Logic Unit device path structure.

Parameters:
TextDeviceNode The input Text device path node.
Returns:
A pointer to the newly-created Logic Unit device path structure.

References CreateDeviceNode(), GetNextParamStr(), DEVICE_LOGICAL_UNIT_DEVICE_PATH::Lun, MESSAGING_DEVICE_PATH, MSG_DEVICE_LOGICAL_UNIT_DP, and Strtoi().

EFI_DEVICE_PATH_PROTOCOL* DevPathFromTextUri ( IN CHAR16 TextDeviceNode  ) 

Converts a text device path node to URI device path structure.

Parameters:
TextDeviceNode The input Text device path node.
Returns:
A pointer to the newly-created URI device path structure.

References CreateDeviceNode(), GetNextParamStr(), MAX_UINT16, MESSAGING_DEVICE_PATH, MSG_URI_DP, StrnLenS(), and URI_DEVICE_PATH::Uri.

EFI_DEVICE_PATH_PROTOCOL* DevPathFromTextUsb ( IN CHAR16 TextDeviceNode  ) 

Converts a text device path node to USB device path structure.

Parameters:
TextDeviceNode The input Text device path node.
Returns:
A pointer to the newly-created USB device path structure.

References CreateDeviceNode(), GetNextParamStr(), USB_DEVICE_PATH::InterfaceNumber, MESSAGING_DEVICE_PATH, MSG_USB_DP, USB_DEVICE_PATH::ParentPortNumber, and Strtoi().

EFI_DEVICE_PATH_PROTOCOL* DevPathFromTextUsbAudio ( IN CHAR16 TextDeviceNode  ) 

Converts a text device path node to USB audio device path structure.

Parameters:
TextDeviceNode The input Text device path node.
Returns:
A pointer to the newly-created USB audio device path structure.

References USB_CLASS_TEXT::Class, USB_CLASS_TEXT::ClassExist, ConvertFromTextUsbClass(), FALSE, USB_CLASS_TEXT::SubClassExist, TRUE, and USB_CLASS_AUDIO.

EFI_DEVICE_PATH_PROTOCOL* DevPathFromTextUsbCDCControl ( IN CHAR16 TextDeviceNode  ) 

Converts a text device path node to USB CDC Control device path structure.

Parameters:
TextDeviceNode The input Text device path node.
Returns:
A pointer to the newly-created USB CDC Control device path structure.

References USB_CLASS_TEXT::Class, USB_CLASS_TEXT::ClassExist, ConvertFromTextUsbClass(), FALSE, USB_CLASS_TEXT::SubClassExist, TRUE, and USB_CLASS_CDCCONTROL.

EFI_DEVICE_PATH_PROTOCOL* DevPathFromTextUsbCDCData ( IN CHAR16 TextDeviceNode  ) 

Converts a text device path node to USB CDC data device path structure.

Parameters:
TextDeviceNode The input Text device path node.
Returns:
A pointer to the newly-created USB CDC data device path structure.

References USB_CLASS_TEXT::Class, USB_CLASS_TEXT::ClassExist, ConvertFromTextUsbClass(), FALSE, USB_CLASS_TEXT::SubClassExist, TRUE, and USB_CLASS_CDCDATA.

EFI_DEVICE_PATH_PROTOCOL* DevPathFromTextUsbClass ( IN CHAR16 TextDeviceNode  ) 

Converts a text device path node to USB class device path structure.

Parameters:
TextDeviceNode The input Text device path node.
Returns:
A pointer to the newly-created USB class device path structure.

References USB_CLASS_TEXT::ClassExist, ConvertFromTextUsbClass(), USB_CLASS_TEXT::SubClassExist, and TRUE.

EFI_DEVICE_PATH_PROTOCOL* DevPathFromTextUsbDeviceFirmwareUpdate ( IN CHAR16 TextDeviceNode  ) 

Converts a text device path node to USB device firmware update device path structure.

Parameters:
TextDeviceNode The input Text device path node.
Returns:
A pointer to the newly-created USB device firmware update device path structure.

References USB_CLASS_TEXT::Class, USB_CLASS_TEXT::ClassExist, ConvertFromTextUsbClass(), FALSE, USB_CLASS_TEXT::SubClass, USB_CLASS_TEXT::SubClassExist, USB_CLASS_RESERVE, and USB_SUBCLASS_FW_UPDATE.

EFI_DEVICE_PATH_PROTOCOL* DevPathFromTextUsbDiagnostic ( IN CHAR16 TextDeviceNode  ) 

Converts a text device path node to USB diagnostic device path structure.

Parameters:
TextDeviceNode The input Text device path node.
Returns:
A pointer to the newly-created USB diagnostic device path structure.

References USB_CLASS_TEXT::Class, USB_CLASS_TEXT::ClassExist, ConvertFromTextUsbClass(), FALSE, USB_CLASS_TEXT::SubClassExist, TRUE, and USB_CLASS_DIAGNOSTIC.

EFI_DEVICE_PATH_PROTOCOL* DevPathFromTextUsbHID ( IN CHAR16 TextDeviceNode  ) 

Converts a text device path node to USB HID device path structure.

Parameters:
TextDeviceNode The input Text device path node.
Returns:
A pointer to the newly-created USB HID device path structure.

References USB_CLASS_TEXT::Class, USB_CLASS_TEXT::ClassExist, ConvertFromTextUsbClass(), FALSE, USB_CLASS_TEXT::SubClassExist, TRUE, and USB_CLASS_HID.

EFI_DEVICE_PATH_PROTOCOL* DevPathFromTextUsbHub ( IN CHAR16 TextDeviceNode  ) 

Converts a text device path node to USB HUB device path structure.

Parameters:
TextDeviceNode The input Text device path node.
Returns:
A pointer to the newly-created USB HUB device path structure.

References USB_CLASS_TEXT::Class, USB_CLASS_TEXT::ClassExist, ConvertFromTextUsbClass(), FALSE, USB_CLASS_TEXT::SubClassExist, TRUE, and USB_CLASS_HUB.

EFI_DEVICE_PATH_PROTOCOL* DevPathFromTextUsbImage ( IN CHAR16 TextDeviceNode  ) 

Converts a text device path node to USB Image device path structure.

Parameters:
TextDeviceNode The input Text device path node.
Returns:
A pointer to the newly-created USB Image device path structure.

References USB_CLASS_TEXT::Class, USB_CLASS_TEXT::ClassExist, ConvertFromTextUsbClass(), FALSE, USB_CLASS_TEXT::SubClassExist, TRUE, and USB_CLASS_IMAGE.

EFI_DEVICE_PATH_PROTOCOL* DevPathFromTextUsbIrdaBridge ( IN CHAR16 TextDeviceNode  ) 

Converts a text device path node to USB IRDA bridge device path structure.

Parameters:
TextDeviceNode The input Text device path node.
Returns:
A pointer to the newly-created USB IRDA bridge device path structure.

References USB_CLASS_TEXT::Class, USB_CLASS_TEXT::ClassExist, ConvertFromTextUsbClass(), FALSE, USB_CLASS_TEXT::SubClass, USB_CLASS_TEXT::SubClassExist, USB_CLASS_RESERVE, and USB_SUBCLASS_IRDA_BRIDGE.

EFI_DEVICE_PATH_PROTOCOL* DevPathFromTextUsbMassStorage ( IN CHAR16 TextDeviceNode  ) 

Converts a text device path node to USB mass storage device path structure.

Parameters:
TextDeviceNode The input Text device path node.
Returns:
A pointer to the newly-created USB mass storage device path structure.

References USB_CLASS_TEXT::Class, USB_CLASS_TEXT::ClassExist, ConvertFromTextUsbClass(), FALSE, USB_CLASS_TEXT::SubClassExist, TRUE, and USB_CLASS_MASS_STORAGE.

EFI_DEVICE_PATH_PROTOCOL* DevPathFromTextUsbPrinter ( IN CHAR16 TextDeviceNode  ) 

Converts a text device path node to USB Print device path structure.

Parameters:
TextDeviceNode The input Text device path node.
Returns:
A pointer to the newly-created USB Print device path structure.

References USB_CLASS_TEXT::Class, USB_CLASS_TEXT::ClassExist, ConvertFromTextUsbClass(), FALSE, USB_CLASS_TEXT::SubClassExist, TRUE, and USB_CLASS_PRINTER.

EFI_DEVICE_PATH_PROTOCOL* DevPathFromTextUsbSmartCard ( IN CHAR16 TextDeviceNode  ) 

Converts a text device path node to USB smart card device path structure.

Parameters:
TextDeviceNode The input Text device path node.
Returns:
A pointer to the newly-created USB smart card device path structure.

References USB_CLASS_TEXT::Class, USB_CLASS_TEXT::ClassExist, ConvertFromTextUsbClass(), FALSE, USB_CLASS_TEXT::SubClassExist, TRUE, and USB_CLASS_SMART_CARD.

EFI_DEVICE_PATH_PROTOCOL* DevPathFromTextUsbTestAndMeasurement ( IN CHAR16 TextDeviceNode  ) 

Converts a text device path node to USB text and measurement device path structure.

Parameters:
TextDeviceNode The input Text device path node.
Returns:
A pointer to the newly-created USB text and measurement device path structure.

References USB_CLASS_TEXT::Class, USB_CLASS_TEXT::ClassExist, ConvertFromTextUsbClass(), FALSE, USB_CLASS_TEXT::SubClass, USB_CLASS_TEXT::SubClassExist, USB_CLASS_RESERVE, and USB_SUBCLASS_TEST.

EFI_DEVICE_PATH_PROTOCOL* DevPathFromTextUsbVideo ( IN CHAR16 TextDeviceNode  ) 

Converts a text device path node to USB video device path structure.

Parameters:
TextDeviceNode The input Text device path node.
Returns:
A pointer to the newly-created USB video device path structure.

References USB_CLASS_TEXT::Class, USB_CLASS_TEXT::ClassExist, ConvertFromTextUsbClass(), FALSE, USB_CLASS_TEXT::SubClassExist, TRUE, and USB_CLASS_VIDEO.

EFI_DEVICE_PATH_PROTOCOL* DevPathFromTextUsbWireless ( IN CHAR16 TextDeviceNode  ) 

Converts a text device path node to USB wireless device path structure.

Parameters:
TextDeviceNode The input Text device path node.
Returns:
A pointer to the newly-created USB wireless device path structure.

References USB_CLASS_TEXT::Class, USB_CLASS_TEXT::ClassExist, ConvertFromTextUsbClass(), FALSE, USB_CLASS_TEXT::SubClassExist, TRUE, and USB_CLASS_WIRELESS.

EFI_DEVICE_PATH_PROTOCOL* DevPathFromTextUsbWwid ( IN CHAR16 TextDeviceNode  ) 

Converts a text device path node to USB WWID device path structure.

Parameters:
TextDeviceNode The input Text device path node.
Returns:
A pointer to the newly-created USB WWID device path structure.

References CopyMem(), CreateDeviceNode(), GetNextParamStr(), USB_WWID_DEVICE_PATH::InterfaceNumber, MESSAGING_DEVICE_PATH, MSG_USB_WWID_DP, USB_WWID_DEVICE_PATH::ProductId, StrLen(), Strtoi(), and USB_WWID_DEVICE_PATH::VendorId.

EFI_DEVICE_PATH_PROTOCOL* DevPathFromTextVenHw ( IN CHAR16 TextDeviceNode  ) 

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

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

References ConvertFromTextVendor(), HARDWARE_DEVICE_PATH, and HW_VENDOR_DP.

EFI_DEVICE_PATH_PROTOCOL* DevPathFromTextVenMedia ( IN CHAR16 TextDeviceNode  ) 

Converts a text device path node to Vendor-defined media device path structure.

Parameters:
TextDeviceNode The input Text device path node.
Returns:
A pointer to the newly-created Vendor-defined media device path structure.

References ConvertFromTextVendor(), MEDIA_DEVICE_PATH, and MEDIA_VENDOR_DP.

EFI_DEVICE_PATH_PROTOCOL* DevPathFromTextVenMsg ( IN CHAR16 TextDeviceNode  ) 

Converts a text device path node to Vendor-Defined Messaging device path structure.

Parameters:
TextDeviceNode The input Text device path node.
Returns:
A pointer to the newly-created Vendor-Defined Messaging device path structure.

References ConvertFromTextVendor(), MESSAGING_DEVICE_PATH, and MSG_VENDOR_DP.

EFI_DEVICE_PATH_PROTOCOL* DevPathFromTextVenPcAnsi ( IN CHAR16 TextDeviceNode  ) 

Converts a text device path node to Vendor defined PC-ANSI device path structure.

Parameters:
TextDeviceNode The input Text device path node.
Returns:
A pointer to the newly-created Vendor defined PC-ANSI device path structure.

References CopyGuid(), CreateDeviceNode(), gEfiPcAnsiGuid, VENDOR_DEVICE_PATH::Guid, MESSAGING_DEVICE_PATH, and MSG_VENDOR_DP.

EFI_DEVICE_PATH_PROTOCOL* DevPathFromTextVenUtf8 ( IN CHAR16 TextDeviceNode  ) 

Converts a text device path node to Vendor defined UTF8 device path structure.

Parameters:
TextDeviceNode The input Text device path node.
Returns:
A pointer to the newly-created Vendor defined UTF8 device path structure.

References CopyGuid(), CreateDeviceNode(), gEfiVTUTF8Guid, VENDOR_DEVICE_PATH::Guid, MESSAGING_DEVICE_PATH, and MSG_VENDOR_DP.

EFI_DEVICE_PATH_PROTOCOL* DevPathFromTextVenVt100 ( IN CHAR16 TextDeviceNode  ) 

Converts a text device path node to Vendor defined VT100 device path structure.

Parameters:
TextDeviceNode The input Text device path node.
Returns:
A pointer to the newly-created Vendor defined VT100 device path structure.

References CopyGuid(), CreateDeviceNode(), gEfiVT100Guid, VENDOR_DEVICE_PATH::Guid, MESSAGING_DEVICE_PATH, and MSG_VENDOR_DP.

EFI_DEVICE_PATH_PROTOCOL* DevPathFromTextVenVt100Plus ( IN CHAR16 TextDeviceNode  ) 

Converts a text device path node to Vendor defined VT100 Plus device path structure.

Parameters:
TextDeviceNode The input Text device path node.
Returns:
A pointer to the newly-created Vendor defined VT100 Plus device path structure.

References CopyGuid(), CreateDeviceNode(), gEfiVT100PlusGuid, VENDOR_DEVICE_PATH::Guid, MESSAGING_DEVICE_PATH, and MSG_VENDOR_DP.

EFI_DEVICE_PATH_PROTOCOL* DevPathFromTextVirtualCd ( IN CHAR16 TextDeviceNode  ) 

Converts a text device path node to text virtual cd device path structure.

Parameters:
TextDeviceNode The input Text device path node.
Returns:
A pointer to the newly-created Text device path structure.

References CopyGuid(), CreateDeviceNode(), MEDIA_RAM_DISK_DEVICE_PATH::EndingAddr, gEfiVirtualCdGuid, GetNextParamStr(), MEDIA_RAM_DISK_DEVICE_PATH::Instance, MEDIA_DEVICE_PATH, MEDIA_RAM_DISK_DP, MEDIA_RAM_DISK_DEVICE_PATH::StartingAddr, Strtoi(), Strtoi64(), MEDIA_RAM_DISK_DEVICE_PATH::TypeGuid, and WriteUnaligned64().

EFI_DEVICE_PATH_PROTOCOL* DevPathFromTextVirtualDisk ( IN CHAR16 TextDeviceNode  ) 

Converts a text device path node to text virtual disk device path structure.

Parameters:
TextDeviceNode The input Text device path node.
Returns:
A pointer to the newly-created Text device path structure.

References CopyGuid(), CreateDeviceNode(), MEDIA_RAM_DISK_DEVICE_PATH::EndingAddr, gEfiVirtualDiskGuid, GetNextParamStr(), MEDIA_RAM_DISK_DEVICE_PATH::Instance, MEDIA_DEVICE_PATH, MEDIA_RAM_DISK_DP, MEDIA_RAM_DISK_DEVICE_PATH::StartingAddr, Strtoi(), Strtoi64(), MEDIA_RAM_DISK_DEVICE_PATH::TypeGuid, and WriteUnaligned64().

EFI_DEVICE_PATH_PROTOCOL* DevPathFromTextVlan ( IN CHAR16 TextDeviceNode  ) 

Converts a text device path node to VLAN device path structure.

Parameters:
TextDeviceNode The input Text device path node.
Returns:
A pointer to the newly-created VLAN device path structure.

References CreateDeviceNode(), GetNextParamStr(), MESSAGING_DEVICE_PATH, MSG_VLAN_DP, Strtoi(), and VLAN_DEVICE_PATH::VlanId.

EFI_DEVICE_PATH_PROTOCOL* DevPathFromTextWiFi ( IN CHAR16 TextDeviceNode  ) 

Converts a text device path node to Wi-Fi device path structure.

Parameters:
TextDeviceNode The input Text device path node.
Returns:
A pointer to the newly-created Wi-Fi device path structure.

References CopyMem(), CreateDeviceNode(), GetNextParamStr(), MESSAGING_DEVICE_PATH, MSG_WIFI_DP, NULL, WIFI_DEVICE_PATH::SSId, StrLen(), and UnicodeStrToAsciiStr().

UINT32 EisaIdFromText ( IN CHAR16 Text  ) 

Converts a string to EisaId.

Parameters:
Text The input string.
Returns:
UINT32 EISA ID.

References StrHexToUintn().

Referenced by DevPathFromTextAcpi(), DevPathFromTextAcpiEx(), and DevPathFromTextAcpiExp().

CHAR16* GetNextDeviceNodeStr ( IN OUT CHAR16 **  DevicePath,
OUT BOOLEAN IsInstanceEnd 
)

Get one device node from entire device path text.

Parameters:
DevicePath On input, the current Device Path node; on output, the next device path node
IsInstanceEnd This node is the end of a device path instance
Returns:
A device node text or NULL if no more device node available

References FALSE, IS_COMMA, IS_LEFT_PARENTH, IS_NULL, IS_RIGHT_PARENTH, IS_SLASH, NULL, and TRUE.

Referenced by UefiDevicePathLibConvertTextToDevicePath().

CHAR16* GetNextParamStr ( IN OUT CHAR16 **  List  ) 

Gets the next parameter string from the list.

Parameters:
List A string list separated by the specified separator
Returns:
A pointer to the current sub-string

References SplitStr().

Referenced by ConvertFromTextAcpi(), ConvertFromTextUsbClass(), ConvertFromTextVendor(), DevPathFromText1394(), DevPathFromTextAcpi(), DevPathFromTextAcpiAdr(), DevPathFromTextAcpiEx(), DevPathFromTextAcpiExp(), DevPathFromTextAta(), DevPathFromTextBBS(), DevPathFromTextBluetooth(), DevPathFromTextBmc(), DevPathFromTextCDROM(), DevPathFromTextCtrl(), DevPathFromTextFibre(), DevPathFromTextFibreEx(), DevPathFromTextFv(), DevPathFromTextFvFile(), DevPathFromTextGenericPath(), DevPathFromTextHD(), DevPathFromTextI2O(), DevPathFromTextInfiniband(), DevPathFromTextIPv4(), DevPathFromTextIPv6(), DevPathFromTextiSCSI(), DevPathFromTextMAC(), DevPathFromTextMedia(), DevPathFromTextMemoryMapped(), DevPathFromTextNVMe(), DevPathFromTextPath(), DevPathFromTextPcCard(), DevPathFromTextPci(), DevPathFromTextPersistentVirtualCd(), DevPathFromTextPersistentVirtualDisk(), DevPathFromTextRamDisk(), DevPathFromTextRelativeOffsetRange(), DevPathFromTextSAS(), DevPathFromTextSasEx(), DevPathFromTextSata(), DevPathFromTextScsi(), DevPathFromTextSd(), DevPathFromTextUart(), DevPathFromTextUartFlowCtrl(), DevPathFromTextUfs(), DevPathFromTextUnit(), DevPathFromTextUri(), DevPathFromTextUsb(), DevPathFromTextUsbWwid(), DevPathFromTextVirtualCd(), DevPathFromTextVirtualDisk(), DevPathFromTextVlan(), and DevPathFromTextWiFi().

CHAR16* GetParamByNodeName ( IN CHAR16 Str,
IN CHAR16 NodeName 
)

Get parameter in a pair of parentheses follow the given node name. For example, given the "Pci(0,1)" and NodeName "Pci", it returns "0,1".

Parameters:
Str Device Path Text.
NodeName Name of the node.
Returns:
Parameter text for the node.

References AllocateCopyPool(), IS_LEFT_PARENTH, IS_NULL, IS_RIGHT_PARENTH, NULL, StrLen(), and StrnCmp().

Referenced by UefiDevicePathLibConvertTextToDeviceNode().

BOOLEAN IsHexStr ( IN CHAR16 Str  ) 

Return whether the integer string is a hex string.

Parameters:
Str The integer string
Return values:
TRUE Hex string
FALSE Decimal string

Referenced by Strtoi(), and Strtoi64().

UINTN NetworkProtocolFromText ( IN CHAR16 Text  ) 

Converts a text format to the network protocol ID.

Parameters:
Text String of protocol field.
Returns:
Network protocol ID .

References RFC_1700_TCP_PROTOCOL, RFC_1700_UDP_PROTOCOL, StrCmp(), and Strtoi().

Referenced by DevPathFromTextIPv4(), and DevPathFromTextIPv6().

CHAR16* SplitStr ( IN OUT CHAR16 **  List,
IN CHAR16  Separator 
)

Gets current sub-string from a string list, before return the list header is moved to next sub-string. The sub-string is separated by the specified character. For example, the separator is ',', the string list is "2,0,3", it returns "2", the remain list move to "0,3"

Parameters:
List A string list separated by the specified separator
Separator The separator character
Returns:
A pointer to the current sub-string

References IS_NULL.

Referenced by DevPathFromTextNVMe(), GetNextParamStr(), StrToIPv4Addr(), and StrToIPv6Addr().

VOID StrToAscii ( IN CHAR16 Str,
IN OUT CHAR8 **  AsciiStr 
)

Converts a Unicode string to ASCII string.

Parameters:
Str The equivalent Unicode string
AsciiStr On input, it points to destination ASCII string buffer; on output, it points to the next ASCII string next to it

References IS_NULL.

Referenced by DevPathFromTextAcpiEx(), DevPathFromTextAcpiExp(), DevPathFromTextBBS(), and DevPathFromTextiSCSI().

EFI_STATUS StrToBuf ( OUT UINT8 Buf,
IN UINTN  BufferLength,
IN CHAR16 Str 
)

Converts a list of string to a specified buffer.

Parameters:
Buf The output buffer that contains the string.
BufferLength The length of the buffer
Str The input string that contains the hex number
Return values:
EFI_SUCCESS The string was successfully converted to the buffer.

References Byte, EFI_INVALID_PARAMETER, and EFI_SUCCESS.

Referenced by ConvertFromTextVendor(), DevPathFromTextGenericPath(), DevPathFromTextMAC(), and StrToGuid().

EFI_STATUS StrToGuid ( IN CHAR16 Str,
OUT EFI_GUID Guid 
)

Converts a string to GUID value. Guid Format is xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx

Parameters:
Str The registry format GUID string that contains the GUID value.
Guid A pointer to the converted GUID value.
Return values:
EFI_SUCCESS The GUID string was successfully converted to the GUID value.
EFI_UNSUPPORTED The input string is not in registry format.
Returns:
others Some error occurred when converting part of GUID value.

References EFI_SUCCESS, EFI_UNSUPPORTED, IS_HYPHEN, IS_NULL, StrHexToUint64(), and StrToBuf().

Referenced by ConvertFromTextVendor(), DevPathFromTextFv(), DevPathFromTextFvFile(), DevPathFromTextHD(), DevPathFromTextInfiniband(), DevPathFromTextMedia(), and DevPathFromTextRamDisk().

UINTN Strtoi ( IN CHAR16 Str  ) 

VOID Strtoi64 ( IN CHAR16 Str,
OUT UINT64 Data 
)

VOID StrToIPv4Addr ( IN OUT CHAR16 **  Str,
OUT EFI_IPv4_ADDRESS IPv4Addr 
)

Converts a string to IPv4 address

Parameters:
Str A string representation of IPv4 address.
IPv4Addr A pointer to the converted IPv4 address.

References SplitStr(), and Strtoi().

Referenced by DevPathFromTextIPv4().

VOID StrToIPv6Addr ( IN OUT CHAR16 **  Str,
OUT EFI_IPv6_ADDRESS IPv6Addr 
)

Converts a string to IPv4 address

Parameters:
Str A string representation of IPv6 address.
IPv6Addr A pointer to the converted IPv6 address.

References SplitStr(), and StrHexToUintn().

Referenced by DevPathFromTextIPv6().

EFI_DEVICE_PATH_PROTOCOL* EFIAPI UefiDevicePathLibConvertTextToDeviceNode ( IN CONST CHAR16 TextDeviceNode  ) 

Convert text to the binary representation of a device node.

Parameters:
TextDeviceNode TextDeviceNode points to the text representation of a device node. Conversion starts with the first character and continues until the first non-device node character.
Returns:
A pointer to the EFI device node or NULL if TextDeviceNode is NULL or there was insufficient memory or text unsupported.

References ASSERT, DevPathFromTextFilePath(), FreePool(), DEVICE_PATH_FROM_TEXT_TABLE::Function, GetParamByNodeName(), IS_NULL, mUefiDevicePathLibDevPathFromTextTable, NULL, and UefiDevicePathLibStrDuplicate().

Referenced by ConvertTextToDeviceNode(), and UefiDevicePathLibConvertTextToDevicePath().

EFI_DEVICE_PATH_PROTOCOL* EFIAPI UefiDevicePathLibConvertTextToDevicePath ( IN CONST CHAR16 TextDevicePath  ) 

Convert text to the binary representation of a device path.

Parameters:
TextDevicePath TextDevicePath points to the text representation of a device path. Conversion starts with the first character and continues until the first non-device node character.
Returns:
A pointer to the allocated device path or NULL if TextDeviceNode is NULL or there was insufficient memory.

References AllocatePool(), AppendDevicePathNode(), ASSERT, END_DEVICE_PATH_LENGTH, FreePool(), GetNextDeviceNodeStr(), IS_NULL, NULL, SetDevicePathEndNode(), UefiDevicePathLibConvertTextToDeviceNode(), and UefiDevicePathLibStrDuplicate().

Referenced by ConvertTextToDevicePath().

CHAR16* UefiDevicePathLibStrDuplicate ( IN CONST CHAR16 Src  ) 

Duplicates a string.

Parameters:
Src Source string.
Returns:
The duplicated string.

References AllocateCopyPool(), and StrSize().

Referenced by UefiDevicePathLibConvertTextToDeviceNode(), and UefiDevicePathLibConvertTextToDevicePath().


Variable Documentation


Generated on Thu Sep 24 23:14:24 2015 for MdePkg[ALL] by  doxygen 1.5.7.1