28 IN BOOLEAN HandleValid
45 Status =
gBS->LocateHandleBuffer (
ByProtocol, &gEfiSerialIoProtocolGuid,
NULL, &NoHandles, &Handles);
46 if (EFI_ERROR (Status)) {
51 for (Index = 0; Index < NoHandles; Index++) {
58 Status =
gBS->HandleProtocol (Handles[Index], &gEfiSerialIoProtocolGuid, (VOID **)&SerialIo);
59 if (!EFI_ERROR (Status)) {
60 switch (SerialIo->Mode->Parity) {
96 switch (SerialIo->Mode->StopBits) {
99 StopBits = L
"Default";
112 case OneFiveStopBits:
119 StopBits = L
"Unknown";
127 gShellDebug1HiiHandle,
130 SerialIo->Mode->BaudRate,
132 SerialIo->Mode->DataBits,
146 if (Index == NoHandles) {
147 if (((NoHandles != 0) && HandleValid) || (0 == NoHandles)) {
182 CHAR16 *ProblemParam;
188 Parity = DefaultParity;
195 if (EFI_ERROR (Status)) {
196 if ((Status == EFI_VOLUME_CORRUPTED) && (ProblemParam !=
NULL)) {
214 HandleIdx = (
UINTN)Intermediate;
241 Parity = DefaultParity;
261 Parity = SpaceParity;
301 StopBits = DefaultStopBits;
305 StopBits = OneStopBit;
309 StopBits = TwoStopBits;
313 StopBits = OneFiveStopBits;
322 Status =
gBS->LocateHandleBuffer (
ByProtocol, &gEfiSerialIoProtocolGuid,
NULL, &NoHandles, &Handles);
323 if (EFI_ERROR (Status)) {
329 for (Index = 0; Index < NoHandles; Index++) {
334 Status =
gBS->HandleProtocol (Handles[Index], &gEfiSerialIoProtocolGuid, (VOID **)&SerialIo);
335 if (!EFI_ERROR (Status)) {
336 Status = SerialIo->SetAttributes (
339 SerialIo->Mode->ReceiveFifoDepth,
340 SerialIo->Mode->Timeout,
345 if (EFI_ERROR (Status)) {
346 if (Status == EFI_INVALID_PARAMETER) {
349 }
else if (Status == EFI_DEVICE_ERROR) {
366 if ((ShellStatus ==
SHELL_SUCCESS) && (Index == NoHandles)) {
372 if (Package !=
NULL) {
376 if (Handles !=
NULL) {
UINTN EFIAPI StrLen(IN CONST CHAR16 *String)
VOID EFIAPI FreePool(IN VOID *Buffer)
EFI_HANDLE EFIAPI ConvertHandleIndexToHandle(IN CONST UINTN TheIndex)
UINTN EFIAPI ConvertHandleToHandleIndex(IN CONST EFI_HANDLE TheHandle)
@ SHELL_INVALID_PARAMETER
SHELL_STATUS DisplaySettings(IN UINTN HandleIdx, IN BOOLEAN HandleValid)
SHELL_STATUS EFIAPI ShellCommandRunSerMode(IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
UINTN EFIAPI ShellStrToUintn(IN CONST CHAR16 *String)
#define ShellCommandLineParse(CheckList, CheckPackage, ProblemParam, AutoPageBreak)
Make it easy to upgrade from older versions of the shell library.
EFI_STATUS EFIAPI ShellPrintHiiEx(IN INT32 Col OPTIONAL, IN INT32 Row OPTIONAL, IN CONST CHAR8 *Language OPTIONAL, IN CONST EFI_STRING_ID HiiFormatStringId, IN CONST EFI_HII_HANDLE HiiFormatHandle,...)
VOID EFIAPI ShellCommandLineFreeVarList(IN LIST_ENTRY *CheckPackage)
CONST CHAR16 *EFIAPI ShellCommandLineGetRawValue(IN CONST LIST_ENTRY *CONST CheckPackage, IN UINTN Position)
UINTN EFIAPI ShellCommandLineGetCount(IN CONST LIST_ENTRY *CheckPackage)
EFI_STATUS EFIAPI ShellConvertStringToUint64(IN CONST CHAR16 *String, OUT UINT64 *Value, IN CONST BOOLEAN ForceHex, IN CONST BOOLEAN StopAtSpace)
SHELL_PARAM_ITEM EmptyParamList[]
Helper structure for no parameters (besides -? and -b)