Update for Meta data.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7361 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -317,7 +317,7 @@ ConPlatformTextInDriverBindingStart (
|
||||
Device GUID on ControllerHandle.
|
||||
|
||||
If this devcie is not one hot-plug devce, append its device path into the
|
||||
console environment variables ConOutDev, StdErrDev.
|
||||
console environment variables ConOutDev, ErrOutDev.
|
||||
|
||||
@param This Protocol instance pointer.
|
||||
@param ControllerHandle Handle of device to bind driver to
|
||||
@@ -374,7 +374,7 @@ ConPlatformTextOutDriverBindingStart (
|
||||
}
|
||||
//
|
||||
// Check the device handle, if it is a hot plug device,
|
||||
// do not put the device path into ConOutDev and StdErrDev,
|
||||
// do not put the device path into ConOutDev and ErrOutDev,
|
||||
// and install gEfiConsoleOutDeviceGuid to the device handle directly.
|
||||
// The policy is, make hot plug device plug in and play immediately.
|
||||
//
|
||||
@@ -396,7 +396,7 @@ ConPlatformTextOutDriverBindingStart (
|
||||
APPEND
|
||||
);
|
||||
//
|
||||
// Then append the device path to the StdErrDev environment variable
|
||||
// Then append the device path to the ErrOutDev environment variable
|
||||
//
|
||||
ConPlatformUpdateDeviceVariable (
|
||||
L"ErrOutDev",
|
||||
@@ -424,7 +424,7 @@ ConPlatformTextOutDriverBindingStart (
|
||||
);
|
||||
}
|
||||
//
|
||||
// If the device path is successfully added to the StdErr environment variable,
|
||||
// If the device path is successfully added to the ErrOut environment variable,
|
||||
// then install EfiStandardErrorDeviceGuid onto ControllerHandle
|
||||
//
|
||||
Status = ConPlatformUpdateDeviceVariable (
|
||||
@@ -557,7 +557,7 @@ ConPlatformTextOutDriverBindingStop (
|
||||
EFI_DEVICE_PATH_PROTOCOL *DevicePath;
|
||||
|
||||
//
|
||||
// If it is not a hot-plug device, first delete it from the ConOutDev and StdErrDev variable.
|
||||
// If it is not a hot-plug device, first delete it from the ConOutDev and ErrOutDev variable.
|
||||
//
|
||||
if (!IsHotPlugDevice (This->DriverBindingHandle, ControllerHandle)) {
|
||||
//
|
||||
@@ -573,7 +573,7 @@ ConPlatformTextOutDriverBindingStop (
|
||||
);
|
||||
if (!EFI_ERROR (Status)) {
|
||||
//
|
||||
// Remove DevicePath from ConOutDev, and StdErrDev
|
||||
// Remove DevicePath from ConOutDev, and ErrOutDev
|
||||
//
|
||||
ConPlatformUpdateDeviceVariable (
|
||||
L"ConOutDev",
|
||||
@@ -655,7 +655,7 @@ ConPlatformUnInstallProtocol (
|
||||
}
|
||||
|
||||
/**
|
||||
Get the necessary size of buffer and read the variabe.
|
||||
Get the necessary size of buffer and read the variable.
|
||||
|
||||
First get the necessary size of buffer. Then read the
|
||||
EFI variable (Name) and return a dynamically allocated
|
||||
@@ -824,7 +824,7 @@ ConPlatformMatchDevicePaths (
|
||||
Update console environment variables.
|
||||
|
||||
@param VariableName Console environment variables, ConOutDev, ConInDev
|
||||
StdErrDev, ConIn or ConOut.
|
||||
ErrOutDev, ConIn ,ConOut or ErrOut.
|
||||
@param DevicePath Console devcie's device path.
|
||||
@param Operation Variable operations, including APPEND, CHECK and DELETE.
|
||||
|
||||
|
@@ -1,5 +1,6 @@
|
||||
#/** @file
|
||||
# Console Platfrom DXE Driver, install Console protocols and updates environment variables.
|
||||
# Console Platfrom DXE Driver that specifies whether device can be used as console
|
||||
# input/output device or error output device and update global variables accordingly.
|
||||
#
|
||||
# Copyright (c) 2006 - 2008, Intel Corporation
|
||||
#
|
||||
@@ -54,14 +55,37 @@
|
||||
DebugLib
|
||||
|
||||
[Guids]
|
||||
gEfiGlobalVariableGuid ## SOMETIMES_CONSUMES ## Variable:L"ErrOut"
|
||||
gEfiStandardErrorDeviceGuid
|
||||
gEfiConsoleOutDeviceGuid
|
||||
gEfiConsoleInDeviceGuid
|
||||
##
|
||||
# This is the VendorGuid of all architecturally defined variables in UEFI spec.
|
||||
#
|
||||
gEfiGlobalVariableGuid ## CONSUMES ## Variable:L"ConIn"
|
||||
gEfiGlobalVariableGuid ## CONSUMES ## Variable:L"ConOut"
|
||||
gEfiGlobalVariableGuid ## CONSUMES ## Variable:L"ErrOut"
|
||||
gEfiGlobalVariableGuid ## CONSUMES ## Variable:L"ConInDev"
|
||||
gEfiGlobalVariableGuid ## CONSUMES ## Variable:L"ConOutDev"
|
||||
gEfiGlobalVariableGuid ## CONSUMES ## Variable:L"ErrOutDev"
|
||||
##
|
||||
# This GUID is used to specify the device is the standard error device.
|
||||
# If the device is a standard error device, this GUID as the protocol GUID will be installed
|
||||
# onto this device handle.
|
||||
#
|
||||
gEfiStandardErrorDeviceGuid ## PROTOCOL
|
||||
##
|
||||
# This GUID is used to specify the device is the console output device.
|
||||
# If the device is a console output device, this GUID as the protocol GUID will be installed
|
||||
# onto this device handle.
|
||||
#
|
||||
gEfiConsoleOutDeviceGuid ## PROTOCOL
|
||||
##
|
||||
# This GUID is used to specify the device is the console input device.
|
||||
# If the device is a console input device, this GUID as the protocol GUID will be installed
|
||||
# onto this device handle.
|
||||
#
|
||||
gEfiConsoleInDeviceGuid ## PROTOCOL
|
||||
|
||||
[Protocols]
|
||||
gEfiDevicePathProtocolGuid ## TO_START
|
||||
gEfiSimpleTextInProtocolGuid ## TO_START
|
||||
gEfiSimpleTextOutProtocolGuid ## TO_START
|
||||
gEfiHotPlugDeviceGuid ## SOMETIMES_CONSUMES
|
||||
gEfiHotPlugDeviceGuid ## SOMETIMES_CONSUMES (Used to check if it's a hot-plug device)
|
||||
|
Reference in New Issue
Block a user