Lines Matching +full:a +full:- +full:display
1 /*-
15 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
38 #include "efi-osdep.h"
39 #include "efivar-dp.h"
41 #include "uefi-dplib.h"
44 * This is a lie, but since we have converted everything
55 * %s -> %S in spots (where it is still UCS-2)
56 * %a (ascii) -> %s
57 * %g -> %36s hack to print guid (see above for caveat)
65 (C) Copyright 2015 Hewlett-Packard Development Company, L.P.<BR>
66 Copyright (c) 2013 - 2018, Intel Corporation. All rights reserved.<BR>
67 SPDX-License-Identifier: BSD-2-Clause-Patent
74 Concatenates a formatted unicode string to allocated pool. The caller must
102 if ((Str->Count + (Count + 1)) > Str->Capacity) {
103 Str->Capacity = (Str->Count + (Count + 1) * 2);
104 Str->Str = reallocf (
105 Str->Str,
106 Str->Capacity
108 ASSERT (Str->Str != NULL);
112 vsnprintf (Str->Str + Str->Count, Str->Capacity - Str->Count, Fmt, Args);
113 Str->Count += Count;
116 return Str->Str;
120 Converts a PCI device path structure to its string representative.
125 of the display node is used, where applicable. If DisplayOnly
126 is FALSE, then the longer text representation of the display node
129 representation for a device node can be used, where applicable.
143 UefiDevicePathLibCatPrint (Str, "Pci(0x%x,0x%x)", Pci->Device, Pci->Function);
147 Converts a PC Card device path structure to its string representative.
152 of the display node is used, where applicable. If DisplayOnly
153 is FALSE, then the longer text representation of the display node
156 representation for a device node can be used, where applicable.
170 UefiDevicePathLibCatPrint (Str, "PcCard(0x%x)", Pccard->FunctionNumber);
174 Converts a Memory Map device path structure to its string representative.
179 of the display node is used, where applicable. If DisplayOnly
180 is FALSE, then the longer text representation of the display node
183 representation for a device node can be used, where applicable.
200 MemMap->MemoryType,
201 MemMap->StartingAddress,
202 MemMap->EndingAddress
207 Converts a Vendor device path structure to its string representative.
212 of the display node is used, where applicable. If DisplayOnly
213 is FALSE, then the longer text representation of the display node
216 representation for a device node can be used, where applicable.
235 switch (DevicePathType (&Vendor->Header)) {
243 if (CompareGuid (&Vendor->Guid, &gEfiPcAnsiGuid)) {
246 } else if (CompareGuid (&Vendor->Guid, &gEfiVT100Guid)) {
249 } else if (CompareGuid (&Vendor->Guid, &gEfiVT100PlusGuid)) {
252 } else if (CompareGuid (&Vendor->Guid, &gEfiVTUTF8Guid)) {
255 } else if (CompareGuid (&Vendor->Guid, &gEfiUartDevicePathGuid)) {
256 FlowControlMap = (((UART_FLOW_CONTROL_DEVICE_PATH *)Vendor)->FlowControlMap);
275 } else if (CompareGuid (&Vendor->Guid, &gEfiSasDevicePathGuid)) {
279 ((SAS_DEVICE_PATH *)Vendor)->SasAddress,
280 ((SAS_DEVICE_PATH *)Vendor)->Lun,
281 ((SAS_DEVICE_PATH *)Vendor)->RelativeTargetPort
283 Info = (((SAS_DEVICE_PATH *)Vendor)->DeviceTopology);
298 // Value 0x0 thru 0xFF -> Drive 1 thru Drive 256
306 UefiDevicePathLibCatPrint (Str, "0x%x)", ((SAS_DEVICE_PATH *)Vendor)->Reserved);
308 } else if (CompareGuid (&Vendor->Guid, &gEfiDebugPortProtocolGuid)) {
325 DataLength = DevicePathNodeLength (&Vendor->Header) - sizeof (VENDOR_DEVICE_PATH);
326 UefiDevicePathLibCatPrint (Str, "Ven%s(%36s", Type, G(&Vendor->Guid));
330 UefiDevicePathLibCatPrint (Str, "%02x", ((VENDOR_DEVICE_PATH_WITH_DATA *)Vendor)->VendorDefinedData[Index]);
338 Converts a Controller device path structure to its string representative.
343 of the display node is used, where applicable. If DisplayOnly
344 is FALSE, then the longer text representation of the display node
347 representation for a device node can be used, where applicable.
364 Controller->ControllerNumber
369 Converts a BMC device path structure to its string representative.
374 of the display node is used, where applicable. If DisplayOnly
375 is FALSE, then the longer text representation of the display node
378 representation for a device node can be used, where applicable.
395 Bmc->InterfaceType,
396 ReadUnaligned64 ((&Bmc->BaseAddress))
401 Converts a ACPI device path structure to its string representative.
406 of the display node is used, where applicable. If DisplayOnly
407 is FALSE, then the longer text representation of the display node
410 representation for a device node can be used, where applicable.
424 if ((Acpi->HID & PNP_EISA_ID_MASK) == PNP_EISA_ID_CONST) {
425 switch (EISA_ID_TO_NUM (Acpi->HID)) {
427 UefiDevicePathLibCatPrint (Str, "PciRoot(0x%x)", Acpi->UID);
431 UefiDevicePathLibCatPrint (Str, "PcieRoot(0x%x)", Acpi->UID);
435 UefiDevicePathLibCatPrint (Str, "Floppy(0x%x)", Acpi->UID);
439 UefiDevicePathLibCatPrint (Str, "Keyboard(0x%x)", Acpi->UID);
443 UefiDevicePathLibCatPrint (Str, "Serial(0x%x)", Acpi->UID);
447 UefiDevicePathLibCatPrint (Str, "ParallelPort(0x%x)", Acpi->UID);
451 UefiDevicePathLibCatPrint (Str, "Acpi(PNP%04x,0x%x)", EISA_ID_TO_NUM (Acpi->HID), Acpi->UID);
455 UefiDevicePathLibCatPrint (Str, "Acpi(0x%08x,0x%x)", Acpi->HID, Acpi->UID);
460 Converts a ACPI extended HID device path structure to its string representative.
465 of the display node is used, where applicable. If DisplayOnly
466 is FALSE, then the longer text representation of the display node
469 representation for a device node can be used, where applicable.
502 while (CurrentLength < AcpiEx->Header.Length[0] && StrIndex < ARRAY_SIZE (Strings)) {
511 if ((EISA_ID_TO_NUM (AcpiEx->HID) == 0x0A03) ||
512 ((EISA_ID_TO_NUM (AcpiEx->CID) == 0x0A03) && (EISA_ID_TO_NUM (AcpiEx->HID) != 0x0A08)))
517 UefiDevicePathLibCatPrint (Str, "PciRoot(0x%x)", AcpiEx->UID);
523 if ((EISA_ID_TO_NUM (AcpiEx->HID) == 0x0A08) || (EISA_ID_TO_NUM (AcpiEx->CID) == 0x0A08)) {
527 UefiDevicePathLibCatPrint (Str, "PcieRoot(0x%x)", AcpiEx->UID);
541 ((AcpiEx->HID >> 10) & 0x1f) + 'A' - 1,
542 ((AcpiEx->HID >> 5) & 0x1f) + 'A' - 1,
543 ((AcpiEx->HID >> 0) & 0x1f) + 'A' - 1,
544 (AcpiEx->HID >> 16) & 0xFFFF
550 ((AcpiEx->CID >> 10) & 0x1f) + 'A' - 1,
551 ((AcpiEx->CID >> 5) & 0x1f) + 'A' - 1,
552 ((AcpiEx->CID >> 0) & 0x1f) + 'A' - 1,
553 (AcpiEx->CID >> 16) & 0xFFFF
563 if (AcpiEx->CID == 0) {
596 UefiDevicePathLibCatPrint (Str, "0x%x)", AcpiEx->UID);
604 AcpiEx->UID,
614 Converts a ACPI address device path structure to its string representative.
619 of the display node is used, where applicable. If DisplayOnly
620 is FALSE, then the longer text representation of the display node
623 representation for a device node can be used, where applicable.
642 AdditionalAdrCount = (UINT16)((Length - 8) / 4);
644 UefiDevicePathLibCatPrint (Str, "AcpiAdr(0x%x", AcpiAdr->ADR);
645 Addr = &AcpiAdr->ADR + 1;
654 Converts a ATAPI device path structure to its string representative.
659 of the display node is used, where applicable. If DisplayOnly
660 is FALSE, then the longer text representation of the display node
663 representation for a device node can be used, where applicable.
679 UefiDevicePathLibCatPrint (Str, "Ata(0x%x)", Atapi->Lun);
684 (Atapi->PrimarySecondary == 1) ? "Secondary" : "Primary",
685 (Atapi->SlaveMaster == 1) ? "Slave" : "Master",
686 Atapi->Lun
692 Converts a SCSI device path structure to its string representative.
697 of the display node is used, where applicable. If DisplayOnly
698 is FALSE, then the longer text representation of the display node
701 representation for a device node can be used, where applicable.
715 UefiDevicePathLibCatPrint (Str, "Scsi(0x%x,0x%x)", Scsi->Pun, Scsi->Lun);
719 Converts a Fibre device path structure to its string representative.
724 of the display node is used, where applicable. If DisplayOnly
725 is FALSE, then the longer text representation of the display node
728 representation for a device node can be used, where applicable.
742 UefiDevicePathLibCatPrint (Str, "Fibre(0x%lx,0x%lx)", Fibre->WWN, Fibre->Lun);
746 Converts a FibreEx device path structure to its string representative.
751 of the display node is used, where applicable. If DisplayOnly
752 is FALSE, then the longer text representation of the display node
755 representation for a device node can be used, where applicable.
771 for (Index = 0; Index < sizeof (FibreEx->WWN) / sizeof (FibreEx->WWN[0]); Index++) {
772 UefiDevicePathLibCatPrint (Str, "%02x", FibreEx->WWN[Index]);
776 for (Index = 0; Index < sizeof (FibreEx->Lun) / sizeof (FibreEx->Lun[0]); Index++) {
777 UefiDevicePathLibCatPrint (Str, "%02x", FibreEx->Lun[Index]);
784 Converts a Sas Ex device path structure to its string representative.
789 of the display node is used, where applicable. If DisplayOnly
790 is FALSE, then the longer text representation of the display node
793 representation for a device node can be used, where applicable.
810 for (Index = 0; Index < sizeof (SasEx->SasAddress) / sizeof (SasEx->SasAddress[0]); Index++) {
811 UefiDevicePathLibCatPrint (Str, "%02x", SasEx->SasAddress[Index]);
815 for (Index = 0; Index < sizeof (SasEx->Lun) / sizeof (SasEx->Lun[0]); Index++) {
816 UefiDevicePathLibCatPrint (Str, "%02x", SasEx->Lun[Index]);
819 UefiDevicePathLibCatPrint (Str, ",0x%x,", SasEx->RelativeTargetPort);
821 if (((SasEx->DeviceTopology & 0x0f) == 0) && ((SasEx->DeviceTopology & BIT7) == 0)) {
823 } else if (((SasEx->DeviceTopology & 0x0f) <= 2) && ((SasEx->DeviceTopology & BIT7) == 0)) {
827 ((SasEx->DeviceTopology & BIT4) != 0) ? "SATA" : "SAS",
828 ((SasEx->DeviceTopology & BIT5) != 0) ? "External" : "Internal",
829 ((SasEx->DeviceTopology & BIT6) != 0) ? "Expanded" : "Direct"
831 if ((SasEx->DeviceTopology & 0x0f) == 1) {
835 // Value 0x0 thru 0xFF -> Drive 1 thru Drive 256
837 UefiDevicePathLibCatPrint (Str, "0x%x", ((SasEx->DeviceTopology >> 8) & 0xff) + 1);
840 UefiDevicePathLibCatPrint (Str, "0x%x,0,0,0", SasEx->DeviceTopology);
848 Converts a NVM Express Namespace device path structure to its string representative.
853 of the display node is used, where applicable. If DisplayOnly
854 is FALSE, then the longer text representation of the display node
857 representation for a device node can be used, where applicable.
872 Uuid = (UINT8 *)&Nvme->NamespaceUuid;
875 "NVMe(0x%x,%02x-%02x-%02x-%02x-%02x-%02x-%02x-%02x)",
876 Nvme->NamespaceId,
889 Converts a UFS device path structure to its string representative.
894 of the display node is used, where applicable. If DisplayOnly
895 is FALSE, then the longer text representation of the display node
898 representation for a device node can be used, where applicable.
912 UefiDevicePathLibCatPrint (Str, "UFS(0x%x,0x%x)", Ufs->Pun, Ufs->Lun);
916 Converts a SD (Secure Digital) device path structure to its string representative.
921 of the display node is used, where applicable. If DisplayOnly
922 is FALSE, then the longer text representation of the display node
925 representation for a device node can be used, where applicable.
942 Sd->SlotNumber
947 Converts a EMMC (Embedded MMC) device path structure to its string representative.
952 of the display node is used, where applicable. If DisplayOnly
953 is FALSE, then the longer text representation of the display node
956 representation for a device node can be used, where applicable.
973 Emmc->SlotNumber
978 Converts a 1394 device path structure to its string representative.
983 of the display node is used, where applicable. If DisplayOnly
984 is FALSE, then the longer text representation of the display node
987 representation for a device node can be used, where applicable.
1002 // Guid has format of IEEE-EUI64
1004 UefiDevicePathLibCatPrint (Str, "I1394(%016lx)", F1394DevPath->Guid);
1008 Converts a USB device path structure to its string representative.
1013 of the display node is used, where applicable. If DisplayOnly
1014 is FALSE, then the longer text representation of the display node
1017 representation for a device node can be used, where applicable.
1031 UefiDevicePathLibCatPrint (Str, "USB(0x%x,0x%x)", Usb->ParentPortNumber, Usb->InterfaceNumber);
1035 Converts a USB WWID device path structure to its string representative.
1040 of the display node is used, where applicable. If DisplayOnly
1041 is FALSE, then the longer text representation of the display node
1044 representation for a device node can be used, where applicable.
1063 Length = (UINT16)((DevicePathNodeLength ((EFI_DEVICE_PATH_PROTOCOL *)UsbWWId) - sizeof (USB_WWID_DEVICE_PATH)) / sizeof (CHAR16));
1064 if ((Length >= 1) && (SerialNumberStr[Length - 1] != 0)) {
1066 // In case no NULL terminator in SerialNumber, create a new one with NULL terminator
1078 UsbWWId->VendorId,
1079 UsbWWId->ProductId,
1080 UsbWWId->InterfaceNumber,
1086 Converts a Logic Unit device path structure to its string representative.
1091 of the display node is used, where applicable. If DisplayOnly
1092 is FALSE, then the longer text representation of the display node
1095 representation for a device node can be used, where applicable.
1109 UefiDevicePathLibCatPrint (Str, "Unit(0x%x)", LogicalUnit->Lun);
1113 Converts a USB class device path structure to its string representative.
1118 of the display node is used, where applicable. If DisplayOnly
1119 is FALSE, then the longer text representation of the display node
1122 representation for a device node can be used, where applicable.
1139 switch (UsbClass->DeviceClass) {
1197 UsbClass->VendorId,
1198 UsbClass->ProductId,
1199 UsbClass->DeviceSubClass,
1200 UsbClass->DeviceProtocol
1205 if (UsbClass->DeviceClass == USB_CLASS_RESERVE) {
1206 if (UsbClass->DeviceSubClass == USB_SUBCLASS_FW_UPDATE) {
1210 UsbClass->VendorId,
1211 UsbClass->ProductId,
1212 UsbClass->DeviceProtocol
1215 } else if (UsbClass->DeviceSubClass == USB_SUBCLASS_IRDA_BRIDGE) {
1219 UsbClass->VendorId,
1220 UsbClass->ProductId,
1221 UsbClass->DeviceProtocol
1224 } else if (UsbClass->DeviceSubClass == USB_SUBCLASS_TEST) {
1228 UsbClass->VendorId,
1229 UsbClass->ProductId,
1230 UsbClass->DeviceProtocol
1239 UsbClass->VendorId,
1240 UsbClass->ProductId,
1241 UsbClass->DeviceClass,
1242 UsbClass->DeviceSubClass,
1243 UsbClass->DeviceProtocol
1248 Converts a SATA device path structure to its string representative.
1253 of the display node is used, where applicable. If DisplayOnly
1254 is FALSE, then the longer text representation of the display node
1257 representation for a device node can be used, where applicable.
1274 Sata->HBAPortNumber,
1275 Sata->PortMultiplierPortNumber,
1276 Sata->Lun
1281 Converts a I20 device path structure to its string representative.
1286 of the display node is used, where applicable. If DisplayOnly
1287 is FALSE, then the longer text representation of the display node
1290 representation for a device node can be used, where applicable.
1304 UefiDevicePathLibCatPrint (Str, "I2O(0x%x)", I2ODevPath->Tid);
1308 Converts a MAC address device path structure to its string representative.
1313 of the display node is used, where applicable. If DisplayOnly
1314 is FALSE, then the longer text representation of the display node
1317 representation for a device node can be used, where applicable.
1335 if ((MacDevPath->IfType == 0x01) || (MacDevPath->IfType == 0x00)) {
1342 UefiDevicePathLibCatPrint (Str, "%02x", MacDevPath->MacAddress.Addr[Index]);
1345 UefiDevicePathLibCatPrint (Str, ",0x%x)", MacDevPath->IfType);
1382 UefiDevicePathLibCatPrint (Str, "%d.%d.%d.%d", Address->Addr[0], Address->Addr[1], Address->Addr[2], Address->Addr[3]);
1400 Address->Addr[0],
1401 Address->Addr[1],
1402 Address->Addr[2],
1403 Address->Addr[3],
1404 Address->Addr[4],
1405 Address->Addr[5],
1406 Address->Addr[6],
1407 Address->Addr[7],
1408 Address->Addr[8],
1409 Address->Addr[9],
1410 Address->Addr[10],
1411 Address->Addr[11],
1412 Address->Addr[12],
1413 Address->Addr[13],
1414 Address->Addr[14],
1415 Address->Addr[15]
1420 Converts a IPv4 device path structure to its string representative.
1425 of the display node is used, where applicable. If DisplayOnly
1426 is FALSE, then the longer text representation of the display node
1429 representation for a device node can be used, where applicable.
1444 CatIPv4Address (Str, &IPDevPath->RemoteIpAddress);
1452 CatNetworkProtocol (Str, IPDevPath->Protocol);
1454 UefiDevicePathLibCatPrint (Str, ",%s,", IPDevPath->StaticIpAddress ? "Static" : "DHCP");
1455 CatIPv4Address (Str, &IPDevPath->LocalIpAddress);
1458 CatIPv4Address (Str, &IPDevPath->GatewayIpAddress);
1460 CatIPv4Address (Str, &IPDevPath->SubnetMask);
1467 Converts a IPv6 device path structure to its string representative.
1472 of the display node is used, where applicable. If DisplayOnly
1473 is FALSE, then the longer text representation of the display node
1476 representation for a device node can be used, where applicable.
1491 CatIPv6Address (Str, &IPDevPath->RemoteIpAddress);
1498 CatNetworkProtocol (Str, IPDevPath->Protocol);
1500 switch (IPDevPath->IpAddressOrigin) {
1512 CatIPv6Address (Str, &IPDevPath->LocalIpAddress);
1515 UefiDevicePathLibCatPrint (Str, ",0x%x,", IPDevPath->PrefixLength);
1516 CatIPv6Address (Str, &IPDevPath->GatewayIpAddress);
1528 of the display node is used, where applicable. If DisplayOnly
1529 is FALSE, then the longer text representation of the display node
1532 representation for a device node can be used, where applicable.
1549 InfiniBand->ResourceFlags,
1550 G(InfiniBand->PortGid),
1551 InfiniBand->ServiceId,
1552 InfiniBand->TargetPortId,
1553 InfiniBand->DeviceId
1558 Converts a UART device path structure to its string representative.
1563 of the display node is used, where applicable. If DisplayOnly
1564 is FALSE, then the longer text representation of the display node
1567 representation for a device node can be used, where applicable.
1582 switch (Uart->Parity) {
1612 if (Uart->BaudRate == 0) {
1615 UefiDevicePathLibCatPrint (Str, "Uart(%ld,", Uart->BaudRate);
1618 if (Uart->DataBits == 0) {
1621 UefiDevicePathLibCatPrint (Str, "%d,", Uart->DataBits);
1626 switch (Uart->StopBits) {
1655 of the display node is used, where applicable. If DisplayOnly
1656 is FALSE, then the longer text representation of the display node
1659 representation for a device node can be used, where applicable.
1678 ISCSIDevPath->TargetName,
1679 ISCSIDevPath->TargetPortalGroupTag
1681 for (Index = 0; Index < sizeof (ISCSIDevPath->Lun) / sizeof (UINT8); Index++) {
1682 UefiDevicePathLibCatPrint (Str, "%02x", ((UINT8 *)&ISCSIDevPath->Lun)[Index]);
1685 Options = ISCSIDevPath->LoginOption;
1696 UefiDevicePathLibCatPrint (Str, "%s)", (ISCSIDevPath->NetworkProtocol == 0) ? "TCP" : "reserved");
1700 Converts a VLAN device path structure to its string representative.
1705 of the display node is used, where applicable. If DisplayOnly
1706 is FALSE, then the longer text representation of the display node
1709 representation for a device node can be used, where applicable.
1723 UefiDevicePathLibCatPrint (Str, "Vlan(%d)", Vlan->VlanId);
1727 Converts a Bluetooth device path structure to its string representative.
1732 of the display node is used, where applicable. If DisplayOnly
1733 is FALSE, then the longer text representation of the display node
1736 representation for a device node can be used, where applicable.
1753 Bluetooth->BD_ADDR.Address[0],
1754 Bluetooth->BD_ADDR.Address[1],
1755 Bluetooth->BD_ADDR.Address[2],
1756 Bluetooth->BD_ADDR.Address[3],
1757 Bluetooth->BD_ADDR.Address[4],
1758 Bluetooth->BD_ADDR.Address[5]
1763 Converts a Wi-Fi device path structure to its string representative.
1768 of the display node is used, where applicable. If DisplayOnly
1769 is FALSE, then the longer text representation of the display node
1772 representation for a device node can be used, where applicable.
1789 CopyMem (SSId, WiFi->SSId, 32);
1791 UefiDevicePathLibCatPrint (Str, "Wi-Fi(%s)", SSId);
1795 Converts a Bluetooth device path structure to its string representative.
1800 of the display node is used, where applicable. If DisplayOnly
1801 is FALSE, then the longer text representation of the display node
1804 representation for a device node can be used, where applicable.
1821 BluetoothLE->Address.Address[0],
1822 BluetoothLE->Address.Address[1],
1823 BluetoothLE->Address.Address[2],
1824 BluetoothLE->Address.Address[3],
1825 BluetoothLE->Address.Address[4],
1826 BluetoothLE->Address.Address[5],
1827 BluetoothLE->Address.Type
1832 Converts a DNS device path structure to its string representative.
1837 of the display node is used, where applicable. If DisplayOnly
1838 is FALSE, then the longer text representation of the display node
1841 representation for a device node can be used, where applicable.
1857 DnsServerIpCount = (UINT32)(DevicePathNodeLength (DnsDevPath) - sizeof (EFI_DEVICE_PATH_PROTOCOL) - sizeof (DnsDevPath->IsIPv6)) / sizeof (EFI_IP_ADDRESS);
1862 if (DnsDevPath->IsIPv6 == 0x00) {
1863 CatIPv4Address (Str, &(DnsDevPath->DnsServerIp[DnsServerIpIndex].v4));
1865 CatIPv6Address (Str, &(DnsDevPath->DnsServerIp[DnsServerIpIndex].v6));
1868 if (DnsServerIpIndex < DnsServerIpCount - 1) {
1877 Converts a URI device path structure to its string representative.
1882 of the display node is used, where applicable. If DisplayOnly
1883 is FALSE, then the longer text representation of the display node
1886 representation for a device node can be used, where applicable.
1905 UriLength = DevicePathNodeLength (Uri) - sizeof (URI_DEVICE_PATH);
1909 CopyMem (UriStr, Uri->Uri, UriLength);
1916 Converts a Hard drive device path structure to its string representative.
1921 of the display node is used, where applicable. If DisplayOnly
1922 is FALSE, then the longer text representation of the display node
1925 representation for a device node can be used, where applicable.
1939 switch (Hd->SignatureType) {
1944 Hd->PartitionNumber,
1946 // *((UINT32 *)(&(Hd->Signature[0])))
1947 le32dec(&(Hd->Signature[0]))
1955 Hd->PartitionNumber,
1957 G(&(Hd->Signature[0]))
1965 Hd->PartitionNumber,
1966 Hd->SignatureType
1971 UefiDevicePathLibCatPrint (Str, "0x%lx,0x%lx)", Hd->PartitionStart, Hd->PartitionSize);
1975 Converts a CDROM device path structure to its string representative.
1980 of the display node is used, where applicable. If DisplayOnly
1981 is FALSE, then the longer text representation of the display node
1984 representation for a device node can be used, where applicable.
1999 UefiDevicePathLibCatPrint (Str, "CDROM(0x%x)", Cd->BootEntry);
2003 UefiDevicePathLibCatPrint (Str, "CDROM(0x%x,0x%lx,0x%lx)", Cd->BootEntry, Cd->PartitionStart, Cd->PartitionSize);
2007 Converts a File device path structure to its string representative.
2012 of the display node is used, where applicable. If DisplayOnly
2013 is FALSE, then the longer text representation of the display node
2016 representation for a device node can be used, where applicable.
2031 ucs2_to_utf8(Fp->PathName, &name);
2037 Converts a Media protocol device path structure to its string representative.
2042 of the display node is used, where applicable. If DisplayOnly
2043 is FALSE, then the longer text representation of the display node
2046 representation for a device node can be used, where applicable.
2060 UefiDevicePathLibCatPrint (Str, "Media(%36s)", G(&MediaProt->Protocol));
2064 Converts a Firmware Volume device path structure to its string representative.
2069 of the display node is used, where applicable. If DisplayOnly
2070 is FALSE, then the longer text representation of the display node
2073 representation for a device node can be used, where applicable.
2087 UefiDevicePathLibCatPrint (Str, "Fv(%36s)", G(&Fv->FvName));
2091 Converts a Firmware Volume File device path structure to its string representative.
2096 of the display node is used, where applicable. If DisplayOnly
2097 is FALSE, then the longer text representation of the display node
2100 representation for a device node can be used, where applicable.
2114 UefiDevicePathLibCatPrint (Str, "FvFile(%36s)", G(&FvFile->FvFileName));
2118 Converts a Relative Offset device path structure to its string representative.
2123 of the display node is used, where applicable. If DisplayOnly
2124 is FALSE, then the longer text representation of the display node
2127 representation for a device node can be used, where applicable.
2144 Offset->StartingOffset,
2145 Offset->EndingOffset
2150 Converts a Ram Disk device path structure to its string representative.
2155 of the display node is used, where applicable. If DisplayOnly
2156 is FALSE, then the longer text representation of the display node
2159 representation for a device node can be used, where applicable.
2174 if (CompareGuid (&RamDisk->TypeGuid, &gEfiVirtualDiskGuid)) {
2178 LShiftU64 ((UINT64)RamDisk->StartingAddr[1], 32) | RamDisk->StartingAddr[0],
2179 LShiftU64 ((UINT64)RamDisk->EndingAddr[1], 32) | RamDisk->EndingAddr[0],
2180 RamDisk->Instance
2182 } else if (CompareGuid (&RamDisk->TypeGuid, &gEfiVirtualCdGuid)) {
2186 LShiftU64 ((UINT64)RamDisk->StartingAddr[1], 32) | RamDisk->StartingAddr[0],
2187 LShiftU64 ((UINT64)RamDisk->EndingAddr[1], 32) | RamDisk->EndingAddr[0],
2188 RamDisk->Instance
2190 } else if (CompareGuid (&RamDisk->TypeGuid, &gEfiPersistentVirtualDiskGuid)) {
2194 LShiftU64 ((UINT64)RamDisk->StartingAddr[1], 32) | RamDisk->StartingAddr[0],
2195 LShiftU64 ((UINT64)RamDisk->EndingAddr[1], 32) | RamDisk->EndingAddr[0],
2196 RamDisk->Instance
2198 } else if (CompareGuid (&RamDisk->TypeGuid, &gEfiPersistentVirtualCdGuid)) {
2202 LShiftU64 ((UINT64)RamDisk->StartingAddr[1], 32) | RamDisk->StartingAddr[0],
2203 LShiftU64 ((UINT64)RamDisk->EndingAddr[1], 32) | RamDisk->EndingAddr[0],
2204 RamDisk->Instance
2210 LShiftU64 ((UINT64)RamDisk->StartingAddr[1], 32) | RamDisk->StartingAddr[0],
2211 LShiftU64 ((UINT64)RamDisk->EndingAddr[1], 32) | RamDisk->EndingAddr[0],
2212 RamDisk->Instance,
2213 G(&RamDisk->TypeGuid)
2219 Converts a BIOS Boot Specification device path structure to its string representative.
2224 of the display node is used, where applicable. If DisplayOnly
2225 is FALSE, then the longer text representation of the display node
2228 representation for a device node can be used, where applicable.
2243 switch (Bbs->DeviceType) {
2274 UefiDevicePathLibCatPrint (Str, "BBS(%s,%s", Type, Bbs->String);
2276 UefiDevicePathLibCatPrint (Str, "BBS(0x%x,%s", Bbs->DeviceType, Bbs->String);
2284 UefiDevicePathLibCatPrint (Str, ",0x%x)", Bbs->StatusFlag);
2288 Converts an End-of-Device-Path structure to its string representative.
2293 of the display node is used, where applicable. If DisplayOnly
2294 is FALSE, then the longer text representation of the display node
2297 representation for a device node can be used, where applicable.
2326 of the display node is used, where applicable. If DisplayOnly
2327 is FALSE, then the longer text representation of the display node
2330 representation for a device node can be used, where applicable.
2354 // It's a node whose type cannot be recognized
2359 // It's a node whose type can be recognized
2429 Converts a device node to its string representation.
2431 @param DeviceNode A Pointer to the device node to be converted.
2433 of the display node is used, where applicable. If DisplayOnly
2434 is FALSE, then the longer text representation of the display node
2437 representation for a device node can be used, where applicable.
2439 @return A pointer to the allocated text representation of the device node or NULL if DeviceNode
2464 // If not found, use a generic function
2488 Converts a device path to its text representation.
2490 @param DevicePath A Pointer to the device to be converted.
2492 of the display node is used, where applicable. If DisplayOnly
2493 is FALSE, then the longer text representation of the display node
2496 representation for a device node can be used, where applicable.
2498 @return A pointer to the allocated text representation of the device path or
2529 // If not found, use a generic function
2543 // Put a path separator in if needed
2588 return -1;
2605 return -1;
2627 ucs2_to_utf8(fp->PathName, &name);