cedda9e0d173bd622f0adc3dc89b5fcaeb9d193e
[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 ConPlatformDriverBindingStop (
79 IN EFI_DRIVER_BINDING_PROTOCOL *This,
80 IN EFI_HANDLE Handle,
81 IN UINTN NumberOfChildren,
82 IN EFI_HANDLE *ChildHandleBuffer
83 );
84
85 VOID
86 ConPlatformUnInstallProtocol (
87 IN EFI_DRIVER_BINDING_PROTOCOL *This,
88 IN EFI_HANDLE Handle,
89 IN EFI_GUID *ProtocolGuid
90 );
91
92 VOID *
93 ConPlatformGetVariable (
94 IN CHAR16 *Name
95 );
96
97 EFI_STATUS
98 ConPlatformMatchDevicePaths (
99 IN EFI_DEVICE_PATH_PROTOCOL * Multi,
100 IN EFI_DEVICE_PATH_PROTOCOL * Single,
101 IN EFI_DEVICE_PATH_PROTOCOL **NewDevicePath OPTIONAL,
102 IN BOOLEAN Delete
103 );
104
105 EFI_STATUS
106 ConPlatformUpdateDeviceVariable (
107 IN CHAR16 *VariableName,
108 IN EFI_DEVICE_PATH_PROTOCOL *DevicePath,
109 IN CONPLATFORM_VAR_OPERATION Operation
110 );
111
112 BOOLEAN
113 IsHotPlugDevice (
114 EFI_HANDLE DriverBindingHandle,
115 EFI_HANDLE ControllerHandle
116 );
117
118 #endif