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