Remove reference to PCDs of status code value. Use macros introduced in PI1.2 instead.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9833 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
xli24
2010-01-27 04:00:58 +00:00
parent ea6898b902
commit f9876ecf8a
27 changed files with 60 additions and 114 deletions

View File

@ -2,7 +2,7 @@
USB Keyboard Driver that manages USB keyboard and produces Simple Text Input USB Keyboard Driver that manages USB keyboard and produces Simple Text Input
Protocol and Simple Text Input Ex Protocol. Protocol and Simple Text Input Ex Protocol.
Copyright (c) 2004 - 2008, Intel Corporation Copyright (c) 2004 - 2010, Intel Corporation
All rights reserved. This program and the accompanying materials All rights reserved. This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at which accompanies this distribution. The full text of the license may be found at
@ -193,7 +193,7 @@ USBKeyboardDriverBindingStart (
// //
REPORT_STATUS_CODE_WITH_DEVICE_PATH ( REPORT_STATUS_CODE_WITH_DEVICE_PATH (
EFI_PROGRESS_CODE, EFI_PROGRESS_CODE,
FixedPcdGet32 (PcdStatusCodeValueKeyboardEnable), (EFI_PERIPHERAL_KEYBOARD | EFI_P_PC_ENABLE),
UsbKeyboardDevice->DevicePath UsbKeyboardDevice->DevicePath
); );
@ -202,7 +202,7 @@ USBKeyboardDriverBindingStart (
// //
REPORT_STATUS_CODE_WITH_DEVICE_PATH ( REPORT_STATUS_CODE_WITH_DEVICE_PATH (
EFI_PROGRESS_CODE, EFI_PROGRESS_CODE,
FixedPcdGet32 (PcdStatusCodeValueKeyboardPresenceDetect), (EFI_PERIPHERAL_KEYBOARD | EFI_P_PC_PRESENCE_DETECT),
UsbKeyboardDevice->DevicePath UsbKeyboardDevice->DevicePath
); );
@ -473,7 +473,7 @@ USBKeyboardDriverBindingStop (
// //
REPORT_STATUS_CODE_WITH_DEVICE_PATH ( REPORT_STATUS_CODE_WITH_DEVICE_PATH (
EFI_PROGRESS_CODE, EFI_PROGRESS_CODE,
FixedPcdGet32 (PcdStatusCodeValueKeyboardDisable), (EFI_PERIPHERAL_KEYBOARD | EFI_P_PC_DISABLE),
UsbKeyboardDevice->DevicePath UsbKeyboardDevice->DevicePath
); );
@ -658,7 +658,7 @@ USBKeyboardReset (
REPORT_STATUS_CODE_WITH_DEVICE_PATH ( REPORT_STATUS_CODE_WITH_DEVICE_PATH (
EFI_PROGRESS_CODE, EFI_PROGRESS_CODE,
FixedPcdGet32 (PcdStatusCodeValueKeyboardReset), (EFI_PERIPHERAL_KEYBOARD | EFI_P_PC_RESET),
UsbKeyboardDevice->DevicePath UsbKeyboardDevice->DevicePath
); );
@ -669,7 +669,7 @@ USBKeyboardReset (
if (!ExtendedVerification) { if (!ExtendedVerification) {
REPORT_STATUS_CODE_WITH_DEVICE_PATH ( REPORT_STATUS_CODE_WITH_DEVICE_PATH (
EFI_PROGRESS_CODE, EFI_PROGRESS_CODE,
FixedPcdGet32 (PcdStatusCodeValueKeyboardClearBuffer), (EFI_PERIPHERAL_KEYBOARD | EFI_P_KEYBOARD_PC_CLEAR_BUFFER),
UsbKeyboardDevice->DevicePath UsbKeyboardDevice->DevicePath
); );
// //

View File

@ -1,7 +1,7 @@
/** @file /** @file
Helper functions for USB Keyboard Driver. Helper functions for USB Keyboard Driver.
Copyright (c) 2004 - 2008, Intel Corporation Copyright (c) 2004 - 2010, Intel Corporation
All rights reserved. This program and the accompanying materials All rights reserved. This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at which accompanies this distribution. The full text of the license may be found at
@ -811,7 +811,7 @@ InitUSBKeyboard (
REPORT_STATUS_CODE_WITH_DEVICE_PATH ( REPORT_STATUS_CODE_WITH_DEVICE_PATH (
EFI_PROGRESS_CODE, EFI_PROGRESS_CODE,
FixedPcdGet32 (PcdStatusCodeValueKeyboardSelfTest), (EFI_PERIPHERAL_KEYBOARD | EFI_P_KEYBOARD_PC_SELF_TEST),
UsbKeyboardDevice->DevicePath UsbKeyboardDevice->DevicePath
); );
@ -846,7 +846,7 @@ InitUSBKeyboard (
// //
REPORT_STATUS_CODE_WITH_DEVICE_PATH ( REPORT_STATUS_CODE_WITH_DEVICE_PATH (
EFI_ERROR_CODE | EFI_ERROR_MINOR, EFI_ERROR_CODE | EFI_ERROR_MINOR,
FixedPcdGet32 (PcdStatusCodeValueKeyboardInterfaceError), (EFI_PERIPHERAL_KEYBOARD | EFI_P_EC_INTERFACE_ERROR),
UsbKeyboardDevice->DevicePath UsbKeyboardDevice->DevicePath
); );
@ -1012,7 +1012,7 @@ KeyboardHandler (
// //
REPORT_STATUS_CODE_WITH_DEVICE_PATH ( REPORT_STATUS_CODE_WITH_DEVICE_PATH (
EFI_ERROR_CODE | EFI_ERROR_MINOR, EFI_ERROR_CODE | EFI_ERROR_MINOR,
FixedPcdGet32 (PcdStatusCodeValueKeyboardInputError), (EFI_PERIPHERAL_KEYBOARD | EFI_P_EC_INPUT_ERROR),
UsbKeyboardDevice->DevicePath UsbKeyboardDevice->DevicePath
); );

View File

@ -13,7 +13,7 @@
# 2. Universal Serial Bus HID Usage Tables, ver 1.12 # 2. Universal Serial Bus HID Usage Tables, ver 1.12
# 3. UEFI Specification, v2.1 # 3. UEFI Specification, v2.1
# #
# Copyright (c) 2006 - 2008, Intel Corporation. # Copyright (c) 2006 - 2010, Intel Corporation.
# #
# All rights reserved. This program and the accompanying materials # All rights reserved. This program and the accompanying materials
# are licensed and made available under the terms and conditions of the BSD License # are licensed and made available under the terms and conditions of the BSD License
@ -89,17 +89,6 @@
[FeaturePcd.common] [FeaturePcd.common]
gEfiMdeModulePkgTokenSpaceGuid.PcdDisableDefaultKeyboardLayoutInUsbKbDriver ## SOMETIME_CONSUMES (Checked when no layout is provided by HII.) gEfiMdeModulePkgTokenSpaceGuid.PcdDisableDefaultKeyboardLayoutInUsbKbDriver ## SOMETIME_CONSUMES (Checked when no layout is provided by HII.)
[FixedPcd]
gEfiMdePkgTokenSpaceGuid.PcdStatusCodeValueKeyboardEnable
gEfiMdePkgTokenSpaceGuid.PcdStatusCodeValueKeyboardPresenceDetect
gEfiMdePkgTokenSpaceGuid.PcdStatusCodeValueKeyboardDisable
gEfiMdePkgTokenSpaceGuid.PcdStatusCodeValueKeyboardReset
gEfiMdePkgTokenSpaceGuid.PcdStatusCodeValueKeyboardClearBuffer
gEfiMdePkgTokenSpaceGuid.PcdStatusCodeValueKeyboardSelfTest
gEfiMdePkgTokenSpaceGuid.PcdStatusCodeValueKeyboardInterfaceError
gEfiMdePkgTokenSpaceGuid.PcdStatusCodeValueKeyboardInputError
# [Event] # [Event]
# ## # ##
# # Periodic timer event for generation of repeat key # # Periodic timer event for generation of repeat key

View File

@ -1,7 +1,7 @@
/** @file /** @file
USB Mouse Driver that manages USB mouse and produces Absolute Pointer Protocol. USB Mouse Driver that manages USB mouse and produces Absolute Pointer Protocol.
Copyright (c) 2004 - 2008, Intel Corporation Copyright (c) 2004 - 2010, Intel Corporation
All rights reserved. This program and the accompanying materials All rights reserved. This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at which accompanies this distribution. The full text of the license may be found at
@ -232,7 +232,7 @@ USBMouseAbsolutePointerDriverBindingStart (
// //
REPORT_STATUS_CODE_WITH_DEVICE_PATH ( REPORT_STATUS_CODE_WITH_DEVICE_PATH (
EFI_ERROR_CODE | EFI_ERROR_MINOR, EFI_ERROR_CODE | EFI_ERROR_MINOR,
FixedPcdGet32 (PcdStatusCodeValueMouseInterfaceError), (EFI_PERIPHERAL_MOUSE | EFI_P_EC_INTERFACE_ERROR),
UsbMouseAbsolutePointerDevice->DevicePath UsbMouseAbsolutePointerDevice->DevicePath
); );
@ -275,7 +275,7 @@ USBMouseAbsolutePointerDriverBindingStart (
// //
REPORT_STATUS_CODE_WITH_DEVICE_PATH ( REPORT_STATUS_CODE_WITH_DEVICE_PATH (
EFI_PROGRESS_CODE, EFI_PROGRESS_CODE,
FixedPcdGet32 (PcdStatusCodeValueMouseEnable), (EFI_PERIPHERAL_MOUSE | EFI_P_PC_ENABLE),
UsbMouseAbsolutePointerDevice->DevicePath UsbMouseAbsolutePointerDevice->DevicePath
); );
@ -401,7 +401,7 @@ USBMouseAbsolutePointerDriverBindingStop (
// //
REPORT_STATUS_CODE_WITH_DEVICE_PATH ( REPORT_STATUS_CODE_WITH_DEVICE_PATH (
EFI_PROGRESS_CODE, EFI_PROGRESS_CODE,
FixedPcdGet32 (PcdStatusCodeValueMouseDisable), (EFI_PERIPHERAL_MOUSE | EFI_P_PC_DISABLE),
UsbMouseAbsolutePointerDevice->DevicePath UsbMouseAbsolutePointerDevice->DevicePath
); );
@ -682,7 +682,7 @@ OnMouseInterruptComplete (
// //
REPORT_STATUS_CODE_WITH_DEVICE_PATH ( REPORT_STATUS_CODE_WITH_DEVICE_PATH (
EFI_ERROR_CODE | EFI_ERROR_MINOR, EFI_ERROR_CODE | EFI_ERROR_MINOR,
FixedPcdGet32 (PcdStatusCodeValueMouseInputError), (EFI_PERIPHERAL_MOUSE | EFI_P_EC_INPUT_ERROR),
UsbMouseAbsolutePointerDevice->DevicePath UsbMouseAbsolutePointerDevice->DevicePath
); );
@ -833,7 +833,7 @@ UsbMouseAbsolutePointerReset (
REPORT_STATUS_CODE_WITH_DEVICE_PATH ( REPORT_STATUS_CODE_WITH_DEVICE_PATH (
EFI_PROGRESS_CODE, EFI_PROGRESS_CODE,
FixedPcdGet32 (PcdStatusCodeValueMouseReset), (EFI_PERIPHERAL_MOUSE | EFI_P_PC_RESET),
UsbMouseAbsolutePointerDevice->DevicePath UsbMouseAbsolutePointerDevice->DevicePath
); );

View File

@ -28,7 +28,6 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
#include <Library/UefiBootServicesTableLib.h> #include <Library/UefiBootServicesTableLib.h>
#include <Library/UefiLib.h> #include <Library/UefiLib.h>
#include <Library/MemoryAllocationLib.h> #include <Library/MemoryAllocationLib.h>
#include <Library/PcdLib.h>
#include <Library/UefiUsbLib.h> #include <Library/UefiUsbLib.h>
#include <Library/DebugLib.h> #include <Library/DebugLib.h>

View File

@ -9,7 +9,7 @@
# 1. Universal Serial Bus HID Firmware Specification, ver 1.11 # 1. Universal Serial Bus HID Firmware Specification, ver 1.11
# 2. UEFI Specification, v2.1 # 2. UEFI Specification, v2.1
# #
# Copyright (c) 2006 - 2008, Intel Corporation. # Copyright (c) 2006 - 2010, Intel Corporation.
# #
# All rights reserved. This program and the accompanying materials # All rights reserved. This program and the accompanying materials
# are licensed and made available under the terms and conditions of the BSD License # are licensed and made available under the terms and conditions of the BSD License
@ -56,7 +56,6 @@
UefiDriverEntryPoint UefiDriverEntryPoint
BaseMemoryLib BaseMemoryLib
ReportStatusCodeLib ReportStatusCodeLib
PcdLib
UefiUsbLib UefiUsbLib
[Protocols] [Protocols]
@ -64,13 +63,6 @@
gEfiDevicePathProtocolGuid ## TO_START gEfiDevicePathProtocolGuid ## TO_START
gEfiAbsolutePointerProtocolGuid ## BY_START gEfiAbsolutePointerProtocolGuid ## BY_START
[FixedPcd]
gEfiMdePkgTokenSpaceGuid.PcdStatusCodeValueMouseInterfaceError
gEfiMdePkgTokenSpaceGuid.PcdStatusCodeValueMouseEnable
gEfiMdePkgTokenSpaceGuid.PcdStatusCodeValueMouseDisable
gEfiMdePkgTokenSpaceGuid.PcdStatusCodeValueMouseInputError
gEfiMdePkgTokenSpaceGuid.PcdStatusCodeValueMouseReset
# [Event] # [Event]
# ## # ##
# # Periodic timer event for delayed recovery, which deals with device error. # # Periodic timer event for delayed recovery, which deals with device error.

View File

@ -1,7 +1,7 @@
/** @file /** @file
USB Mouse Driver that manages USB mouse and produces Simple Pointer Protocol. USB Mouse Driver that manages USB mouse and produces Simple Pointer Protocol.
Copyright (c) 2004 - 2008, Intel Corporation Copyright (c) 2004 - 2010, Intel Corporation
All rights reserved. This program and the accompanying materials All rights reserved. This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at which accompanies this distribution. The full text of the license may be found at
@ -232,7 +232,7 @@ USBMouseDriverBindingStart (
// //
REPORT_STATUS_CODE_WITH_DEVICE_PATH ( REPORT_STATUS_CODE_WITH_DEVICE_PATH (
EFI_ERROR_CODE | EFI_ERROR_MINOR, EFI_ERROR_CODE | EFI_ERROR_MINOR,
FixedPcdGet32 (PcdStatusCodeValueMouseInterfaceError), (EFI_PERIPHERAL_MOUSE | EFI_P_EC_INTERFACE_ERROR),
UsbMouseDevice->DevicePath UsbMouseDevice->DevicePath
); );
@ -275,7 +275,7 @@ USBMouseDriverBindingStart (
// //
REPORT_STATUS_CODE_WITH_DEVICE_PATH ( REPORT_STATUS_CODE_WITH_DEVICE_PATH (
EFI_PROGRESS_CODE, EFI_PROGRESS_CODE,
FixedPcdGet32 (PcdStatusCodeValueMouseEnable), (EFI_PERIPHERAL_MOUSE | EFI_P_PC_ENABLE),
UsbMouseDevice->DevicePath UsbMouseDevice->DevicePath
); );
@ -401,7 +401,7 @@ USBMouseDriverBindingStop (
// //
REPORT_STATUS_CODE_WITH_DEVICE_PATH ( REPORT_STATUS_CODE_WITH_DEVICE_PATH (
EFI_PROGRESS_CODE, EFI_PROGRESS_CODE,
FixedPcdGet32 (PcdStatusCodeValueMouseDisable), (EFI_PERIPHERAL_MOUSE | EFI_P_PC_DISABLE),
UsbMouseDevice->DevicePath UsbMouseDevice->DevicePath
); );
@ -688,7 +688,7 @@ OnMouseInterruptComplete (
// //
REPORT_STATUS_CODE_WITH_DEVICE_PATH ( REPORT_STATUS_CODE_WITH_DEVICE_PATH (
EFI_ERROR_CODE | EFI_ERROR_MINOR, EFI_ERROR_CODE | EFI_ERROR_MINOR,
FixedPcdGet32 (PcdStatusCodeValueMouseInputError), (EFI_PERIPHERAL_MOUSE | EFI_P_EC_INPUT_ERROR),
UsbMouseDevice->DevicePath UsbMouseDevice->DevicePath
); );
@ -838,7 +838,7 @@ UsbMouseReset (
REPORT_STATUS_CODE_WITH_DEVICE_PATH ( REPORT_STATUS_CODE_WITH_DEVICE_PATH (
EFI_PROGRESS_CODE, EFI_PROGRESS_CODE,
FixedPcdGet32 (PcdStatusCodeValueMouseReset), (EFI_PERIPHERAL_MOUSE | EFI_P_PC_RESET),
UsbMouseDevice->DevicePath UsbMouseDevice->DevicePath
); );

View File

@ -28,7 +28,6 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
#include <Library/UefiBootServicesTableLib.h> #include <Library/UefiBootServicesTableLib.h>
#include <Library/UefiLib.h> #include <Library/UefiLib.h>
#include <Library/MemoryAllocationLib.h> #include <Library/MemoryAllocationLib.h>
#include <Library/PcdLib.h>
#include <Library/UefiUsbLib.h> #include <Library/UefiUsbLib.h>
#include <Library/DebugLib.h> #include <Library/DebugLib.h>

View File

@ -9,7 +9,7 @@
# 1. Universal Serial Bus HID Firmware Specification, ver 1.11 # 1. Universal Serial Bus HID Firmware Specification, ver 1.11
# 2. UEFI Specification, v2.1 # 2. UEFI Specification, v2.1
# #
# Copyright (c) 2006 - 2008, Intel Corporation. # Copyright (c) 2006 - 2010, Intel Corporation.
# #
# All rights reserved. This program and the accompanying materials # All rights reserved. This program and the accompanying materials
# are licensed and made available under the terms and conditions of the BSD License # are licensed and made available under the terms and conditions of the BSD License
@ -56,7 +56,6 @@
UefiDriverEntryPoint UefiDriverEntryPoint
BaseMemoryLib BaseMemoryLib
ReportStatusCodeLib ReportStatusCodeLib
PcdLib
UefiUsbLib UefiUsbLib
[Protocols] [Protocols]
@ -64,13 +63,6 @@
gEfiDevicePathProtocolGuid ## TO_START gEfiDevicePathProtocolGuid ## TO_START
gEfiSimplePointerProtocolGuid ## BY_START gEfiSimplePointerProtocolGuid ## BY_START
[FixedPcd]
gEfiMdePkgTokenSpaceGuid.PcdStatusCodeValueMouseInterfaceError
gEfiMdePkgTokenSpaceGuid.PcdStatusCodeValueMouseEnable
gEfiMdePkgTokenSpaceGuid.PcdStatusCodeValueMouseDisable
gEfiMdePkgTokenSpaceGuid.PcdStatusCodeValueMouseInputError
gEfiMdePkgTokenSpaceGuid.PcdStatusCodeValueMouseReset
# [Event] # [Event]
# ## # ##
# # Periodic timer event for delayed recovery, which deals with device error. # # Periodic timer event for delayed recovery, which deals with device error.

View File

@ -26,7 +26,7 @@
Depex - Dependency Expresion. Depex - Dependency Expresion.
SOR - Schedule On Request - Don't schedule if this bit is set. SOR - Schedule On Request - Don't schedule if this bit is set.
Copyright (c) 2006 - 2009, Intel Corporation. <BR> Copyright (c) 2006 - 2010, Intel Corporation. <BR>
All rights reserved. This program and the accompanying materials All rights reserved. This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at which accompanies this distribution. The full text of the license may be found at
@ -527,7 +527,7 @@ CoreDispatcher (
REPORT_STATUS_CODE_WITH_EXTENDED_DATA ( REPORT_STATUS_CODE_WITH_EXTENDED_DATA (
EFI_PROGRESS_CODE, EFI_PROGRESS_CODE,
FixedPcdGet32(PcdStatusCodeValueDxeDriverBegin), (EFI_SOFTWARE_DXE_CORE | EFI_SW_PC_INIT_BEGIN),
&DriverEntry->ImageHandle, &DriverEntry->ImageHandle,
sizeof (DriverEntry->ImageHandle) sizeof (DriverEntry->ImageHandle)
); );
@ -536,7 +536,7 @@ CoreDispatcher (
REPORT_STATUS_CODE_WITH_EXTENDED_DATA ( REPORT_STATUS_CODE_WITH_EXTENDED_DATA (
EFI_PROGRESS_CODE, EFI_PROGRESS_CODE,
FixedPcdGet32(PcdStatusCodeValueDxeDriverEnd), (EFI_SOFTWARE_DXE_CORE | EFI_SW_PC_INIT_END),
&DriverEntry->ImageHandle, &DriverEntry->ImageHandle,
sizeof (DriverEntry->ImageHandle) sizeof (DriverEntry->ImageHandle)
); );

View File

@ -2,7 +2,7 @@
# This is core module in DXE phase. It provides an implementation of DXE Core that is # This is core module in DXE phase. It provides an implementation of DXE Core that is
# compliant with DXE CIS. # compliant with DXE CIS.
# #
# Copyright (c) 2006 - 2009, Intel Corporation. <BR> # Copyright (c) 2006 - 2010, Intel Corporation. <BR>
# All rights reserved. This program and the accompanying materials # All rights reserved. This program and the accompanying materials
# are licensed and made available under the terms and conditions of the BSD License # are licensed and made available under the terms and conditions of the BSD License
# which accompanies this distribution. The full text of the license may be found at # which accompanies this distribution. The full text of the license may be found at
@ -136,12 +136,5 @@
gEfiEbcProtocolGuid ## SOMETIMES_CONSUMES gEfiEbcProtocolGuid ## SOMETIMES_CONSUMES
gEfiLoadedImageDevicePathProtocolGuid ## PRODUCES gEfiLoadedImageDevicePathProtocolGuid ## PRODUCES
[FixedPcd.common]
gEfiMdePkgTokenSpaceGuid.PcdStatusCodeValueDxeCoreEntry
gEfiMdePkgTokenSpaceGuid.PcdStatusCodeValueDxeCoreHandoffToBds
gEfiMdePkgTokenSpaceGuid.PcdStatusCodeValueBootServiceExit
gEfiMdePkgTokenSpaceGuid.PcdStatusCodeValueDxeDriverBegin
gEfiMdePkgTokenSpaceGuid.PcdStatusCodeValueDxeDriverEnd
[FeaturePcd.common] [FeaturePcd.common]
gEfiMdeModulePkgTokenSpaceGuid.PcdFrameworkCompatibilitySupport ## CONSUMES gEfiMdeModulePkgTokenSpaceGuid.PcdFrameworkCompatibilitySupport ## CONSUMES

View File

@ -1,7 +1,7 @@
/** @file /** @file
DXE Core Main Entry Point DXE Core Main Entry Point
Copyright (c) 2006 - 2009, Intel Corporation. <BR> Copyright (c) 2006 - 2010, Intel Corporation. <BR>
All rights reserved. This program and the accompanying materials All rights reserved. This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at which accompanies this distribution. The full text of the license may be found at
@ -290,7 +290,7 @@ DxeMain (
// //
REPORT_STATUS_CODE ( REPORT_STATUS_CODE (
EFI_PROGRESS_CODE, EFI_PROGRESS_CODE,
FixedPcdGet32(PcdStatusCodeValueDxeCoreEntry) (EFI_SOFTWARE_DXE_CORE | EFI_SW_DXE_CORE_PC_ENTRY_POINT)
); );
// //
@ -416,7 +416,7 @@ DxeMain (
// //
REPORT_STATUS_CODE ( REPORT_STATUS_CODE (
EFI_PROGRESS_CODE, EFI_PROGRESS_CODE,
FixedPcdGet32 (PcdStatusCodeValueDxeCoreHandoffToBds) (EFI_SOFTWARE_DXE_CORE | EFI_SW_DXE_CORE_PC_HANDOFF_TO_NEXT)
); );
// //
@ -670,7 +670,7 @@ CoreExitBootServices (
// //
REPORT_STATUS_CODE ( REPORT_STATUS_CODE (
EFI_PROGRESS_CODE, EFI_PROGRESS_CODE,
FixedPcdGet32 (PcdStatusCodeValueBootServiceExit) (EFI_SOFTWARE_EFI_BOOT_SERVICE | EFI_SW_BS_PC_EXIT_BOOT_SERVICES)
); );
// //

View File

@ -5,7 +5,7 @@
# PPI to discover and dispatch the DXE Foundation and components that are # PPI to discover and dispatch the DXE Foundation and components that are
# needed to run the DXE Foundation. # needed to run the DXE Foundation.
# #
# Copyright (c) 2006 - 2009, Intel Corporation. <BR> # Copyright (c) 2006 - 2010, Intel Corporation. <BR>
# All rights reserved. This program and the accompanying materials # All rights reserved. This program and the accompanying materials
# are licensed and made available under the terms and conditions of the BSD License # are licensed and made available under the terms and conditions of the BSD License
# which accompanies this distribution. The full text of the license may be found at # which accompanies this distribution. The full text of the license may be found at
@ -92,9 +92,6 @@
[FeaturePcd.common] [FeaturePcd.common]
gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSupportUefiDecompress gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSupportUefiDecompress
[FixedPcd.common]
gEfiMdePkgTokenSpaceGuid.PcdStatusCodeValuePeiHandoffToDxe
[Depex] [Depex]
gEfiPeiMemoryDiscoveredPpiGuid AND gEfiPeiLoadFilePpiGuid gEfiPeiMemoryDiscoveredPpiGuid AND gEfiPeiLoadFilePpiGuid

View File

@ -2,7 +2,7 @@
Last PEIM. Last PEIM.
Responsibility of this module is to load the DXE Core from a Firmware Volume. Responsibility of this module is to load the DXE Core from a Firmware Volume.
Copyright (c) 2006 - 2009, Intel Corporation. <BR> Copyright (c) 2006 - 2010, Intel Corporation. <BR>
All rights reserved. This program and the accompanying materials All rights reserved. This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at which accompanies this distribution. The full text of the license may be found at
@ -271,7 +271,7 @@ DxeLoadCore (
// //
// Report Status Code EFI_SW_PEI_PC_HANDOFF_TO_NEXT // Report Status Code EFI_SW_PEI_PC_HANDOFF_TO_NEXT
// //
REPORT_STATUS_CODE (EFI_PROGRESS_CODE, FixedPcdGet32 (PcdStatusCodeValuePeiHandoffToDxe)); REPORT_STATUS_CODE (EFI_PROGRESS_CODE, (EFI_SOFTWARE_PEI_CORE | EFI_SW_PEI_CORE_PC_HANDOFF_TO_NEXT));
DEBUG ((DEBUG_INFO | DEBUG_LOAD, "Loading DXE CORE at 0x%11p EntryPoint=0x%11p\n", (VOID *)(UINTN)DxeCoreAddress, FUNCTION_ENTRY_POINT (DxeCoreEntryPoint))); DEBUG ((DEBUG_INFO | DEBUG_LOAD, "Loading DXE CORE at 0x%11p EntryPoint=0x%11p\n", (VOID *)(UINTN)DxeCoreAddress, FUNCTION_ENTRY_POINT (DxeCoreEntryPoint)));

View File

@ -420,7 +420,7 @@ PeiDispatcher (
REPORT_STATUS_CODE_WITH_EXTENDED_DATA ( REPORT_STATUS_CODE_WITH_EXTENDED_DATA (
EFI_PROGRESS_CODE, EFI_PROGRESS_CODE,
PcdGet32(PcdStatusCodeValuePeimDispatch), (EFI_SOFTWARE_PEI_CORE | EFI_SW_PC_INIT_BEGIN),
(VOID *)(&ExtendedData), (VOID *)(&ExtendedData),
sizeof (ExtendedData) sizeof (ExtendedData)
); );
@ -445,7 +445,7 @@ PeiDispatcher (
REPORT_STATUS_CODE_WITH_EXTENDED_DATA ( REPORT_STATUS_CODE_WITH_EXTENDED_DATA (
EFI_PROGRESS_CODE, EFI_PROGRESS_CODE,
PcdGet32(PcdStatusCodeValuePeimDispatch), (EFI_SOFTWARE_PEI_CORE | EFI_SW_PC_INIT_BEGIN),
(VOID *)(&ExtendedData), (VOID *)(&ExtendedData),
sizeof (ExtendedData) sizeof (ExtendedData)
); );

View File

@ -90,8 +90,6 @@
gEfiMdeModulePkgTokenSpaceGuid.PcdPeiCoreMaxPpiSupported ## CONSUMES gEfiMdeModulePkgTokenSpaceGuid.PcdPeiCoreMaxPpiSupported ## CONSUMES
[Pcd] [Pcd]
gEfiMdePkgTokenSpaceGuid.PcdStatusCodeValuePeimDispatch ## CONSUMES
gEfiMdePkgTokenSpaceGuid.PcdStatusCodeValuePeiCoreEntry ## CONSUMES
gEfiMdeModulePkgTokenSpaceGuid.PcdPeiCoreMaxPeiStackSize ## CONSUMES gEfiMdeModulePkgTokenSpaceGuid.PcdPeiCoreMaxPeiStackSize ## CONSUMES
gEfiMdeModulePkgTokenSpaceGuid.PcdPeiCoreImageLoaderSearchTeSectionFirst ## CONSUMES gEfiMdeModulePkgTokenSpaceGuid.PcdPeiCoreImageLoaderSearchTeSectionFirst ## CONSUMES
gEfiMdeModulePkgTokenSpaceGuid.PcdFrameworkCompatibilitySupport ## CONSUMES gEfiMdeModulePkgTokenSpaceGuid.PcdFrameworkCompatibilitySupport ## CONSUMES

View File

@ -184,7 +184,7 @@ PeiCore (
// //
REPORT_STATUS_CODE ( REPORT_STATUS_CODE (
EFI_PROGRESS_CODE, EFI_PROGRESS_CODE,
PcdGet32 (PcdStatusCodeValuePeiCoreEntry) (EFI_SOFTWARE_PEI_CORE | EFI_SW_PC_INIT)
); );
PERF_START (NULL, "SEC", NULL, 1); PERF_START (NULL, "SEC", NULL, 1);

View File

@ -35,7 +35,7 @@ Revision History:
Table now contains an item named CalculateCrc32. Table now contains an item named CalculateCrc32.
Copyright (c) 2006 - 2008, Intel Corporation. <BR> Copyright (c) 2006 - 2010, Intel Corporation. <BR>
All rights reserved. This program and the accompanying materials All rights reserved. This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at which accompanies this distribution. The full text of the license may be found at
@ -277,7 +277,7 @@ RuntimeDriverSetVirtualAddressMap (
// //
// ReporstStatusCodeLib will check and make sure this service can be called in runtime mode. // ReporstStatusCodeLib will check and make sure this service can be called in runtime mode.
// //
REPORT_STATUS_CODE (EFI_PROGRESS_CODE, FixedPcdGet32 (PcdStatusCodeValueSetVirtualAddressMap)); REPORT_STATUS_CODE (EFI_PROGRESS_CODE, (EFI_SOFTWARE_EFI_RUNTIME_SERVICE | EFI_SW_RS_PC_SET_VIRTUAL_ADDRESS_MAP));
// //
// Signal all the EVT_SIGNAL_VIRTUAL_ADDRESS_CHANGE events. // Signal all the EVT_SIGNAL_VIRTUAL_ADDRESS_CHANGE events.

View File

@ -3,7 +3,7 @@
This code is used to produce the EFI runtime architectural protocol. This code is used to produce the EFI runtime architectural protocol.
Copyright (c) 2006, Intel Corporation. <BR> Copyright (c) 2006 - 2010, Intel Corporation. <BR>
All rights reserved. This program and the accompanying materials All rights reserved. This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at which accompanies this distribution. The full text of the license may be found at
@ -29,7 +29,6 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
#include <Library/UefiLib.h> #include <Library/UefiLib.h>
#include <Library/CacheMaintenanceLib.h> #include <Library/CacheMaintenanceLib.h>
#include <Library/PeCoffLib.h> #include <Library/PeCoffLib.h>
#include <Library/PcdLib.h>
// //

View File

@ -5,7 +5,7 @@
# CalculateCrc32 boot services table, SetVirtualAddressMap & ConvertPointer # CalculateCrc32 boot services table, SetVirtualAddressMap & ConvertPointer
# runtime services table. # runtime services table.
# #
# Copyright (c) 2006 - 2008, Intel Corporation # Copyright (c) 2006 - 2010, Intel Corporation
# #
# All rights reserved. This program and the accompanying materials # All rights reserved. This program and the accompanying materials
# are licensed and made available under the terms and conditions of the BSD License # are licensed and made available under the terms and conditions of the BSD License
@ -57,8 +57,5 @@
gEfiRuntimeArchProtocolGuid ## PRODUCES gEfiRuntimeArchProtocolGuid ## PRODUCES
gEfiLoadedImageProtocolGuid ## CONSUMES gEfiLoadedImageProtocolGuid ## CONSUMES
[FixedPcd.common]
gEfiMdePkgTokenSpaceGuid.PcdStatusCodeValueSetVirtualAddressMap
[depex] [depex]
TRUE TRUE

View File

@ -2,7 +2,7 @@
Produces Simple Text Input Protocol, Simple Text Input Extended Protocol and Produces Simple Text Input Protocol, Simple Text Input Extended Protocol and
Simple Text Output Protocol upon Serial IO Protocol. Simple Text Output Protocol upon Serial IO Protocol.
Copyright (c) 2006 - 2009, Intel Corporation. <BR> Copyright (c) 2006 - 2010, Intel Corporation. <BR>
All rights reserved. This program and the accompanying materials All rights reserved. This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at which accompanies this distribution. The full text of the license may be found at
@ -670,7 +670,7 @@ ReportError:
// //
REPORT_STATUS_CODE_WITH_DEVICE_PATH ( REPORT_STATUS_CODE_WITH_DEVICE_PATH (
EFI_ERROR_CODE | EFI_ERROR_MINOR, EFI_ERROR_CODE | EFI_ERROR_MINOR,
PcdGet32 (PcdStatusCodeValueRemoteConsoleError), (EFI_PERIPHERAL_REMOTE_CONSOLE | EFI_P_EC_CONTROLLER_ERROR),
DevicePath DevicePath
); );

View File

@ -1,7 +1,7 @@
/** @file /** @file
Implementation for EFI_SIMPLE_TEXT_INPUT_PROTOCOL protocol. Implementation for EFI_SIMPLE_TEXT_INPUT_PROTOCOL protocol.
Copyright (c) 2006 - 2008, Intel Corporation. <BR> Copyright (c) 2006 - 2010, Intel Corporation. <BR>
All rights reserved. This program and the accompanying materials All rights reserved. This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at which accompanies this distribution. The full text of the license may be found at
@ -113,7 +113,7 @@ TerminalConInReset (
// //
REPORT_STATUS_CODE_WITH_DEVICE_PATH ( REPORT_STATUS_CODE_WITH_DEVICE_PATH (
EFI_PROGRESS_CODE, EFI_PROGRESS_CODE,
PcdGet32 (PcdStatusCodeValueRemoteConsoleReset), (EFI_PERIPHERAL_REMOTE_CONSOLE | EFI_P_PC_RESET),
TerminalDevice->DevicePath TerminalDevice->DevicePath
); );
@ -129,7 +129,7 @@ TerminalConInReset (
if (EFI_ERROR (Status)) { if (EFI_ERROR (Status)) {
REPORT_STATUS_CODE_WITH_DEVICE_PATH ( REPORT_STATUS_CODE_WITH_DEVICE_PATH (
EFI_ERROR_CODE | EFI_ERROR_MINOR, EFI_ERROR_CODE | EFI_ERROR_MINOR,
PcdGet32 (PcdStatusCodeValueRemoteConsoleError), (EFI_PERIPHERAL_REMOTE_CONSOLE | EFI_P_EC_CONTROLLER_ERROR),
TerminalDevice->DevicePath TerminalDevice->DevicePath
); );
} }
@ -636,7 +636,7 @@ TerminalConInCheckForKey (
if (Status == EFI_DEVICE_ERROR) { if (Status == EFI_DEVICE_ERROR) {
REPORT_STATUS_CODE_WITH_DEVICE_PATH ( REPORT_STATUS_CODE_WITH_DEVICE_PATH (
EFI_ERROR_CODE | EFI_ERROR_MINOR, EFI_ERROR_CODE | EFI_ERROR_MINOR,
PcdGet32 (PcdStatusCodeValueRemoteConsoleInputError), (EFI_PERIPHERAL_REMOTE_CONSOLE | EFI_P_EC_INPUT_ERROR),
TerminalDevice->DevicePath TerminalDevice->DevicePath
); );
} }

View File

@ -1,7 +1,7 @@
/** @file /** @file
Implementation for EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL protocol. Implementation for EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL protocol.
Copyright (c) 2006 - 2009, Intel Corporation. <BR> Copyright (c) 2006 - 2010, Intel Corporation. <BR>
All rights reserved. This program and the accompanying materials All rights reserved. This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at which accompanies this distribution. The full text of the license may be found at
@ -124,7 +124,7 @@ TerminalConOutReset (
// //
REPORT_STATUS_CODE_WITH_DEVICE_PATH ( REPORT_STATUS_CODE_WITH_DEVICE_PATH (
EFI_PROGRESS_CODE, EFI_PROGRESS_CODE,
PcdGet32 (PcdStatusCodeValueRemoteConsoleReset), (EFI_PERIPHERAL_REMOTE_CONSOLE | EFI_P_PC_RESET),
TerminalDevice->DevicePath TerminalDevice->DevicePath
); );
@ -135,7 +135,7 @@ TerminalConOutReset (
// //
REPORT_STATUS_CODE_WITH_DEVICE_PATH ( REPORT_STATUS_CODE_WITH_DEVICE_PATH (
EFI_ERROR_CODE | EFI_ERROR_MINOR, EFI_ERROR_CODE | EFI_ERROR_MINOR,
PcdGet32 (PcdStatusCodeValueRemoteConsoleError), (EFI_PERIPHERAL_REMOTE_CONSOLE | EFI_P_EC_CONTROLLER_ERROR),
TerminalDevice->DevicePath TerminalDevice->DevicePath
); );
@ -328,7 +328,7 @@ TerminalConOutOutputString (
OutputError: OutputError:
REPORT_STATUS_CODE_WITH_DEVICE_PATH ( REPORT_STATUS_CODE_WITH_DEVICE_PATH (
EFI_ERROR_CODE | EFI_ERROR_MINOR, EFI_ERROR_CODE | EFI_ERROR_MINOR,
PcdGet32 (PcdStatusCodeValueRemoteConsoleOutputError), (EFI_PERIPHERAL_REMOTE_CONSOLE | EFI_P_EC_OUTPUT_ERROR),
TerminalDevice->DevicePath TerminalDevice->DevicePath
); );

View File

@ -4,7 +4,7 @@
# #
# This driver installs Simple Text In/Out protocol for terminal devices (serial devices or hotplug devices). # This driver installs Simple Text In/Out protocol for terminal devices (serial devices or hotplug devices).
# #
# Copyright (c) 2006 - 2008, Intel Corporation # Copyright (c) 2006 - 2010, Intel Corporation
# All rights reserved. This program and the accompanying materials # All rights reserved. This program and the accompanying materials
# are licensed and made available under the terms and conditions of the BSD License # are licensed and made available under the terms and conditions of the BSD License
# which accompanies this distribution. The full text of the license may be found at # which accompanies this distribution. The full text of the license may be found at
@ -73,10 +73,6 @@
gEfiSimpleTextOutProtocolGuid ## BY_START gEfiSimpleTextOutProtocolGuid ## BY_START
[Pcd] [Pcd]
gEfiMdePkgTokenSpaceGuid.PcdStatusCodeValueRemoteConsoleError
gEfiMdePkgTokenSpaceGuid.PcdStatusCodeValueRemoteConsoleReset
gEfiMdePkgTokenSpaceGuid.PcdStatusCodeValueRemoteConsoleInputError
gEfiMdePkgTokenSpaceGuid.PcdStatusCodeValueRemoteConsoleOutputError
gEfiMdePkgTokenSpaceGuid.PcdDefaultTerminalType gEfiMdePkgTokenSpaceGuid.PcdDefaultTerminalType
# [Event] # [Event]

View File

@ -1,7 +1,7 @@
/** @file /** @file
Implementation of Watchdog Timer Architectural Protocol using UEFI APIs. Implementation of Watchdog Timer Architectural Protocol using UEFI APIs.
Copyright (c) 2006 - 2008, Intel Corporation Copyright (c) 2006 - 2010, Intel Corporation
All rights reserved. This program and the accompanying materials All rights reserved. This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at which accompanies this distribution. The full text of the license may be found at
@ -66,7 +66,7 @@ WatchdogTimerDriverExpires (
IN VOID *Context IN VOID *Context
) )
{ {
REPORT_STATUS_CODE (EFI_ERROR_CODE | EFI_ERROR_MINOR, FixedPcdGet32 (PcdStatusCodeValueEfiWatchDogTimerExpired)); REPORT_STATUS_CODE (EFI_ERROR_CODE | EFI_ERROR_MINOR, (EFI_COMPUTING_UNIT_HOST_PROCESSOR | EFI_CU_HP_EC_TIMER_EXPIRED));
// //
// If a notification function has been registered, then call it // If a notification function has been registered, then call it

View File

@ -23,7 +23,6 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
#include <Library/ReportStatusCodeLib.h> #include <Library/ReportStatusCodeLib.h>
#include <Library/UefiBootServicesTableLib.h> #include <Library/UefiBootServicesTableLib.h>
#include <Library/UefiRuntimeServicesTableLib.h> #include <Library/UefiRuntimeServicesTableLib.h>
#include <Library/PcdLib.h>
#include <Protocol/WatchdogTimer.h> #include <Protocol/WatchdogTimer.h>

View File

@ -1,7 +1,7 @@
#/** @file #/** @file
# Generic watchdog timer driver produceing Watchdog Timer Architectural Protocol using UEFI APIs. # Generic watchdog timer driver produceing Watchdog Timer Architectural Protocol using UEFI APIs.
# #
# Copyright (c) 2006 - 2008, Intel Corporation # Copyright (c) 2006 - 2010, Intel Corporation
# #
# All rights reserved. This program and the accompanying materials # All rights reserved. This program and the accompanying materials
# are licensed and made available under the terms and conditions of the BSD License # are licensed and made available under the terms and conditions of the BSD License
@ -40,14 +40,10 @@
ReportStatusCodeLib ReportStatusCodeLib
UefiDriverEntryPoint UefiDriverEntryPoint
DebugLib DebugLib
PcdLib
[Protocols] [Protocols]
gEfiWatchdogTimerArchProtocolGuid ## PRODUCES gEfiWatchdogTimerArchProtocolGuid ## PRODUCES
[FixedPcd.common]
gEfiMdePkgTokenSpaceGuid.PcdStatusCodeValueEfiWatchDogTimerExpired
[depex] [depex]
gEfiTimerArchProtocolGuid gEfiTimerArchProtocolGuid