mirror of https://github.com/acidanthera/audk.git
SATA Device path updated.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8010 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
9aaaeb2804
commit
186ca8b0cd
|
@ -2663,7 +2663,7 @@ DevPathFromTextSata (
|
||||||
Sata->PortMultiplierPortNumber = (UINT16) Xtoi (Param2);
|
Sata->PortMultiplierPortNumber = (UINT16) Xtoi (Param2);
|
||||||
Param2 = Param3;
|
Param2 = Param3;
|
||||||
} else {
|
} else {
|
||||||
Sata->PortMultiplierPortNumber = 0;
|
Sata->PortMultiplierPortNumber = SATA_HBA_DIRECT_CONNECT_FLAG;
|
||||||
}
|
}
|
||||||
Sata->Lun = (UINT16) Xtoi (Param2);
|
Sata->Lun = (UINT16) Xtoi (Param2);
|
||||||
|
|
||||||
|
|
|
@ -96,7 +96,7 @@ DevPathToTextPci (
|
||||||
PCI_DEVICE_PATH *Pci;
|
PCI_DEVICE_PATH *Pci;
|
||||||
|
|
||||||
Pci = DevPath;
|
Pci = DevPath;
|
||||||
CatPrint (Str, L"Pci(0x%x,0x%x)", Pci->Device, Pci->Function);
|
CatPrint (Str, L"Pci(0x%x,0x%x)", (UINTN) Pci->Device, (UINTN) Pci->Function);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -123,7 +123,7 @@ DevPathToTextPccard (
|
||||||
PCCARD_DEVICE_PATH *Pccard;
|
PCCARD_DEVICE_PATH *Pccard;
|
||||||
|
|
||||||
Pccard = DevPath;
|
Pccard = DevPath;
|
||||||
CatPrint (Str, L"PcCard(0x%x)", Pccard->FunctionNumber);
|
CatPrint (Str, L"PcCard(0x%x)", (UINTN) Pccard->FunctionNumber);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -153,7 +153,7 @@ DevPathToTextMemMap (
|
||||||
CatPrint (
|
CatPrint (
|
||||||
Str,
|
Str,
|
||||||
L"MemoryMapped(0x%x,0x%lx,0x%lx)",
|
L"MemoryMapped(0x%x,0x%lx,0x%lx)",
|
||||||
MemMap->MemoryType,
|
(UINTN) MemMap->MemoryType,
|
||||||
MemMap->StartingAddress,
|
MemMap->StartingAddress,
|
||||||
MemMap->EndingAddress
|
MemMap->EndingAddress
|
||||||
);
|
);
|
||||||
|
@ -234,7 +234,7 @@ DevPathToTextVendor (
|
||||||
L"SAS(0x%lx,0x%lx,0x%x,",
|
L"SAS(0x%lx,0x%lx,0x%x,",
|
||||||
((SAS_DEVICE_PATH *) Vendor)->SasAddress,
|
((SAS_DEVICE_PATH *) Vendor)->SasAddress,
|
||||||
((SAS_DEVICE_PATH *) Vendor)->Lun,
|
((SAS_DEVICE_PATH *) Vendor)->Lun,
|
||||||
((SAS_DEVICE_PATH *) Vendor)->RelativeTargetPort
|
(UINTN) ((SAS_DEVICE_PATH *) Vendor)->RelativeTargetPort
|
||||||
);
|
);
|
||||||
Info = (((SAS_DEVICE_PATH *) Vendor)->DeviceTopology);
|
Info = (((SAS_DEVICE_PATH *) Vendor)->DeviceTopology);
|
||||||
if ((Info & 0x0f) == 0) {
|
if ((Info & 0x0f) == 0) {
|
||||||
|
@ -250,13 +250,13 @@ DevPathToTextVendor (
|
||||||
if ((Info & 0x0f) == 1) {
|
if ((Info & 0x0f) == 1) {
|
||||||
CatPrint (Str, L"0,");
|
CatPrint (Str, L"0,");
|
||||||
} else {
|
} else {
|
||||||
CatPrint (Str, L"0x%x,", (Info >> 8) & 0xff);
|
CatPrint (Str, L"0x%x,",(UINTN) (Info >> 8) & 0xff);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
CatPrint (Str, L"0,0,0,0,");
|
CatPrint (Str, L"0,0,0,0,");
|
||||||
}
|
}
|
||||||
|
|
||||||
CatPrint (Str, L"0x%x)", ((SAS_DEVICE_PATH *) Vendor)->Reserved);
|
CatPrint (Str, L"0x%x)", (UINTN) ((SAS_DEVICE_PATH *) Vendor)->Reserved);
|
||||||
return ;
|
return ;
|
||||||
} else if (CompareGuid (&Vendor->Guid, &gEfiDebugPortProtocolGuid)) {
|
} else if (CompareGuid (&Vendor->Guid, &gEfiDebugPortProtocolGuid)) {
|
||||||
CatPrint (Str, L"DebugPort()");
|
CatPrint (Str, L"DebugPort()");
|
||||||
|
@ -279,7 +279,7 @@ DevPathToTextVendor (
|
||||||
if (DataLength != 0) {
|
if (DataLength != 0) {
|
||||||
CatPrint (Str, L",");
|
CatPrint (Str, L",");
|
||||||
for (Index = 0; Index < DataLength; Index++) {
|
for (Index = 0; Index < DataLength; Index++) {
|
||||||
CatPrint (Str, L"%02x", ((VENDOR_DEVICE_PATH_WITH_DATA *) Vendor)->VendorDefinedData[Index]);
|
CatPrint (Str, L"%02x", (UINTN) ((VENDOR_DEVICE_PATH_WITH_DATA *) Vendor)->VendorDefinedData[Index]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -313,7 +313,7 @@ DevPathToTextController (
|
||||||
CatPrint (
|
CatPrint (
|
||||||
Str,
|
Str,
|
||||||
L"Ctrl(0x%x)",
|
L"Ctrl(0x%x)",
|
||||||
Controller->ControllerNumber
|
(UINTN) Controller->ControllerNumber
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -344,31 +344,31 @@ DevPathToTextAcpi (
|
||||||
if ((Acpi->HID & PNP_EISA_ID_MASK) == PNP_EISA_ID_CONST) {
|
if ((Acpi->HID & PNP_EISA_ID_MASK) == PNP_EISA_ID_CONST) {
|
||||||
switch (EISA_ID_TO_NUM (Acpi->HID)) {
|
switch (EISA_ID_TO_NUM (Acpi->HID)) {
|
||||||
case 0x0a03:
|
case 0x0a03:
|
||||||
CatPrint (Str, L"PciRoot(0x%x)", Acpi->UID);
|
CatPrint (Str, L"PciRoot(0x%x)", (UINTN) Acpi->UID);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 0x0604:
|
case 0x0604:
|
||||||
CatPrint (Str, L"Floppy(0x%x)", Acpi->UID);
|
CatPrint (Str, L"Floppy(0x%x)", (UINTN) Acpi->UID);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 0x0301:
|
case 0x0301:
|
||||||
CatPrint (Str, L"Keyboard(0x%x)", Acpi->UID);
|
CatPrint (Str, L"Keyboard(0x%x)", (UINTN) Acpi->UID);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 0x0501:
|
case 0x0501:
|
||||||
CatPrint (Str, L"Serial(0x%x)", Acpi->UID);
|
CatPrint (Str, L"Serial(0x%x)", (UINTN) Acpi->UID);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 0x0401:
|
case 0x0401:
|
||||||
CatPrint (Str, L"ParallelPort(0x%x)", Acpi->UID);
|
CatPrint (Str, L"ParallelPort(0x%x)", (UINTN) Acpi->UID);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
CatPrint (Str, L"Acpi(PNP%04x,0x%x)", EISA_ID_TO_NUM (Acpi->HID), Acpi->UID);
|
CatPrint (Str, L"Acpi(PNP%04x,0x%x)", (UINTN) EISA_ID_TO_NUM (Acpi->HID), (UINTN) Acpi->UID);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
CatPrint (Str, L"Acpi(0x%08x,0x%x)", Acpi->HID, Acpi->UID);
|
CatPrint (Str, L"Acpi(0x%08x,0x%x)", (UINTN) Acpi->HID, (UINTN) Acpi->UID);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -464,7 +464,7 @@ DevPathToTextAcpiEx (
|
||||||
if (AcpiEx->UID == 0) {
|
if (AcpiEx->UID == 0) {
|
||||||
CatPrint (Str, L"%a,", UIDStr);
|
CatPrint (Str, L"%a,", UIDStr);
|
||||||
} else {
|
} else {
|
||||||
CatPrint (Str, L"0x%x,", AcpiEx->UID);
|
CatPrint (Str, L"0x%x,", (UINTN) AcpiEx->UID);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (AcpiEx->CID == 0) {
|
if (AcpiEx->CID == 0) {
|
||||||
|
@ -478,7 +478,7 @@ DevPathToTextAcpiEx (
|
||||||
L"AcpiEx(%s,%s,0x%x,%a,%a,%a)",
|
L"AcpiEx(%s,%s,0x%x,%a,%a,%a)",
|
||||||
HIDText,
|
HIDText,
|
||||||
CIDText,
|
CIDText,
|
||||||
AcpiEx->UID,
|
(UINTN) AcpiEx->UID,
|
||||||
HIDStr,
|
HIDStr,
|
||||||
CIDStr,
|
CIDStr,
|
||||||
UIDStr
|
UIDStr
|
||||||
|
@ -517,9 +517,9 @@ DevPathToTextAcpiAdr (
|
||||||
Length = (UINT16) DevicePathNodeLength ((EFI_DEVICE_PATH_PROTOCOL *) AcpiAdr);
|
Length = (UINT16) DevicePathNodeLength ((EFI_DEVICE_PATH_PROTOCOL *) AcpiAdr);
|
||||||
AdditionalAdrCount = (UINT16) ((Length - 8) / 4);
|
AdditionalAdrCount = (UINT16) ((Length - 8) / 4);
|
||||||
|
|
||||||
CatPrint (Str, L"AcpiAdr(0x%x", AcpiAdr->ADR);
|
CatPrint (Str, L"AcpiAdr(0x%x", (UINTN) AcpiAdr->ADR);
|
||||||
for (Index = 0; Index < AdditionalAdrCount; Index++) {
|
for (Index = 0; Index < AdditionalAdrCount; Index++) {
|
||||||
CatPrint (Str, L",0x%x", *(UINT32 *) ((UINT8 *) AcpiAdr + 8 + Index * 4));
|
CatPrint (Str, L",0x%x", (UINTN) *(UINT32 *) ((UINT8 *) AcpiAdr + 8 + Index * 4));
|
||||||
}
|
}
|
||||||
CatPrint (Str, L")");
|
CatPrint (Str, L")");
|
||||||
}
|
}
|
||||||
|
@ -550,14 +550,14 @@ DevPathToTextAtapi (
|
||||||
Atapi = DevPath;
|
Atapi = DevPath;
|
||||||
|
|
||||||
if (DisplayOnly) {
|
if (DisplayOnly) {
|
||||||
CatPrint (Str, L"Ata(0x%x)", Atapi->Lun);
|
CatPrint (Str, L"Ata(0x%x)", (UINTN) Atapi->Lun);
|
||||||
} else {
|
} else {
|
||||||
CatPrint (
|
CatPrint (
|
||||||
Str,
|
Str,
|
||||||
L"Ata(%s,%s,0x%x)",
|
L"Ata(%s,%s,0x%x)",
|
||||||
(Atapi->PrimarySecondary == 1) ? L"Secondary" : L"Primary",
|
(Atapi->PrimarySecondary == 1) ? L"Secondary" : L"Primary",
|
||||||
(Atapi->SlaveMaster == 1) ? L"Slave" : L"Master",
|
(Atapi->SlaveMaster == 1) ? L"Slave" : L"Master",
|
||||||
Atapi->Lun
|
(UINTN) Atapi->Lun
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -586,7 +586,7 @@ DevPathToTextScsi (
|
||||||
SCSI_DEVICE_PATH *Scsi;
|
SCSI_DEVICE_PATH *Scsi;
|
||||||
|
|
||||||
Scsi = DevPath;
|
Scsi = DevPath;
|
||||||
CatPrint (Str, L"Scsi(0x%x,0x%x)", Scsi->Pun, Scsi->Lun);
|
CatPrint (Str, L"Scsi(0x%x,0x%x)", (UINTN) Scsi->Pun, (UINTN) Scsi->Lun);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -716,9 +716,9 @@ DevPathToTextUsbWWID (
|
||||||
CatPrint (
|
CatPrint (
|
||||||
Str,
|
Str,
|
||||||
L"UsbWwid(0x%x,0x%x,0x%x,\"%s\")",
|
L"UsbWwid(0x%x,0x%x,0x%x,\"%s\")",
|
||||||
UsbWWId->VendorId,
|
(UINTN) UsbWWId->VendorId,
|
||||||
UsbWWId->ProductId,
|
(UINTN) UsbWWId->ProductId,
|
||||||
UsbWWId->InterfaceNumber,
|
(UINTN) UsbWWId->InterfaceNumber,
|
||||||
SerialNumberStr
|
SerialNumberStr
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -747,7 +747,7 @@ DevPathToTextLogicalUnit (
|
||||||
DEVICE_LOGICAL_UNIT_DEVICE_PATH *LogicalUnit;
|
DEVICE_LOGICAL_UNIT_DEVICE_PATH *LogicalUnit;
|
||||||
|
|
||||||
LogicalUnit = DevPath;
|
LogicalUnit = DevPath;
|
||||||
CatPrint (Str, L"Unit(0x%x)", LogicalUnit->Lun);
|
CatPrint (Str, L"Unit(0x%x)", (UINTN) LogicalUnit->Lun);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -836,10 +836,10 @@ DevPathToTextUsbClass (
|
||||||
CatPrint (
|
CatPrint (
|
||||||
Str,
|
Str,
|
||||||
L"(0x%x,0x%x,0x%x,0x%x)",
|
L"(0x%x,0x%x,0x%x,0x%x)",
|
||||||
UsbClass->VendorId,
|
(UINTN) UsbClass->VendorId,
|
||||||
UsbClass->ProductId,
|
(UINTN) UsbClass->ProductId,
|
||||||
UsbClass->DeviceSubClass,
|
(UINTN) UsbClass->DeviceSubClass,
|
||||||
UsbClass->DeviceProtocol
|
(UINTN) UsbClass->DeviceProtocol
|
||||||
);
|
);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -849,27 +849,27 @@ DevPathToTextUsbClass (
|
||||||
CatPrint (
|
CatPrint (
|
||||||
Str,
|
Str,
|
||||||
L"UsbDeviceFirmwareUpdate(0x%x,0x%x,0x%x)",
|
L"UsbDeviceFirmwareUpdate(0x%x,0x%x,0x%x)",
|
||||||
UsbClass->VendorId,
|
(UINTN) UsbClass->VendorId,
|
||||||
UsbClass->ProductId,
|
(UINTN) UsbClass->ProductId,
|
||||||
UsbClass->DeviceProtocol
|
(UINTN) UsbClass->DeviceProtocol
|
||||||
);
|
);
|
||||||
return;
|
return;
|
||||||
} else if (UsbClass->DeviceSubClass == USB_SUBCLASS_IRDA_BRIDGE) {
|
} else if (UsbClass->DeviceSubClass == USB_SUBCLASS_IRDA_BRIDGE) {
|
||||||
CatPrint (
|
CatPrint (
|
||||||
Str,
|
Str,
|
||||||
L"UsbIrdaBridge(0x%x,0x%x,0x%x)",
|
L"UsbIrdaBridge(0x%x,0x%x,0x%x)",
|
||||||
UsbClass->VendorId,
|
(UINTN) UsbClass->VendorId,
|
||||||
UsbClass->ProductId,
|
(UINTN) UsbClass->ProductId,
|
||||||
UsbClass->DeviceProtocol
|
(UINTN) UsbClass->DeviceProtocol
|
||||||
);
|
);
|
||||||
return;
|
return;
|
||||||
} else if (UsbClass->DeviceSubClass == USB_SUBCLASS_TEST) {
|
} else if (UsbClass->DeviceSubClass == USB_SUBCLASS_TEST) {
|
||||||
CatPrint (
|
CatPrint (
|
||||||
Str,
|
Str,
|
||||||
L"UsbTestAndMeasurement(0x%x,0x%x,0x%x)",
|
L"UsbTestAndMeasurement(0x%x,0x%x,0x%x)",
|
||||||
UsbClass->VendorId,
|
(UINTN) UsbClass->VendorId,
|
||||||
UsbClass->ProductId,
|
(UINTN) UsbClass->ProductId,
|
||||||
UsbClass->DeviceProtocol
|
(UINTN) UsbClass->DeviceProtocol
|
||||||
);
|
);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -878,11 +878,11 @@ DevPathToTextUsbClass (
|
||||||
CatPrint (
|
CatPrint (
|
||||||
Str,
|
Str,
|
||||||
L"UsbClass(0x%x,0x%x,0x%x,0x%x,0x%x)",
|
L"UsbClass(0x%x,0x%x,0x%x,0x%x,0x%x)",
|
||||||
UsbClass->VendorId,
|
(UINTN) UsbClass->VendorId,
|
||||||
UsbClass->ProductId,
|
(UINTN) UsbClass->ProductId,
|
||||||
UsbClass->DeviceClass,
|
(UINTN) UsbClass->DeviceClass,
|
||||||
UsbClass->DeviceSubClass,
|
(UINTN) UsbClass->DeviceSubClass,
|
||||||
UsbClass->DeviceProtocol
|
(UINTN) UsbClass->DeviceProtocol
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -910,6 +910,14 @@ DevPathToTextSata (
|
||||||
SATA_DEVICE_PATH *Sata;
|
SATA_DEVICE_PATH *Sata;
|
||||||
|
|
||||||
Sata = DevPath;
|
Sata = DevPath;
|
||||||
|
if (Sata->PortMultiplierPortNumber & SATA_HBA_DIRECT_CONNECT_FLAG) {
|
||||||
|
CatPrint (
|
||||||
|
Str,
|
||||||
|
L"Sata(0x%x,0x%x)",
|
||||||
|
(UINTN) Sata->HBAPortNumber,
|
||||||
|
(UINTN) Sata->Lun
|
||||||
|
);
|
||||||
|
} else {
|
||||||
CatPrint (
|
CatPrint (
|
||||||
Str,
|
Str,
|
||||||
L"Sata(0x%x,0x%x,0x%x)",
|
L"Sata(0x%x,0x%x,0x%x)",
|
||||||
|
@ -918,6 +926,7 @@ DevPathToTextSata (
|
||||||
(UINTN) Sata->Lun
|
(UINTN) Sata->Lun
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Converts a I20 device path structure to its string representative.
|
Converts a I20 device path structure to its string representative.
|
||||||
|
@ -943,7 +952,7 @@ DevPathToTextI2O (
|
||||||
I2O_DEVICE_PATH *I2ODevPath;
|
I2O_DEVICE_PATH *I2ODevPath;
|
||||||
|
|
||||||
I2ODevPath = DevPath;
|
I2ODevPath = DevPath;
|
||||||
CatPrint (Str, L"I2O(0x%x)", I2ODevPath->Tid);
|
CatPrint (Str, L"I2O(0x%x)", (UINTN) I2ODevPath->Tid);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -981,10 +990,10 @@ DevPathToTextMacAddr (
|
||||||
CatPrint (Str, L"MAC(");
|
CatPrint (Str, L"MAC(");
|
||||||
|
|
||||||
for (Index = 0; Index < HwAddressSize; Index++) {
|
for (Index = 0; Index < HwAddressSize; Index++) {
|
||||||
CatPrint (Str, L"%02x", MacDevPath->MacAddress.Addr[Index]);
|
CatPrint (Str, L"%02x", (UINTN) MacDevPath->MacAddress.Addr[Index]);
|
||||||
}
|
}
|
||||||
|
|
||||||
CatPrint (Str, L",0x%x)", MacDevPath->IfType);
|
CatPrint (Str, L",0x%x)", (UINTN) MacDevPath->IfType);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1015,10 +1024,10 @@ DevPathToTextIPv4 (
|
||||||
CatPrint (
|
CatPrint (
|
||||||
Str,
|
Str,
|
||||||
L"IPv4(%d.%d.%d.%d)",
|
L"IPv4(%d.%d.%d.%d)",
|
||||||
IPDevPath->RemoteIpAddress.Addr[0],
|
(UINTN) IPDevPath->RemoteIpAddress.Addr[0],
|
||||||
IPDevPath->RemoteIpAddress.Addr[1],
|
(UINTN) IPDevPath->RemoteIpAddress.Addr[1],
|
||||||
IPDevPath->RemoteIpAddress.Addr[2],
|
(UINTN) IPDevPath->RemoteIpAddress.Addr[2],
|
||||||
IPDevPath->RemoteIpAddress.Addr[3]
|
(UINTN) IPDevPath->RemoteIpAddress.Addr[3]
|
||||||
);
|
);
|
||||||
return ;
|
return ;
|
||||||
}
|
}
|
||||||
|
@ -1026,16 +1035,16 @@ DevPathToTextIPv4 (
|
||||||
CatPrint (
|
CatPrint (
|
||||||
Str,
|
Str,
|
||||||
L"IPv4(%d.%d.%d.%d,%s,%s,%d.%d.%d.%d)",
|
L"IPv4(%d.%d.%d.%d,%s,%s,%d.%d.%d.%d)",
|
||||||
IPDevPath->RemoteIpAddress.Addr[0],
|
(UINTN) IPDevPath->RemoteIpAddress.Addr[0],
|
||||||
IPDevPath->RemoteIpAddress.Addr[1],
|
(UINTN) IPDevPath->RemoteIpAddress.Addr[1],
|
||||||
IPDevPath->RemoteIpAddress.Addr[2],
|
(UINTN) IPDevPath->RemoteIpAddress.Addr[2],
|
||||||
IPDevPath->RemoteIpAddress.Addr[3],
|
(UINTN) IPDevPath->RemoteIpAddress.Addr[3],
|
||||||
(IPDevPath->Protocol == 1) ? L"TCP" : L"UDP",
|
(IPDevPath->Protocol == 1) ? L"TCP" : L"UDP",
|
||||||
IPDevPath->StaticIpAddress ? L"Static" : L"DHCP",
|
IPDevPath->StaticIpAddress ? L"Static" : L"DHCP",
|
||||||
IPDevPath->LocalIpAddress.Addr[0],
|
(UINTN) IPDevPath->LocalIpAddress.Addr[0],
|
||||||
IPDevPath->LocalIpAddress.Addr[1],
|
(UINTN) IPDevPath->LocalIpAddress.Addr[1],
|
||||||
IPDevPath->LocalIpAddress.Addr[2],
|
(UINTN) IPDevPath->LocalIpAddress.Addr[2],
|
||||||
IPDevPath->LocalIpAddress.Addr[3]
|
(UINTN) IPDevPath->LocalIpAddress.Addr[3]
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1067,22 +1076,22 @@ DevPathToTextIPv6 (
|
||||||
CatPrint (
|
CatPrint (
|
||||||
Str,
|
Str,
|
||||||
L"IPv6(%02x%02x:%02x%02x:%02x%02x:%02x%02x:%02x%02x:%02x%02x:%02x%02x:%02x%02x)",
|
L"IPv6(%02x%02x:%02x%02x:%02x%02x:%02x%02x:%02x%02x:%02x%02x:%02x%02x:%02x%02x)",
|
||||||
IPDevPath->RemoteIpAddress.Addr[0],
|
(UINTN) IPDevPath->RemoteIpAddress.Addr[0],
|
||||||
IPDevPath->RemoteIpAddress.Addr[1],
|
(UINTN) IPDevPath->RemoteIpAddress.Addr[1],
|
||||||
IPDevPath->RemoteIpAddress.Addr[2],
|
(UINTN) IPDevPath->RemoteIpAddress.Addr[2],
|
||||||
IPDevPath->RemoteIpAddress.Addr[3],
|
(UINTN) IPDevPath->RemoteIpAddress.Addr[3],
|
||||||
IPDevPath->RemoteIpAddress.Addr[4],
|
(UINTN) IPDevPath->RemoteIpAddress.Addr[4],
|
||||||
IPDevPath->RemoteIpAddress.Addr[5],
|
(UINTN) IPDevPath->RemoteIpAddress.Addr[5],
|
||||||
IPDevPath->RemoteIpAddress.Addr[6],
|
(UINTN) IPDevPath->RemoteIpAddress.Addr[6],
|
||||||
IPDevPath->RemoteIpAddress.Addr[7],
|
(UINTN) IPDevPath->RemoteIpAddress.Addr[7],
|
||||||
IPDevPath->RemoteIpAddress.Addr[8],
|
(UINTN) IPDevPath->RemoteIpAddress.Addr[8],
|
||||||
IPDevPath->RemoteIpAddress.Addr[9],
|
(UINTN) IPDevPath->RemoteIpAddress.Addr[9],
|
||||||
IPDevPath->RemoteIpAddress.Addr[10],
|
(UINTN) IPDevPath->RemoteIpAddress.Addr[10],
|
||||||
IPDevPath->RemoteIpAddress.Addr[11],
|
(UINTN) IPDevPath->RemoteIpAddress.Addr[11],
|
||||||
IPDevPath->RemoteIpAddress.Addr[12],
|
(UINTN) IPDevPath->RemoteIpAddress.Addr[12],
|
||||||
IPDevPath->RemoteIpAddress.Addr[13],
|
(UINTN) IPDevPath->RemoteIpAddress.Addr[13],
|
||||||
IPDevPath->RemoteIpAddress.Addr[14],
|
(UINTN) IPDevPath->RemoteIpAddress.Addr[14],
|
||||||
IPDevPath->RemoteIpAddress.Addr[15]
|
(UINTN) IPDevPath->RemoteIpAddress.Addr[15]
|
||||||
);
|
);
|
||||||
return ;
|
return ;
|
||||||
}
|
}
|
||||||
|
@ -1090,40 +1099,40 @@ DevPathToTextIPv6 (
|
||||||
CatPrint (
|
CatPrint (
|
||||||
Str,
|
Str,
|
||||||
L"IPv6(%02x%02x:%02x%02x:%02x%02x:%02x%02x:%02x%02x:%02x%02x:%02x%02x:%02x%02x,%s,%s,%02x%02x:%02x%02x:%02x%02x:%02x%02x:%02x%02x:%02x%02x:%02x%02x:%02x%02x)",
|
L"IPv6(%02x%02x:%02x%02x:%02x%02x:%02x%02x:%02x%02x:%02x%02x:%02x%02x:%02x%02x,%s,%s,%02x%02x:%02x%02x:%02x%02x:%02x%02x:%02x%02x:%02x%02x:%02x%02x:%02x%02x)",
|
||||||
IPDevPath->RemoteIpAddress.Addr[0],
|
(UINTN) IPDevPath->RemoteIpAddress.Addr[0],
|
||||||
IPDevPath->RemoteIpAddress.Addr[1],
|
(UINTN) IPDevPath->RemoteIpAddress.Addr[1],
|
||||||
IPDevPath->RemoteIpAddress.Addr[2],
|
(UINTN) IPDevPath->RemoteIpAddress.Addr[2],
|
||||||
IPDevPath->RemoteIpAddress.Addr[3],
|
(UINTN) IPDevPath->RemoteIpAddress.Addr[3],
|
||||||
IPDevPath->RemoteIpAddress.Addr[4],
|
(UINTN) IPDevPath->RemoteIpAddress.Addr[4],
|
||||||
IPDevPath->RemoteIpAddress.Addr[5],
|
(UINTN) IPDevPath->RemoteIpAddress.Addr[5],
|
||||||
IPDevPath->RemoteIpAddress.Addr[6],
|
(UINTN) IPDevPath->RemoteIpAddress.Addr[6],
|
||||||
IPDevPath->RemoteIpAddress.Addr[7],
|
(UINTN) IPDevPath->RemoteIpAddress.Addr[7],
|
||||||
IPDevPath->RemoteIpAddress.Addr[8],
|
(UINTN) IPDevPath->RemoteIpAddress.Addr[8],
|
||||||
IPDevPath->RemoteIpAddress.Addr[9],
|
(UINTN) IPDevPath->RemoteIpAddress.Addr[9],
|
||||||
IPDevPath->RemoteIpAddress.Addr[10],
|
(UINTN) IPDevPath->RemoteIpAddress.Addr[10],
|
||||||
IPDevPath->RemoteIpAddress.Addr[11],
|
(UINTN) IPDevPath->RemoteIpAddress.Addr[11],
|
||||||
IPDevPath->RemoteIpAddress.Addr[12],
|
(UINTN) IPDevPath->RemoteIpAddress.Addr[12],
|
||||||
IPDevPath->RemoteIpAddress.Addr[13],
|
(UINTN) IPDevPath->RemoteIpAddress.Addr[13],
|
||||||
IPDevPath->RemoteIpAddress.Addr[14],
|
(UINTN) IPDevPath->RemoteIpAddress.Addr[14],
|
||||||
IPDevPath->RemoteIpAddress.Addr[15],
|
(UINTN) IPDevPath->RemoteIpAddress.Addr[15],
|
||||||
(IPDevPath->Protocol == 1) ? L"TCP" : L"UDP",
|
(IPDevPath->Protocol == 1) ? L"TCP" : L"UDP",
|
||||||
IPDevPath->StaticIpAddress ? L"Static" : L"DHCP",
|
IPDevPath->StaticIpAddress ? L"Static" : L"DHCP",
|
||||||
IPDevPath->LocalIpAddress.Addr[0],
|
(UINTN) IPDevPath->LocalIpAddress.Addr[0],
|
||||||
IPDevPath->LocalIpAddress.Addr[1],
|
(UINTN) IPDevPath->LocalIpAddress.Addr[1],
|
||||||
IPDevPath->LocalIpAddress.Addr[2],
|
(UINTN) IPDevPath->LocalIpAddress.Addr[2],
|
||||||
IPDevPath->LocalIpAddress.Addr[3],
|
(UINTN) IPDevPath->LocalIpAddress.Addr[3],
|
||||||
IPDevPath->LocalIpAddress.Addr[4],
|
(UINTN) IPDevPath->LocalIpAddress.Addr[4],
|
||||||
IPDevPath->LocalIpAddress.Addr[5],
|
(UINTN) IPDevPath->LocalIpAddress.Addr[5],
|
||||||
IPDevPath->LocalIpAddress.Addr[6],
|
(UINTN) IPDevPath->LocalIpAddress.Addr[6],
|
||||||
IPDevPath->LocalIpAddress.Addr[7],
|
(UINTN) IPDevPath->LocalIpAddress.Addr[7],
|
||||||
IPDevPath->LocalIpAddress.Addr[8],
|
(UINTN) IPDevPath->LocalIpAddress.Addr[8],
|
||||||
IPDevPath->LocalIpAddress.Addr[9],
|
(UINTN) IPDevPath->LocalIpAddress.Addr[9],
|
||||||
IPDevPath->LocalIpAddress.Addr[10],
|
(UINTN) IPDevPath->LocalIpAddress.Addr[10],
|
||||||
IPDevPath->LocalIpAddress.Addr[11],
|
(UINTN) IPDevPath->LocalIpAddress.Addr[11],
|
||||||
IPDevPath->LocalIpAddress.Addr[12],
|
(UINTN) IPDevPath->LocalIpAddress.Addr[12],
|
||||||
IPDevPath->LocalIpAddress.Addr[13],
|
(UINTN) IPDevPath->LocalIpAddress.Addr[13],
|
||||||
IPDevPath->LocalIpAddress.Addr[14],
|
(UINTN) IPDevPath->LocalIpAddress.Addr[14],
|
||||||
IPDevPath->LocalIpAddress.Addr[15]
|
(UINTN) IPDevPath->LocalIpAddress.Addr[15]
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1154,7 +1163,7 @@ DevPathToTextInfiniBand (
|
||||||
CatPrint (
|
CatPrint (
|
||||||
Str,
|
Str,
|
||||||
L"Infiniband(0x%x,%g,0x%lx,0x%lx,0x%lx)",
|
L"Infiniband(0x%x,%g,0x%lx,0x%lx,0x%lx)",
|
||||||
InfiniBand->ResourceFlags,
|
(UINTN) InfiniBand->ResourceFlags,
|
||||||
InfiniBand->PortGid,
|
InfiniBand->PortGid,
|
||||||
InfiniBand->ServiceId,
|
InfiniBand->ServiceId,
|
||||||
InfiniBand->TargetPortId,
|
InfiniBand->TargetPortId,
|
||||||
|
@ -1226,7 +1235,7 @@ DevPathToTextUart (
|
||||||
if (Uart->DataBits == 0) {
|
if (Uart->DataBits == 0) {
|
||||||
CatPrint (Str, L"DEFAULT,");
|
CatPrint (Str, L"DEFAULT,");
|
||||||
} else {
|
} else {
|
||||||
CatPrint (Str, L"%d,", Uart->DataBits);
|
CatPrint (Str, L"%d,", (UINTN) Uart->DataBits);
|
||||||
}
|
}
|
||||||
|
|
||||||
CatPrint (Str, L"%c,", Parity);
|
CatPrint (Str, L"%c,", Parity);
|
||||||
|
@ -1283,7 +1292,7 @@ DevPathToTextiSCSI (
|
||||||
Str,
|
Str,
|
||||||
L"iSCSI(%a,0x%x,0x%lx,",
|
L"iSCSI(%a,0x%x,0x%lx,",
|
||||||
ISCSIDevPath->iSCSITargetName,
|
ISCSIDevPath->iSCSITargetName,
|
||||||
ISCSIDevPath->TargetPortalGroupTag,
|
(UINTN) ISCSIDevPath->TargetPortalGroupTag,
|
||||||
ISCSIDevPath->Lun
|
ISCSIDevPath->Lun
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -1331,9 +1340,9 @@ DevPathToTextHardDrive (
|
||||||
CatPrint (
|
CatPrint (
|
||||||
Str,
|
Str,
|
||||||
L"HD(%d,%s,0x%08x,",
|
L"HD(%d,%s,0x%08x,",
|
||||||
Hd->PartitionNumber,
|
(UINTN) Hd->PartitionNumber,
|
||||||
L"MBR",
|
L"MBR",
|
||||||
*((UINT32 *) (&(Hd->Signature[0])))
|
(UINTN) *((UINT32 *) (&(Hd->Signature[0])))
|
||||||
);
|
);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -1341,7 +1350,7 @@ DevPathToTextHardDrive (
|
||||||
CatPrint (
|
CatPrint (
|
||||||
Str,
|
Str,
|
||||||
L"HD(%d,%s,%g,",
|
L"HD(%d,%s,%g,",
|
||||||
Hd->PartitionNumber,
|
(UINTN) Hd->PartitionNumber,
|
||||||
L"GPT",
|
L"GPT",
|
||||||
(EFI_GUID *) &(Hd->Signature[0])
|
(EFI_GUID *) &(Hd->Signature[0])
|
||||||
);
|
);
|
||||||
|
@ -1351,8 +1360,8 @@ DevPathToTextHardDrive (
|
||||||
CatPrint (
|
CatPrint (
|
||||||
Str,
|
Str,
|
||||||
L"HD(%d,%d,0,",
|
L"HD(%d,%d,0,",
|
||||||
Hd->PartitionNumber,
|
(UINTN) Hd->PartitionNumber,
|
||||||
Hd->SignatureType
|
(UINTN) Hd->SignatureType
|
||||||
);
|
);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -1385,11 +1394,11 @@ DevPathToTextCDROM (
|
||||||
|
|
||||||
Cd = DevPath;
|
Cd = DevPath;
|
||||||
if (DisplayOnly) {
|
if (DisplayOnly) {
|
||||||
CatPrint (Str, L"CDROM(0x%x)", Cd->BootEntry);
|
CatPrint (Str, L"CDROM(0x%x)", (UINTN) Cd->BootEntry);
|
||||||
return ;
|
return ;
|
||||||
}
|
}
|
||||||
|
|
||||||
CatPrint (Str, L"CDROM(0x%x,0x%lx,0x%lx)", Cd->BootEntry, Cd->PartitionStart, Cd->PartitionSize);
|
CatPrint (Str, L"CDROM(0x%x,0x%lx,0x%lx)", (UINTN) Cd->BootEntry, Cd->PartitionStart, Cd->PartitionSize);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1558,7 +1567,7 @@ DevPathToTextBBS (
|
||||||
if (Type != NULL) {
|
if (Type != NULL) {
|
||||||
CatPrint (Str, L"BBS(%s,%a", Type, Bbs->String);
|
CatPrint (Str, L"BBS(%s,%a", Type, Bbs->String);
|
||||||
} else {
|
} else {
|
||||||
CatPrint (Str, L"BBS(0x%x,%a", Bbs->DeviceType, Bbs->String);
|
CatPrint (Str, L"BBS(0x%x,%a", (UINTN) Bbs->DeviceType, Bbs->String);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (DisplayOnly) {
|
if (DisplayOnly) {
|
||||||
|
@ -1566,7 +1575,7 @@ DevPathToTextBBS (
|
||||||
return ;
|
return ;
|
||||||
}
|
}
|
||||||
|
|
||||||
CatPrint (Str, L",0x%x)", Bbs->StatusFlag);
|
CatPrint (Str, L",0x%x)", (UINTN) Bbs->StatusFlag);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1646,7 +1655,6 @@ GLOBAL_REMOVE_IF_UNREFERENCED const DEVICE_PATH_TO_TEXT_TABLE DevPathToTextTable
|
||||||
{MEDIA_DEVICE_PATH, MEDIA_HARDDRIVE_DP, DevPathToTextHardDrive},
|
{MEDIA_DEVICE_PATH, MEDIA_HARDDRIVE_DP, DevPathToTextHardDrive},
|
||||||
{MEDIA_DEVICE_PATH, MEDIA_CDROM_DP, DevPathToTextCDROM},
|
{MEDIA_DEVICE_PATH, MEDIA_CDROM_DP, DevPathToTextCDROM},
|
||||||
{MEDIA_DEVICE_PATH, MEDIA_VENDOR_DP, DevPathToTextVendor},
|
{MEDIA_DEVICE_PATH, MEDIA_VENDOR_DP, DevPathToTextVendor},
|
||||||
{MEDIA_DEVICE_PATH, MEDIA_FILEPATH_DP, DevPathToTextFilePath},
|
|
||||||
{MEDIA_DEVICE_PATH, MEDIA_PROTOCOL_DP, DevPathToTextMediaProtocol},
|
{MEDIA_DEVICE_PATH, MEDIA_PROTOCOL_DP, DevPathToTextMediaProtocol},
|
||||||
{MEDIA_DEVICE_PATH, MEDIA_FILEPATH_DP, DevPathToTextFilePath},
|
{MEDIA_DEVICE_PATH, MEDIA_FILEPATH_DP, DevPathToTextFilePath},
|
||||||
{MEDIA_DEVICE_PATH, MEDIA_PIWG_FW_VOL_DP, DevPathToTextFv},
|
{MEDIA_DEVICE_PATH, MEDIA_PIWG_FW_VOL_DP, DevPathToTextFv},
|
||||||
|
|
Loading…
Reference in New Issue