TianoCore EDK2 master
Loading...
Searching...
No Matches
ConPlatform.h
Go to the documentation of this file.
1
9#ifndef _CON_PLATFORM_H_
10#define _CON_PLATFORM_H_
11
12#include <Uefi.h>
13
15#include <Protocol/DevicePath.h>
17#include <Protocol/PciIo.h>
18#include <Protocol/UsbIo.h>
20
21#include <Guid/GlobalVariable.h>
25
26#include <Library/DebugLib.h>
28#include <Library/UefiLib.h>
35
36//
37// Driver Binding Externs
38//
39extern EFI_DRIVER_BINDING_PROTOCOL gConPlatformTextInDriverBinding;
40extern EFI_COMPONENT_NAME_PROTOCOL gConPlatformComponentName;
41extern EFI_COMPONENT_NAME2_PROTOCOL gConPlatformComponentName2;
42extern EFI_DRIVER_BINDING_PROTOCOL gConPlatformTextOutDriverBinding;
43extern EFI_COMPONENT_NAME_PROTOCOL gConPlatformComponentName;
44extern EFI_COMPONENT_NAME2_PROTOCOL gConPlatformComponentName2;
45
46typedef enum {
47 Check,
48 Append,
49 Delete
50} CONPLATFORM_VAR_OPERATION;
51
66 IN EFI_HANDLE ControllerHandle,
67 IN EFI_GUID *ProtocolGuid
68 );
69
83EFIAPI
86 IN EFI_HANDLE Handle,
87 IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath OPTIONAL
88 );
89
103EFIAPI
106 IN EFI_HANDLE Handle,
107 IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath OPTIONAL
108 );
109
129EFIAPI
132 IN EFI_HANDLE Handle,
133 IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath
134 );
135
156EFIAPI
159 IN EFI_HANDLE Handle,
160 IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath
161 );
162
178EFIAPI
181 IN EFI_HANDLE Handle,
182 IN UINTN NumberOfChildren,
183 IN EFI_HANDLE *ChildHandleBuffer
184 );
185
201EFIAPI
204 IN EFI_HANDLE Handle,
205 IN UINTN NumberOfChildren,
206 IN EFI_HANDLE *ChildHandleBuffer
207 );
208
217VOID
220 IN EFI_HANDLE Handle,
221 IN EFI_GUID *ProtocolGuid
222 );
223
235VOID *
237 IN CHAR16 *Name
238 );
239
265 OUT EFI_DEVICE_PATH_PROTOCOL **NewDevicePath OPTIONAL,
266 IN BOOLEAN Delete
267 );
268
284 IN CHAR16 *VariableName,
285 IN EFI_DEVICE_PATH_PROTOCOL *DevicePath,
286 IN CONPLATFORM_VAR_OPERATION Operation
287 );
288
289//
290// EFI Component Name Functions
291//
292
328EFIAPI
331 IN CHAR8 *Language,
332 OUT CHAR16 **DriverName
333 );
334
394EFIAPI
397 IN EFI_HANDLE ControllerHandle,
398 IN EFI_HANDLE ChildHandle OPTIONAL,
399 IN CHAR8 *Language,
400 OUT CHAR16 **ControllerName
401 );
402
413BOOLEAN
415 IN EFI_DEVICE_PATH_PROTOCOL *DevicePath
416 );
417
418#endif
UINT64 UINTN
EFI_STATUS EFIAPI ConPlatformTextInDriverBindingSupported(IN EFI_DRIVER_BINDING_PROTOCOL *This, IN EFI_HANDLE Handle, IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath OPTIONAL)
Definition: ConPlatform.c:97
EFI_STATUS EFIAPI ConPlatformComponentNameGetControllerName(IN EFI_COMPONENT_NAME_PROTOCOL *This, IN EFI_HANDLE ControllerHandle, IN EFI_HANDLE ChildHandle OPTIONAL, IN CHAR8 *Language, OUT CHAR16 **ControllerName)
EFI_STATUS EFIAPI ConPlatformTextInDriverBindingStop(IN EFI_DRIVER_BINDING_PROTOCOL *This, IN EFI_HANDLE Handle, IN UINTN NumberOfChildren, IN EFI_HANDLE *ChildHandleBuffer)
Definition: ConPlatform.c:470
VOID * ConPlatformGetVariable(IN CHAR16 *Name)
Definition: ConPlatform.c:661
EFI_STATUS EFIAPI ConPlatformTextInDriverBindingStart(IN EFI_DRIVER_BINDING_PROTOCOL *This, IN EFI_HANDLE Handle, IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath)
Definition: ConPlatform.c:219
EFI_STATUS EFIAPI ConPlatformComponentNameGetDriverName(IN EFI_COMPONENT_NAME_PROTOCOL *This, IN CHAR8 *Language, OUT CHAR16 **DriverName)
Definition: ComponentName.c:76
VOID ConPlatformUnInstallProtocol(IN EFI_DRIVER_BINDING_PROTOCOL *This, IN EFI_HANDLE Handle, IN EFI_GUID *ProtocolGuid)
Definition: ConPlatform.c:617
EFI_STATUS EFIAPI ConPlatformTextOutDriverBindingStart(IN EFI_DRIVER_BINDING_PROTOCOL *This, IN EFI_HANDLE Handle, IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath)
Definition: ConPlatform.c:326
EFI_STATUS ConPlatformMatchDevicePaths(IN EFI_DEVICE_PATH_PROTOCOL *Multi, IN EFI_DEVICE_PATH_PROTOCOL *Single, OUT EFI_DEVICE_PATH_PROTOCOL **NewDevicePath OPTIONAL, IN BOOLEAN Delete)
Definition: ConPlatform.c:1076
EFI_STATUS EFIAPI ConPlatformTextOutDriverBindingSupported(IN EFI_DRIVER_BINDING_PROTOCOL *This, IN EFI_HANDLE Handle, IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath OPTIONAL)
Definition: ConPlatform.c:124
EFI_STATUS ConPlatformDriverBindingSupported(IN EFI_DRIVER_BINDING_PROTOCOL *This, IN EFI_HANDLE ControllerHandle, IN EFI_GUID *ProtocolGuid)
Definition: ConPlatform.c:149
EFI_STATUS EFIAPI ConPlatformTextOutDriverBindingStop(IN EFI_DRIVER_BINDING_PROTOCOL *This, IN EFI_HANDLE Handle, IN UINTN NumberOfChildren, IN EFI_HANDLE *ChildHandleBuffer)
Definition: ConPlatform.c:543
EFI_STATUS ConPlatformUpdateDeviceVariable(IN CHAR16 *VariableName, IN EFI_DEVICE_PATH_PROTOCOL *DevicePath, IN CONPLATFORM_VAR_OPERATION Operation)
Definition: ConPlatform.c:1171
BOOLEAN ConPlatformUpdateGopCandidate(IN EFI_DEVICE_PATH_PROTOCOL *DevicePath)
Definition: ConPlatform.c:1276
#define IN
Definition: Base.h:279
#define OUT
Definition: Base.h:284
RETURN_STATUS EFI_STATUS
Definition: UefiBaseType.h:29
VOID * EFI_HANDLE
Definition: UefiBaseType.h:33
Definition: Base.h:213