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.
EFI_DEVICE_PATH_PROTOCOL* ConvertFromTextAcpi | ( | IN CHAR16 * | TextDeviceNode, | |
IN UINT32 | PnPId | |||
) |
Converts a text device path node to ACPI HID device path structure.
TextDeviceNode | The input Text device path node. | |
PnPId | The input plug and play identification. |
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 | |||
) |
Converts a text device path node to USB class device path structure.
TextDeviceNode | The input Text device path node. | |
UsbClassText | A pointer to USB_CLASS_TEXT structure to be integrated to USB Class Text. |
References CreateDeviceNode(), USB_CLASS_DEVICE_PATH::DeviceClass, USB_CLASS_DEVICE_PATH::DeviceProtocol, USB_CLASS_DEVICE_PATH::DeviceSubClass, GetNextParamStr(), MESSAGING_DEVICE_PATH, MSG_USB_CLASS_DP, USB_CLASS_DEVICE_PATH::ProductId, Strtoi(), and USB_CLASS_DEVICE_PATH::VendorId.
Referenced by DevPathFromTextUsbAudio(), DevPathFromTextUsbCDCControl(), DevPathFromTextUsbCDCData(), DevPathFromTextUsbClass(), DevPathFromTextUsbDeviceFirmwareUpdate(), DevPathFromTextUsbDiagnostic(), DevPathFromTextUsbHID(), DevPathFromTextUsbHub(), DevPathFromTextUsbImage(), DevPathFromTextUsbIrdaBridge(), DevPathFromTextUsbMassStorage(), DevPathFromTextUsbPrinter(), DevPathFromTextUsbSmartCard(), DevPathFromTextUsbTestAndMeasurement(), DevPathFromTextUsbVideo(), and DevPathFromTextUsbWireless().
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.
TextDeviceNode | The input Text device path node. | |
Type | The type of device path node. | |
SubType | The subtype of device path node. |
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.
TextDeviceNode | The input Text device path node. |
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.
TextDeviceNode | The input Text device path node. |
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.
TextDeviceNode | The input Text device path node. |
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.
TextDeviceNode | The input Text device path node. |
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.
TextDeviceNode | The input Text device path node. |
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.
TextDeviceNode | The input Text device path node. |
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.
TextDeviceNode | The input Text device path node. |
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.
TextDeviceNode | The input Text device path node. |
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.
TextDeviceNode | The input Text device path node. |
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.
TextDeviceNode | The input Text device path node. |
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.
TextDeviceNode | The input Text device path node. |
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.
TextDeviceNode | The input Text device path node. |
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.
TextDeviceNode | The input Text device path node. |
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.
TextDeviceNode | The input Text device path node. |
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.
TextDeviceNode | The input Text device path node. |
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.
TextDeviceNode | The input Text device path node. |
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.
TextDeviceNode | The input Text device path node. |
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.
TextDeviceNode | The input Text device path node. |
References ConvertFromTextAcpi().
EFI_DEVICE_PATH_PROTOCOL* DevPathFromTextFv | ( | IN CHAR16 * | TextDeviceNode | ) |
Converts a text device path node to firmware volume device path structure.
TextDeviceNode | The input Text device path node. |
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.
TextDeviceNode | The input Text device path node. |
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.
Type | The type of the device path node. | |
TextDeviceNode | The input text device path node. |
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.
TextDeviceNode | The input Text device path node. |
References DevPathFromTextGenericPath(), and HARDWARE_DEVICE_PATH.
EFI_DEVICE_PATH_PROTOCOL* DevPathFromTextHD | ( | IN CHAR16 * | TextDeviceNode | ) |
Converts a text device path node to HD device path structure.
TextDeviceNode | The input Text device path node. |
References CopyMem(), CreateDeviceNode(), GetNextParamStr(), HARDDRIVE_DEVICE_PATH::MBRType, MEDIA_DEVICE_PATH, MEDIA_HARDDRIVE_DP, HARDDRIVE_DEVICE_PATH::PartitionNumber, HARDDRIVE_DEVICE_PATH::PartitionSize, HARDDRIVE_DEVICE_PATH::PartitionStart, HARDDRIVE_DEVICE_PATH::Signature, SIGNATURE_TYPE_GUID, SIGNATURE_TYPE_MBR, HARDDRIVE_DEVICE_PATH::SignatureType, StrCmp(), StrToGuid(), Strtoi(), Strtoi64(), and ZeroMem().
EFI_DEVICE_PATH_PROTOCOL* DevPathFromTextI2O | ( | IN CHAR16 * | TextDeviceNode | ) |
Converts a text device path node to I20 device path structure.
TextDeviceNode | The input Text device path node. |
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.
TextDeviceNode | The input Text device path node. |
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 | ) |
Converts a text device path node to IPV4 device path structure.
TextDeviceNode | The input Text device path node. |
References CreateDeviceNode(), FALSE, IPv4_DEVICE_PATH::GatewayIpAddress, GetNextParamStr(), IS_NULL, IPv4_DEVICE_PATH::LocalIpAddress, IPv4_DEVICE_PATH::LocalPort, MESSAGING_DEVICE_PATH, MSG_IPv4_DP, NetworkProtocolFromText(), IPv4_DEVICE_PATH::Protocol, IPv4_DEVICE_PATH::RemoteIpAddress, IPv4_DEVICE_PATH::RemotePort, IPv4_DEVICE_PATH::StaticIpAddress, StrCmp(), StrToIPv4Addr(), IPv4_DEVICE_PATH::SubnetMask, TRUE, and ZeroMem().
EFI_DEVICE_PATH_PROTOCOL* DevPathFromTextIPv6 | ( | IN CHAR16 * | TextDeviceNode | ) |
Converts a text device path node to IPV6 device path structure.
TextDeviceNode | The input Text device path node. |
References CreateDeviceNode(), IPv6_DEVICE_PATH::GatewayIpAddress, GetNextParamStr(), IPv6_DEVICE_PATH::IpAddressOrigin, IS_NULL, IPv6_DEVICE_PATH::LocalIpAddress, IPv6_DEVICE_PATH::LocalPort, MESSAGING_DEVICE_PATH, MSG_IPv6_DP, NetworkProtocolFromText(), IPv6_DEVICE_PATH::PrefixLength, IPv6_DEVICE_PATH::Protocol, IPv6_DEVICE_PATH::RemoteIpAddress, IPv6_DEVICE_PATH::RemotePort, StrCmp(), Strtoi(), StrToIPv6Addr(), and ZeroMem().
EFI_DEVICE_PATH_PROTOCOL* DevPathFromTextiSCSI | ( | IN CHAR16 * | TextDeviceNode | ) |
Converts a text device path node to iSCSI device path structure.
TextDeviceNode | The input Text device path node. |
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.
TextDeviceNode | The input Text device path node. |
References ConvertFromTextAcpi().
EFI_DEVICE_PATH_PROTOCOL* DevPathFromTextMAC | ( | IN CHAR16 * | TextDeviceNode | ) |
Converts a text device path node to MAC device path structure.
TextDeviceNode | The input Text device path node. |
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.
TextDeviceNode | The input Text device path node. |
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.
TextDeviceNode | The input Text device path node. |
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.
TextDeviceNode | The input Text device path node. |
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.
TextDeviceNode | The input Text device path node. |
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.
TextDeviceNode | The input Text device path node. |
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.
TextDeviceNode | The input Text device path node. |
References ConvertFromTextAcpi().
EFI_DEVICE_PATH_PROTOCOL* DevPathFromTextPath | ( | IN CHAR16 * | TextDeviceNode | ) |
Converts a generic text device path node to device path structure.
TextDeviceNode | The input Text device path node. |
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.
TextDeviceNode | The input Text device path node. |
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.
TextDeviceNode | The input Text device path node. |
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.
TextDeviceNode | The input Text device path node. |
References ConvertFromTextAcpi().
EFI_DEVICE_PATH_PROTOCOL* DevPathFromTextPciRoot | ( | IN CHAR16 * | TextDeviceNode | ) |
Converts a text device path node to PCI root device path structure.
TextDeviceNode | The input Text device path node. |
References ConvertFromTextAcpi().
EFI_DEVICE_PATH_PROTOCOL* DevPathFromTextPersistentVirtualCd | ( | IN CHAR16 * | TextDeviceNode | ) |
Converts a text device path node to text persistent virtual cd device path structure.
TextDeviceNode | The input Text device path node. |
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.
TextDeviceNode | The input Text device path node. |
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.
TextDeviceNode | The input Text device path node. |
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.
TextDeviceNode | The input Text device path node. |
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.
TextDeviceNode | The input Text device path node. |
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.
TextDeviceNode | The input Text device path node. |
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.
TextDeviceNode | The input Text device path node. |
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.
TextDeviceNode | The input Text device path node. |
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.
TextDeviceNode | The input Text device path node. |
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.
TextDeviceNode | The input Text device path node. |
References ConvertFromTextAcpi().
EFI_DEVICE_PATH_PROTOCOL* DevPathFromTextUart | ( | IN CHAR16 * | TextDeviceNode | ) |
Converts a text device path node to UART device path structure.
TextDeviceNode | The input Text device path node. |
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.
TextDeviceNode | The input Text device path node. |
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.
TextDeviceNode | The input Text device path node. |
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.
TextDeviceNode | The input Text device path node. |
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.
TextDeviceNode | The input Text device path node. |
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.
TextDeviceNode | The input Text device path node. |
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.
TextDeviceNode | The input Text device path node. |
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.
TextDeviceNode | The input Text device path node. |
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.
TextDeviceNode | The input Text device path node. |
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.
TextDeviceNode | The input Text device path node. |
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.
TextDeviceNode | The input Text device path node. |
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.
TextDeviceNode | The input Text device path node. |
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.
TextDeviceNode | The input Text device path node. |
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.
TextDeviceNode | The input Text device path node. |
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.
TextDeviceNode | The input Text device path node. |
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.
TextDeviceNode | The input Text device path node. |
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.
TextDeviceNode | The input Text device path node. |
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.
TextDeviceNode | The input Text device path node. |
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.
TextDeviceNode | The input Text device path node. |
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.
TextDeviceNode | The input Text device path node. |
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.
TextDeviceNode | The input Text device path node. |
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.
TextDeviceNode | The input Text device path node. |
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.
TextDeviceNode | The input Text device path node. |
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.
TextDeviceNode | The input Text device path node. |
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.
TextDeviceNode | The input Text device path node. |
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.
TextDeviceNode | The input Text device path node. |
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.
TextDeviceNode | The input Text device path node. |
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.
TextDeviceNode | The input Text device path node. |
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.
TextDeviceNode | The input Text device path node. |
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.
TextDeviceNode | The input Text device path node. |
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.
TextDeviceNode | The input Text device path node. |
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.
TextDeviceNode | The input Text device path node. |
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.
TextDeviceNode | The input Text device path node. |
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.
TextDeviceNode | The input Text device path node. |
References CopyMem(), CreateDeviceNode(), GetNextParamStr(), MESSAGING_DEVICE_PATH, MSG_WIFI_DP, NULL, WIFI_DEVICE_PATH::SSId, StrLen(), and UnicodeStrToAsciiStr().
Converts a string to EisaId.
Text | The input string. |
References StrHexToUintn().
Referenced by DevPathFromTextAcpi(), DevPathFromTextAcpiEx(), and DevPathFromTextAcpiExp().
Get one device node from entire device path text.
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 |
References FALSE, IS_COMMA, IS_LEFT_PARENTH, IS_NULL, IS_RIGHT_PARENTH, IS_SLASH, NULL, and TRUE.
Referenced by UefiDevicePathLibConvertTextToDevicePath().
Gets the next parameter string from the list.
List | A string list separated by the specified separator |
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().
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".
Str | Device Path Text. | |
NodeName | Name of the node. |
References AllocateCopyPool(), IS_LEFT_PARENTH, IS_NULL, IS_RIGHT_PARENTH, NULL, StrLen(), and StrnCmp().
Referenced by UefiDevicePathLibConvertTextToDeviceNode().
Return whether the integer string is a hex string.
Str | The integer string |
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.
Text | String of protocol field. |
References RFC_1700_TCP_PROTOCOL, RFC_1700_UDP_PROTOCOL, StrCmp(), and Strtoi().
Referenced by DevPathFromTextIPv4(), and DevPathFromTextIPv6().
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"
List | A string list separated by the specified separator | |
Separator | The separator character |
References IS_NULL.
Referenced by DevPathFromTextNVMe(), GetNextParamStr(), StrToIPv4Addr(), and StrToIPv6Addr().
Converts a Unicode string to ASCII string.
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().
Converts a list of string to a specified buffer.
Buf | The output buffer that contains the string. | |
BufferLength | The length of the buffer | |
Str | The input string that contains the hex number |
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().
Converts a string to GUID value. Guid Format is xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
Str | The registry format GUID string that contains the GUID value. | |
Guid | A pointer to the converted GUID value. |
EFI_SUCCESS | The GUID string was successfully converted to the GUID value. | |
EFI_UNSUPPORTED | The input string is not in registry format. |
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 | ) |
Convert integer string to uint.
Str | The integer string. If leading with "0x" or "0X", it's hexadecimal. |
References IsHexStr(), StrDecimalToUintn(), and StrHexToUintn().
Referenced by ConvertFromTextAcpi(), ConvertFromTextUsbClass(), DevPathFromTextAcpi(), DevPathFromTextAcpiAdr(), DevPathFromTextAcpiEx(), DevPathFromTextAta(), DevPathFromTextBBS(), DevPathFromTextBluetooth(), DevPathFromTextBmc(), DevPathFromTextCDROM(), DevPathFromTextCtrl(), DevPathFromTextGenericPath(), DevPathFromTextHD(), DevPathFromTextI2O(), DevPathFromTextInfiniband(), DevPathFromTextIPv6(), DevPathFromTextiSCSI(), DevPathFromTextMAC(), DevPathFromTextMemoryMapped(), DevPathFromTextNVMe(), DevPathFromTextPath(), DevPathFromTextPcCard(), DevPathFromTextPci(), DevPathFromTextPersistentVirtualCd(), DevPathFromTextPersistentVirtualDisk(), DevPathFromTextRamDisk(), DevPathFromTextSAS(), DevPathFromTextSasEx(), DevPathFromTextSata(), DevPathFromTextScsi(), DevPathFromTextSd(), DevPathFromTextUart(), DevPathFromTextUfs(), DevPathFromTextUnit(), DevPathFromTextUsb(), DevPathFromTextUsbWwid(), DevPathFromTextVirtualCd(), DevPathFromTextVirtualDisk(), DevPathFromTextVlan(), NetworkProtocolFromText(), and StrToIPv4Addr().
Convert integer string to 64 bit data.
Str | The integer string. If leading with "0x" or "0X", it's hexadecimal. | |
Data | A pointer to the UINT64 value represented by Str |
References IsHexStr(), StrDecimalToUint64(), and StrHexToUint64().
Referenced by DevPathFromTextCDROM(), DevPathFromTextFibre(), DevPathFromTextFibreEx(), DevPathFromTextHD(), DevPathFromTextInfiniband(), DevPathFromTextiSCSI(), DevPathFromTextMemoryMapped(), DevPathFromTextPersistentVirtualCd(), DevPathFromTextPersistentVirtualDisk(), DevPathFromTextRamDisk(), DevPathFromTextRelativeOffsetRange(), DevPathFromTextSAS(), DevPathFromTextSasEx(), DevPathFromTextUart(), DevPathFromTextVirtualCd(), and DevPathFromTextVirtualDisk().
VOID StrToIPv4Addr | ( | IN OUT CHAR16 ** | Str, | |
OUT EFI_IPv4_ADDRESS * | IPv4Addr | |||
) |
Converts a string to IPv4 address
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
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.
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. |
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.
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. |
References AllocatePool(), AppendDevicePathNode(), ASSERT, END_DEVICE_PATH_LENGTH, FreePool(), GetNextDeviceNodeStr(), IS_NULL, NULL, SetDevicePathEndNode(), UefiDevicePathLibConvertTextToDeviceNode(), and UefiDevicePathLibStrDuplicate().
Referenced by ConvertTextToDevicePath().
Duplicates a string.
Src | Source string. |
References AllocateCopyPool(), and StrSize().
Referenced by UefiDevicePathLibConvertTextToDeviceNode(), and UefiDevicePathLibConvertTextToDevicePath().
GLOBAL_REMOVE_IF_UNREFERENCED DEVICE_PATH_FROM_TEXT_TABLE mUefiDevicePathLibDevPathFromTextTable[] |
Referenced by UefiDevicePathLibConvertTextToDeviceNode().