\r
--*/\r
\r
-#include <Uefi.h>\r
-\r
-#include "ConPlatform.h"\r
-\r
-\r
-//\r
-// The protocols, PPI and GUID defintions for this module\r
-//\r
-#include <Protocol/SimpleTextOut.h>\r
-#include <Guid/GlobalVariable.h>\r
-#include <Guid/ConsoleInDevice.h>\r
-#include <Protocol/DevicePath.h>\r
-#include <Protocol/SimpleTextIn.h>\r
-#include <Guid/HotPlugDevice.h>\r
-#include <Guid/StandardErrorDevice.h>\r
-#include <Guid/ConsoleOutDevice.h>\r
-//\r
-// The Library classes this module consumes\r
-//\r
-#include <Library/DebugLib.h>\r
-#include <Library/UefiDriverEntryPoint.h>\r
-#include <Library/UefiLib.h>\r
-#include <Library/BaseMemoryLib.h>\r
-#include <Library/UefiBootServicesTableLib.h>\r
-#include <Library/UefiRuntimeServicesTableLib.h>\r
-#include <Library/DevicePathLib.h>\r
-#include <Library/MemoryAllocationLib.h>\r
-//\r
-// Driver Binding Externs\r
-//\r
-extern EFI_DRIVER_BINDING_PROTOCOL gConPlatformTextInDriverBinding;\r
-extern EFI_COMPONENT_NAME_PROTOCOL gConPlatformComponentName;\r
-extern EFI_DRIVER_BINDING_PROTOCOL gConPlatformTextOutDriverBinding;\r
-extern EFI_COMPONENT_NAME_PROTOCOL gConPlatformComponentName;\r
+#include <ConPlatform.h>\r
+\r
\r
EFI_DRIVER_BINDING_PROTOCOL gConPlatformTextInDriverBinding = {\r
ConPlatformTextInDriverBindingSupported,\r
// Append the device path to the ConInDev environment variable\r
//\r
ConPlatformUpdateDeviceVariable (\r
- VarConsoleInpDev,\r
+ L"ConInDev",\r
DevicePath,\r
APPEND\r
);\r
// then install EfiConsoleInDeviceGuid onto ControllerHandle\r
//\r
Status = ConPlatformUpdateDeviceVariable (\r
- VarConsoleInp,\r
+ L"ConIn",\r
DevicePath,\r
CHECK\r
);\r
// Append the device path to the ConOutDev environment variable\r
//\r
ConPlatformUpdateDeviceVariable (\r
- VarConsoleOutDev,\r
+ L"ConOutDev",\r
DevicePath,\r
APPEND\r
);\r
// Append the device path to the StdErrDev environment variable\r
//\r
ConPlatformUpdateDeviceVariable (\r
- VarErrorOutDev,\r
+ L"ErrOutDev",\r
DevicePath,\r
APPEND\r
);\r
// then install EfiConsoleOutDeviceGuid onto ControllerHandle\r
//\r
Status = ConPlatformUpdateDeviceVariable (\r
- VarConsoleOut,\r
+ L"ConOut",\r
DevicePath,\r
CHECK\r
);\r
// Remove DevicePath from ConInDev\r
//\r
ConPlatformUpdateDeviceVariable (\r
- VarConsoleInpDev,\r
+ L"ConInDev",\r
DevicePath,\r
DELETE\r
);\r
// Remove DevicePath from ConOutDev, and StdErrDev\r
//\r
ConPlatformUpdateDeviceVariable (\r
- VarConsoleOutDev,\r
+ L"ConOutDev",\r
DevicePath,\r
DELETE\r
);\r
ConPlatformUpdateDeviceVariable (\r
- VarErrorOutDev,\r
+ L"ErrOutDev",\r
DevicePath,\r
DELETE\r
);\r