TianoCore EDK2 master
Loading...
Searching...
No Matches
TftpDynamicCommand.c File Reference
#include "Tftp.h"
#include <Protocol/ShellDynamicCommand.h>

Go to the source code of this file.

Functions

SHELL_STATUS EFIAPI TftpCommandHandler (IN EFI_SHELL_DYNAMIC_COMMAND_PROTOCOL *This, IN EFI_SYSTEM_TABLE *SystemTable, IN EFI_SHELL_PARAMETERS_PROTOCOL *ShellParameters, IN EFI_SHELL_PROTOCOL *Shell)
 
CHAR16 *EFIAPI TftpCommandGetHelp (IN EFI_SHELL_DYNAMIC_COMMAND_PROTOCOL *This, IN CONST CHAR8 *Language)
 
EFI_STATUS EFIAPI TftpCommandInitialize (IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
 
EFI_STATUS EFIAPI TftpUnload (IN EFI_HANDLE ImageHandle)
 

Variables

EFI_SHELL_DYNAMIC_COMMAND_PROTOCOL mTftpDynamicCommand
 

Detailed Description

Produce "tftp" shell dynamic command.

Copyright (c) 2010 - 2017, Intel Corporation. All rights reserved.
Copyright (c) 2015, ARM Ltd. All rights reserved.

SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file TftpDynamicCommand.c.

Function Documentation

◆ TftpCommandGetHelp()

CHAR16 *EFIAPI TftpCommandGetHelp ( IN EFI_SHELL_DYNAMIC_COMMAND_PROTOCOL This,
IN CONST CHAR8 *  Language 
)

This is the command help handler function pointer callback type. This function is responsible for displaying help information for the associated command.

Parameters
[in]ThisThe instance of the EFI_SHELL_DYNAMIC_COMMAND_PROTOCOL.
[in]LanguageThe pointer to the language string to use.
Returns
string Pool allocated help string, must be freed by caller

Definition at line 52 of file TftpDynamicCommand.c.

◆ TftpCommandHandler()

SHELL_STATUS EFIAPI TftpCommandHandler ( IN EFI_SHELL_DYNAMIC_COMMAND_PROTOCOL This,
IN EFI_SYSTEM_TABLE SystemTable,
IN EFI_SHELL_PARAMETERS_PROTOCOL ShellParameters,
IN EFI_SHELL_PROTOCOL Shell 
)

This is the shell command handler function pointer callback type. This function handles the command when it is invoked in the shell.

Parameters
[in]ThisThe instance of the EFI_SHELL_DYNAMIC_COMMAND_PROTOCOL.
[in]SystemTableThe pointer to the system table.
[in]ShellParametersThe parameters associated with the command.
[in]ShellThe instance of the shell protocol used in the context of processing this command.
Returns
EFI_SUCCESS the operation was successful
other the operation failed.

Definition at line 28 of file TftpDynamicCommand.c.

◆ TftpCommandInitialize()

EFI_STATUS EFIAPI TftpCommandInitialize ( IN EFI_HANDLE  ImageHandle,
IN EFI_SYSTEM_TABLE SystemTable 
)

Entry point of Tftp Dynamic Command.

Produce the DynamicCommand protocol to handle "tftp" command.

Parameters
ImageHandleThe image handle of the process.
SystemTableThe EFI System Table pointer.
Return values
EFI_SUCCESSTftp command is executed successfully.
EFI_ABORTEDHII package was failed to initialize.
othersOther errors when executing tftp command.

Definition at line 80 of file TftpDynamicCommand.c.

◆ TftpUnload()

EFI_STATUS EFIAPI TftpUnload ( IN EFI_HANDLE  ImageHandle)

Tftp driver unload handler.

Parameters
ImageHandleThe image handle of the process.
Return values
EFI_SUCCESSThe image is unloaded.
OthersFailed to unload the image.

Definition at line 112 of file TftpDynamicCommand.c.

Variable Documentation

◆ mTftpDynamicCommand

Initial value:
= {
L"tftp",
}
CHAR16 *EFIAPI TftpCommandGetHelp(IN EFI_SHELL_DYNAMIC_COMMAND_PROTOCOL *This, IN CONST CHAR8 *Language)
SHELL_STATUS EFIAPI TftpCommandHandler(IN EFI_SHELL_DYNAMIC_COMMAND_PROTOCOL *This, IN EFI_SYSTEM_TABLE *SystemTable, IN EFI_SHELL_PARAMETERS_PROTOCOL *ShellParameters, IN EFI_SHELL_PROTOCOL *Shell)

Definition at line 60 of file TftpDynamicCommand.c.