MdePkg:
[mirror_edk2.git] / EdkModulePkg / Universal / ConPlatform / Dxe / ConPlatform.h
CommitLineData
fc198a79
LG
1/*++\r
2\r
3Copyright (c) 2006, Intel Corporation \r
4All rights reserved. This program and the accompanying materials \r
5are licensed and made available under the terms and conditions of the BSD License \r
6which accompanies this distribution. The full text of the license may be found at \r
7http://opensource.org/licenses/bsd-license.php \r
8 \r
9THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
10WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
11\r
12Module Name:\r
13\r
14 ConPlatform.h\r
15 \r
16Abstract:\r
17\r
18--*/\r
19\r
20#ifndef CON_MANAGE_H_\r
21#define CON_MANAGE_H_\r
22\r
fc198a79
LG
23#define VarConsoleInpDev L"ConInDev"\r
24#define VarConsoleInp L"ConIn"\r
25#define VarConsoleOutDev L"ConOutDev"\r
26#define VarConsoleOut L"ConOut"\r
27#define VarErrorOutDev L"ErrOutDev"\r
28#define VarErrorOut L"ErrOut"\r
29\r
30typedef enum {\r
31 CHECK,\r
32 APPEND,\r
33 DELETE\r
34} CONPLATFORM_VAR_OPERATION;\r
35\r
36EFI_STATUS\r
37ConPlatformDriverBindingSupported (\r
38 IN EFI_DRIVER_BINDING_PROTOCOL *This,\r
39 IN EFI_HANDLE ControllerHandle,\r
40 IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath,\r
41 IN EFI_GUID *ProtocolGuid\r
42 );\r
43\r
fc198a79
LG
44EFI_STATUS\r
45EFIAPI\r
46ConPlatformTextInDriverBindingSupported (\r
47 IN EFI_DRIVER_BINDING_PROTOCOL *This,\r
48 IN EFI_HANDLE Handle,\r
49 IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath\r
50 );\r
51\r
fc198a79
LG
52EFI_STATUS\r
53EFIAPI\r
54ConPlatformTextOutDriverBindingSupported (\r
55 IN EFI_DRIVER_BINDING_PROTOCOL *This,\r
56 IN EFI_HANDLE Handle,\r
57 IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath\r
58 );\r
59\r
fc198a79
LG
60EFI_STATUS\r
61EFIAPI\r
62ConPlatformTextInDriverBindingStart (\r
63 IN EFI_DRIVER_BINDING_PROTOCOL *This,\r
64 IN EFI_HANDLE Handle,\r
65 IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath\r
66 );\r
67\r
fc198a79
LG
68EFI_STATUS\r
69EFIAPI\r
70ConPlatformTextOutDriverBindingStart (\r
71 IN EFI_DRIVER_BINDING_PROTOCOL *This,\r
72 IN EFI_HANDLE Handle,\r
73 IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath\r
74 );\r
75\r
fc198a79
LG
76EFI_STATUS\r
77EFIAPI\r
06fb8ffd 78ConPlatformTextInDriverBindingStop (\r
79 IN EFI_DRIVER_BINDING_PROTOCOL *This,\r
80 IN EFI_HANDLE Handle,\r
81 IN UINTN NumberOfChildren,\r
82 IN EFI_HANDLE *ChildHandleBuffer\r
83 );\r
84\r
85EFI_STATUS\r
86EFIAPI\r
87ConPlatformTextOutDriverBindingStop (\r
fc198a79
LG
88 IN EFI_DRIVER_BINDING_PROTOCOL *This,\r
89 IN EFI_HANDLE Handle,\r
90 IN UINTN NumberOfChildren,\r
91 IN EFI_HANDLE *ChildHandleBuffer\r
92 );\r
93\r
94VOID\r
95ConPlatformUnInstallProtocol (\r
96 IN EFI_DRIVER_BINDING_PROTOCOL *This,\r
97 IN EFI_HANDLE Handle,\r
98 IN EFI_GUID *ProtocolGuid\r
99 );\r
100\r
101VOID *\r
102ConPlatformGetVariable (\r
103 IN CHAR16 *Name\r
104 );\r
105\r
106EFI_STATUS\r
107ConPlatformMatchDevicePaths (\r
108 IN EFI_DEVICE_PATH_PROTOCOL * Multi,\r
109 IN EFI_DEVICE_PATH_PROTOCOL * Single,\r
110 IN EFI_DEVICE_PATH_PROTOCOL **NewDevicePath OPTIONAL,\r
111 IN BOOLEAN Delete\r
112 );\r
113\r
114EFI_STATUS\r
115ConPlatformUpdateDeviceVariable (\r
116 IN CHAR16 *VariableName,\r
117 IN EFI_DEVICE_PATH_PROTOCOL *DevicePath,\r
118 IN CONPLATFORM_VAR_OPERATION Operation\r
119 );\r
120\r
121BOOLEAN\r
122IsHotPlugDevice (\r
123 EFI_HANDLE DriverBindingHandle,\r
124 EFI_HANDLE ControllerHandle\r
125 );\r
126\r
127#endif\r