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