Move ConPlatform module from EdkNT32 package to EdkModulePkg, and remove EdkPeCoffLoa...
[mirror_edk2.git] / EdkNt32Pkg / Dxe / ConPlatform / ConPlatform.h
CommitLineData
878ddf1f 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
23//\r
24//\r
25//\r
26#define VarConsoleInpDev L"ConInDev"\r
27#define VarConsoleInp L"ConIn"\r
28#define VarConsoleOutDev L"ConOutDev"\r
29#define VarConsoleOut L"ConOut"\r
30#define VarErrorOutDev L"ErrOutDev"\r
31#define VarErrorOut L"ErrOut"\r
32\r
33typedef enum {\r
34 CHECK,\r
35 APPEND,\r
36 DELETE\r
37} CONPLATFORM_VAR_OPERATION;\r
38\r
39EFI_STATUS\r
40ConPlatformDriverBindingSupported (\r
41 IN EFI_DRIVER_BINDING_PROTOCOL *This,\r
42 IN EFI_HANDLE ControllerHandle,\r
43 IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath,\r
44 IN EFI_GUID *ProtocolGuid\r
45 );\r
46\r
47STATIC\r
48EFI_STATUS\r
49EFIAPI\r
50ConPlatformTextInDriverBindingSupported (\r
51 IN EFI_DRIVER_BINDING_PROTOCOL *This,\r
52 IN EFI_HANDLE Handle,\r
53 IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath\r
54 );\r
55\r
56STATIC\r
57EFI_STATUS\r
58EFIAPI\r
59ConPlatformTextOutDriverBindingSupported (\r
60 IN EFI_DRIVER_BINDING_PROTOCOL *This,\r
61 IN EFI_HANDLE Handle,\r
62 IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath\r
63 );\r
64\r
65STATIC\r
66EFI_STATUS\r
67EFIAPI\r
68ConPlatformTextInDriverBindingStart (\r
69 IN EFI_DRIVER_BINDING_PROTOCOL *This,\r
70 IN EFI_HANDLE Handle,\r
71 IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath\r
72 );\r
73\r
74STATIC\r
75EFI_STATUS\r
76EFIAPI\r
77ConPlatformTextOutDriverBindingStart (\r
78 IN EFI_DRIVER_BINDING_PROTOCOL *This,\r
79 IN EFI_HANDLE Handle,\r
80 IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath\r
81 );\r
82\r
83STATIC\r
84EFI_STATUS\r
85EFIAPI\r
86ConPlatformDriverBindingStop (\r
87 IN EFI_DRIVER_BINDING_PROTOCOL *This,\r
88 IN EFI_HANDLE Handle,\r
89 IN UINTN NumberOfChildren,\r
90 IN EFI_HANDLE *ChildHandleBuffer\r
91 );\r
92\r
93VOID\r
94ConPlatformUnInstallProtocol (\r
95 IN EFI_DRIVER_BINDING_PROTOCOL *This,\r
96 IN EFI_HANDLE Handle,\r
97 IN EFI_GUID *ProtocolGuid\r
98 );\r
99\r
100VOID *\r
101ConPlatformGetVariable (\r
102 IN CHAR16 *Name\r
103 );\r
104\r
105EFI_STATUS\r
106ConPlatformMatchDevicePaths (\r
107 IN EFI_DEVICE_PATH_PROTOCOL * Multi,\r
108 IN EFI_DEVICE_PATH_PROTOCOL * Single,\r
109 IN EFI_DEVICE_PATH_PROTOCOL **NewDevicePath OPTIONAL,\r
110 IN BOOLEAN Delete\r
111 );\r
112\r
113EFI_STATUS\r
114ConPlatformUpdateDeviceVariable (\r
115 IN CHAR16 *VariableName,\r
116 IN EFI_DEVICE_PATH_PROTOCOL *DevicePath,\r
117 IN CONPLATFORM_VAR_OPERATION Operation\r
118 );\r
119\r
120BOOLEAN\r
121IsHotPlugDevice (\r
122 EFI_HANDLE DriverBindingHandle,\r
123 EFI_HANDLE ControllerHandle\r
124 );\r
125\r
126#endif\r