git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@3666
6f19259b-4bc3-4df7-8a09-
765794883524
// Append the device path to the ConInDev environment variable\r
//\r
ConPlatformUpdateDeviceVariable (\r
// Append the device path to the ConInDev environment variable\r
//\r
ConPlatformUpdateDeviceVariable (\r
DevicePath,\r
APPEND\r
);\r
DevicePath,\r
APPEND\r
);\r
// then install EfiConsoleInDeviceGuid onto ControllerHandle\r
//\r
Status = ConPlatformUpdateDeviceVariable (\r
// then install EfiConsoleInDeviceGuid onto ControllerHandle\r
//\r
Status = ConPlatformUpdateDeviceVariable (\r
DevicePath,\r
CHECK\r
);\r
DevicePath,\r
CHECK\r
);\r
// Append the device path to the ConOutDev environment variable\r
//\r
ConPlatformUpdateDeviceVariable (\r
// Append the device path to the ConOutDev environment variable\r
//\r
ConPlatformUpdateDeviceVariable (\r
DevicePath,\r
APPEND\r
);\r
DevicePath,\r
APPEND\r
);\r
// Append the device path to the StdErrDev environment variable\r
//\r
ConPlatformUpdateDeviceVariable (\r
// Append the device path to the StdErrDev environment variable\r
//\r
ConPlatformUpdateDeviceVariable (\r
DevicePath,\r
APPEND\r
);\r
DevicePath,\r
APPEND\r
);\r
// then install EfiConsoleOutDeviceGuid onto ControllerHandle\r
//\r
Status = ConPlatformUpdateDeviceVariable (\r
// then install EfiConsoleOutDeviceGuid onto ControllerHandle\r
//\r
Status = ConPlatformUpdateDeviceVariable (\r
DevicePath,\r
CHECK\r
);\r
DevicePath,\r
CHECK\r
);\r
// Remove DevicePath from ConInDev\r
//\r
ConPlatformUpdateDeviceVariable (\r
// Remove DevicePath from ConInDev\r
//\r
ConPlatformUpdateDeviceVariable (\r
DevicePath,\r
DELETE\r
);\r
DevicePath,\r
DELETE\r
);\r
// Remove DevicePath from ConOutDev, and StdErrDev\r
//\r
ConPlatformUpdateDeviceVariable (\r
// Remove DevicePath from ConOutDev, and StdErrDev\r
//\r
ConPlatformUpdateDeviceVariable (\r
DevicePath,\r
DELETE\r
);\r
ConPlatformUpdateDeviceVariable (\r
DevicePath,\r
DELETE\r
);\r
ConPlatformUpdateDeviceVariable (\r
DevicePath,\r
DELETE\r
);\r
DevicePath,\r
DELETE\r
);\r
extern EFI_DRIVER_BINDING_PROTOCOL gConPlatformTextOutDriverBinding;\r
extern EFI_COMPONENT_NAME_PROTOCOL gConPlatformComponentName;\r
\r
extern EFI_DRIVER_BINDING_PROTOCOL gConPlatformTextOutDriverBinding;\r
extern EFI_COMPONENT_NAME_PROTOCOL gConPlatformComponentName;\r
\r
-#define VarConsoleInpDev L"ConInDev"\r
-#define VarConsoleInp L"ConIn"\r
-#define VarConsoleOutDev L"ConOutDev"\r
-#define VarConsoleOut L"ConOut"\r
-#define VarErrorOutDev L"ErrOutDev"\r
-#define VarErrorOut L"ErrOut"\r
\r
typedef enum {\r
CHECK,\r
\r
typedef enum {\r
CHECK,\r
EFI_OPEN_PROTOCOL_TEST_PROTOCOL\r
);\r
if (EFI_ERROR (Status)) {\r
EFI_OPEN_PROTOCOL_TEST_PROTOCOL\r
);\r
if (EFI_ERROR (Status)) {\r
- TerminalUpdateConsoleDevVariable ((CHAR16 *)VarConsoleInpDev, ParentDevicePath);\r
- TerminalUpdateConsoleDevVariable ((CHAR16 *)VarConsoleOutDev, ParentDevicePath);\r
- TerminalUpdateConsoleDevVariable ((CHAR16 *)VarErrorOutDev, ParentDevicePath);\r
+ TerminalUpdateConsoleDevVariable (L"ConInDev", ParentDevicePath);\r
+ TerminalUpdateConsoleDevVariable ((L"ConOutDev", ParentDevicePath);\r
+ TerminalUpdateConsoleDevVariable (L"ErrOutDev", ParentDevicePath);\r
// Remove Parent Device Path from\r
// the Console Device Environment Variables\r
//\r
// Remove Parent Device Path from\r
// the Console Device Environment Variables\r
//\r
- TerminalRemoveConsoleDevVariable ((CHAR16 *)VarConsoleInpDev, ParentDevicePath);\r
- TerminalRemoveConsoleDevVariable ((CHAR16 *)VarConsoleOutDev, ParentDevicePath);\r
- TerminalRemoveConsoleDevVariable ((CHAR16 *)VarErrorOutDev, ParentDevicePath);\r
+ TerminalRemoveConsoleDevVariable (L"ConInDev", ParentDevicePath);\r
+ TerminalRemoveConsoleDevVariable (L"ConOutDev", ParentDevicePath);\r
+ TerminalRemoveConsoleDevVariable (L"ErrOutDev", ParentDevicePath);\r
\r
//\r
// Uninstall the Terminal Driver's GUID Tag from the Serial controller\r
\r
//\r
// Uninstall the Terminal Driver's GUID Tag from the Serial controller\r
CHAR8 Ascii;\r
} UNICODE_TO_CHAR;\r
\r
CHAR8 Ascii;\r
} UNICODE_TO_CHAR;\r
\r
-#define VarConsoleInpDev L"ConInDev"\r
-#define VarConsoleOutDev L"ConOutDev"\r
-#define VarErrorOutDev L"ErrOutDev"\r
-\r
//\r
// Global Variables\r
//\r
//\r
// Global Variables\r
//\r