ShellPkg: allow for mm command to properly write PCIe in non-interactive mode.
Submitted-by: jcarsey Reviewed-by: jljusten Reviewed-by: marothma git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12299 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@ -464,25 +464,25 @@ ShellCommandRunMm (
|
|||||||
GetPciEAddressFromInputAddress (Address, &PciEAddress);
|
GetPciEAddressFromInputAddress (Address, &PciEAddress);
|
||||||
}
|
}
|
||||||
|
|
||||||
// //
|
//
|
||||||
// // Set value
|
// Set value
|
||||||
// //
|
//
|
||||||
// if (ValueStr != NULL) {
|
if (ShellCommandLineGetRawValue(Package, 2) != NULL) {
|
||||||
// if (AccessType == EFIMemoryMappedIo) {
|
if (AccessType == EFIMemoryMappedIo) {
|
||||||
// IoDev->Mem.Write (IoDev, Width, Address, 1, &Value);
|
IoDev->Mem.Write (IoDev, Width, Address, 1, &Value);
|
||||||
// } else if (AccessType == EfiIo) {
|
} else if (AccessType == EfiIo) {
|
||||||
// IoDev->Io.Write (IoDev, Width, Address, 1, &Value);
|
IoDev->Io.Write (IoDev, Width, Address, 1, &Value);
|
||||||
// } else if (AccessType == EfiPciConfig) {
|
} else if (AccessType == EfiPciConfig) {
|
||||||
// IoDev->Pci.Write (IoDev, Width, Address, 1, &Value);
|
IoDev->Pci.Write (IoDev, Width, Address, 1, &Value);
|
||||||
// } else if (AccessType == EfiPciEConfig) {
|
} else if (AccessType == EfiPciEConfig) {
|
||||||
// IoDev->Pci.Write (IoDev, Width, PciEAddress, 1, &Buffer);
|
IoDev->Pci.Write (IoDev, Width, PciEAddress, 1, &Value);
|
||||||
// } else {
|
} else {
|
||||||
// WriteMem (Width, Address, 1, &Value);
|
WriteMem (Width, Address, 1, &Value);
|
||||||
// }
|
}
|
||||||
//
|
|
||||||
// ASSERT(ShellStatus == SHELL_SUCCESS);
|
ASSERT(ShellStatus == SHELL_SUCCESS);
|
||||||
// goto Done;
|
goto Done;
|
||||||
// }
|
}
|
||||||
|
|
||||||
|
|
||||||
//
|
//
|
||||||
|
Reference in New Issue
Block a user