TianoCore EDK2 master
Loading...
Searching...
No Matches
ShellProtocol.h
Go to the documentation of this file.
1
11#ifndef _SHELL_PROTOCOL_HEADER_
12#define _SHELL_PROTOCOL_HEADER_
13
14#include "Shell.h"
15
16typedef struct {
17 LIST_ENTRY Link;
18 EFI_SHELL_PROTOCOL *Interface;
19 EFI_HANDLE Handle;
21
22// flags values...
23#define SHELL_MAP_FLAGS_CONSIST BIT1
24
41 IN OUT EFI_SHELL_PROTOCOL **NewShell
42 );
43
56 IN OUT EFI_SHELL_PROTOCOL *NewShell
57 );
58
68 IN OUT EFI_SHELL_PROTOCOL *NewShell
69 );
70
89EFIAPI
91 IN CONST EFI_DEVICE_PATH_PROTOCOL *DevicePath OPTIONAL,
92 IN CONST CHAR16 *Mapping
93 );
94
109EFIAPI
111 IN CONST CHAR16 *Mapping
112 );
113
131CONST CHAR16 *
132EFIAPI
134 IN OUT EFI_DEVICE_PATH_PROTOCOL **DevicePath
135 );
136
150CHAR16 *
151EFIAPI
154 );
155
168EFIAPI
170 IN CONST CHAR16 *Path
171 );
172
210EFIAPI
212 IN EFI_HANDLE DeviceHandle,
213 IN EFI_SHELL_DEVICE_NAME_FLAGS Flags,
214 IN CHAR8 *Language,
215 OUT CHAR16 **BestDeviceName
216 );
217
234EFIAPI
236 IN EFI_HANDLE DeviceHandle,
237 OUT SHELL_FILE_HANDLE *FileHandle
238 );
239
257EFIAPI
259 IN EFI_DEVICE_PATH_PROTOCOL *DevicePath,
260 OUT SHELL_FILE_HANDLE *FileHandle
261 );
262
270BOOLEAN
271EFIAPI
273 VOID
274 );
275
291 IN OUT EFI_DEVICE_PATH_PROTOCOL *DevicePath2,
292 OUT SHELL_FILE_HANDLE *FileHandle,
293 IN UINT64 OpenMode,
294 IN UINT64 Attributes OPTIONAL
295 );
296
334EFIAPI
336 IN CONST CHAR16 *FileName,
337 IN UINT64 FileAttribs,
338 OUT SHELL_FILE_HANDLE *FileHandle
339 );
340
394EFIAPI
396 IN CONST CHAR16 *FileName,
397 OUT SHELL_FILE_HANDLE *FileHandle,
398 IN UINT64 OpenMode
399 );
400
414EFIAPI
416 IN CONST CHAR16 *FileName
417 );
418
422VOID
423EFIAPI
425 VOID
426 );
427
431VOID
432EFIAPI
434 VOID
435 );
436
460 IN CONST EFI_HANDLE *ParentImageHandle,
462 IN CONST CHAR16 *CommandLine OPTIONAL,
463 IN CONST CHAR16 **Environment OPTIONAL,
464 OUT EFI_STATUS *StartImageStatus OPTIONAL
465 );
466
499EFIAPI
501 IN EFI_HANDLE *ParentImageHandle,
502 IN CHAR16 *CommandLine OPTIONAL,
503 IN CHAR16 **Environment OPTIONAL,
504 OUT EFI_STATUS *StatusCode OPTIONAL
505 );
506
515VOID
517 IN EFI_SHELL_FILE_INFO *FileListNode
518 );
519
533EFIAPI
535 IN EFI_SHELL_FILE_INFO **FileList
536 );
537
549EFIAPI
551 IN EFI_SHELL_FILE_INFO **FileList
552 );
553
567 IN CONST CHAR16 *BasePath,
568 IN CONST EFI_STATUS Status,
569 IN CONST CHAR16 *FileName,
570 IN CONST SHELL_FILE_HANDLE Handle,
572 );
573
588EFIAPI
590 IN SHELL_FILE_HANDLE FileDirHandle,
591 OUT EFI_SHELL_FILE_INFO **FileList
592 );
593
621EFIAPI
623 IN CONST CHAR16 *FilePattern,
624 OUT EFI_SHELL_FILE_INFO **FileList
625 );
626
643EFIAPI
645 IN CHAR16 *Path,
646 IN UINT64 OpenMode,
647 IN OUT EFI_SHELL_FILE_INFO **FileList
648 );
649
661CONST CHAR16 *
662EFIAPI
664 IN CONST CHAR16 *Name
665 );
666
689EFIAPI
691 IN CONST CHAR16 *Name,
692 IN CONST CHAR16 *Value,
693 IN BOOLEAN Volatile
694 );
695
710CONST CHAR16 *
711EFIAPI
713 IN CONST CHAR16 *FileSystemMapping OPTIONAL
714 );
715
740EFIAPI
742 IN CONST CHAR16 *FileSystem OPTIONAL,
743 IN CONST CHAR16 *Dir
744 );
745
772EFIAPI
774 IN CONST CHAR16 *Command,
775 IN CONST CHAR16 *Sections OPTIONAL,
776 OUT CHAR16 **HelpText
777 );
778
787BOOLEAN
788EFIAPI
790 VOID
791 );
792
801BOOLEAN
802EFIAPI
804 VOID
805 );
806
824CONST CHAR16 *
825EFIAPI
827 IN CONST CHAR16 *Command,
828 OUT BOOLEAN *Volatile OPTIONAL
829 );
830
849 IN CONST CHAR16 *Command,
850 IN CONST CHAR16 *Alias OPTIONAL,
851 IN BOOLEAN Volatile
852 );
853
875EFIAPI
877 IN CONST CHAR16 *Command,
878 IN CONST CHAR16 *Alias OPTIONAL,
879 IN BOOLEAN Replace,
880 IN BOOLEAN Volatile
881 );
882
891VOID
893 IN EFI_SHELL_FILE_INFO *FileListNode
894 );
895
908 IN CONST CHAR16 *Name,
909 IN CONST CHAR16 *Value,
910 IN BOOLEAN Volatile
911 );
912
922 VOID
923 );
924
933EFIAPI
935 IN EFI_KEY_DATA *KeyData
936 );
937
938#endif //_SHELL_PROTOCOL_HEADER_
#define CONST
Definition: Base.h:259
#define IN
Definition: Base.h:279
#define OUT
Definition: Base.h:284
EFI_STATUS CleanUpShellProtocol(IN OUT EFI_SHELL_PROTOCOL *NewShell)
CONST CHAR16 *EFIAPI EfiShellGetMapFromDevicePath(IN OUT EFI_DEVICE_PATH_PROTOCOL **DevicePath)
BOOLEAN EFIAPI EfiShellBatchIsActive(VOID)
BOOLEAN EFIAPI EfiShellGetPageBreak(VOID)
EFI_STATUS EFIAPI EfiShellOpenFileList(IN CHAR16 *Path, IN UINT64 OpenMode, IN OUT EFI_SHELL_FILE_INFO **FileList)
VOID InternalFreeShellFileInfoNode(IN EFI_SHELL_FILE_INFO *FileListNode)
EFI_STATUS EFIAPI NotificationFunction(IN EFI_KEY_DATA *KeyData)
Definition: DriverSample.c:117
CONST CHAR16 *EFIAPI EfiShellGetEnv(IN CONST CHAR16 *Name)
EFI_STATUS EFIAPI EfiShellRemoveDupInFileList(IN EFI_SHELL_FILE_INFO **FileList)
VOID EFIAPI EfiShellEnablePageBreak(VOID)
EFI_STATUS EFIAPI EfiShellCreateFile(IN CONST CHAR16 *FileName, IN UINT64 FileAttribs, OUT SHELL_FILE_HANDLE *FileHandle)
EFI_DEVICE_PATH_PROTOCOL *EFIAPI EfiShellGetDevicePathFromFilePath(IN CONST CHAR16 *Path)
EFI_STATUS EFIAPI EfiShellDeleteFileByName(IN CONST CHAR16 *FileName)
CONST EFI_DEVICE_PATH_PROTOCOL *EFIAPI EfiShellGetDevicePathFromMap(IN CONST CHAR16 *Mapping)
EFI_STATUS InternalSetAlias(IN CONST CHAR16 *Command, IN CONST CHAR16 *Alias OPTIONAL, IN BOOLEAN Volatile)
VOID FreeShellFileInfoNode(IN EFI_SHELL_FILE_INFO *FileListNode)
CHAR16 *EFIAPI EfiShellGetFilePathFromDevicePath(IN CONST EFI_DEVICE_PATH_PROTOCOL *Path)
VOID EFIAPI EfiShellDisablePageBreak(VOID)
EFI_SHELL_FILE_INFO * CreateAndPopulateShellFileInfo(IN CONST CHAR16 *BasePath, IN CONST EFI_STATUS Status, IN CONST CHAR16 *FileName, IN CONST SHELL_FILE_HANDLE Handle, IN CONST EFI_FILE_INFO *Info)
EFI_STATUS EFIAPI EfiShellSetCurDir(IN CONST CHAR16 *FileSystem OPTIONAL, IN CONST CHAR16 *Dir)
EFI_STATUS EFIAPI EfiShellOpenFileByName(IN CONST CHAR16 *FileName, OUT SHELL_FILE_HANDLE *FileHandle, IN UINT64 OpenMode)
EFI_STATUS EFIAPI EfiShellSetEnv(IN CONST CHAR16 *Name, IN CONST CHAR16 *Value, IN BOOLEAN Volatile)
EFI_STATUS EFIAPI EfiShellOpenRootByHandle(IN EFI_HANDLE DeviceHandle, OUT SHELL_FILE_HANDLE *FileHandle)
BOOLEAN EFIAPI EfiShellIsRootShell(VOID)
EFI_STATUS EFIAPI EfiShellExecute(IN EFI_HANDLE *ParentImageHandle, IN CHAR16 *CommandLine OPTIONAL, IN CHAR16 **Environment OPTIONAL, OUT EFI_STATUS *StatusCode OPTIONAL)
EFI_STATUS EFIAPI EfiShellFreeFileList(IN EFI_SHELL_FILE_INFO **FileList)
EFI_STATUS EFIAPI EfiShellFindFilesInDir(IN SHELL_FILE_HANDLE FileDirHandle, OUT EFI_SHELL_FILE_INFO **FileList)
CONST CHAR16 *EFIAPI EfiShellGetCurDir(IN CONST CHAR16 *FileSystemMapping OPTIONAL)
EFI_STATUS InternalShellExecuteDevicePath(IN CONST EFI_HANDLE *ParentImageHandle, IN CONST EFI_DEVICE_PATH_PROTOCOL *DevicePath, IN CONST CHAR16 *CommandLine OPTIONAL, IN CONST CHAR16 **Environment OPTIONAL, OUT EFI_STATUS *StartImageStatus OPTIONAL)
EFI_STATUS InternalEfiShellSetEnv(IN CONST CHAR16 *Name, IN CONST CHAR16 *Value, IN BOOLEAN Volatile)
EFI_STATUS EFIAPI EfiShellGetDeviceName(IN EFI_HANDLE DeviceHandle, IN EFI_SHELL_DEVICE_NAME_FLAGS Flags, IN CHAR8 *Language, OUT CHAR16 **BestDeviceName)
EFI_STATUS InternalOpenFileDevicePath(IN OUT EFI_DEVICE_PATH_PROTOCOL *DevicePath2, OUT SHELL_FILE_HANDLE *FileHandle, IN UINT64 OpenMode, IN UINT64 Attributes OPTIONAL)
EFI_STATUS EFIAPI EfiShellSetAlias(IN CONST CHAR16 *Command, IN CONST CHAR16 *Alias OPTIONAL, IN BOOLEAN Replace, IN BOOLEAN Volatile)
EFI_STATUS EFIAPI EfiShellGetHelpText(IN CONST CHAR16 *Command, IN CONST CHAR16 *Sections OPTIONAL, OUT CHAR16 **HelpText)
EFI_STATUS EFIAPI EfiShellFindFiles(IN CONST CHAR16 *FilePattern, OUT EFI_SHELL_FILE_INFO **FileList)
EFI_STATUS CreatePopulateInstallShellProtocol(IN OUT EFI_SHELL_PROTOCOL **NewShell)
EFI_STATUS InernalEfiShellStartMonitor(VOID)
EFI_STATUS EFIAPI EfiShellSetMap(IN CONST EFI_DEVICE_PATH_PROTOCOL *DevicePath OPTIONAL, IN CONST CHAR16 *Mapping)
EFI_STATUS EFIAPI EfiShellOpenRoot(IN EFI_DEVICE_PATH_PROTOCOL *DevicePath, OUT SHELL_FILE_HANDLE *FileHandle)
CONST CHAR16 *EFIAPI EfiShellGetAlias(IN CONST CHAR16 *Command, OUT BOOLEAN *Volatile OPTIONAL)
EFI_STATUS CleanUpShellEnvironment(IN OUT EFI_SHELL_PROTOCOL *NewShell)
RETURN_STATUS EFI_STATUS
Definition: UefiBaseType.h:29
VOID * EFI_HANDLE
Definition: UefiBaseType.h:33