From f9876ecf8a296a8e0d4ad8d22ed5ff12ecc11f65 Mon Sep 17 00:00:00 2001 From: xli24 Date: Wed, 27 Jan 2010 04:00:58 +0000 Subject: 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 --- .../Usb/UsbMouseAbsolutePointerDxe/UsbMouseAbsolutePointer.c | 12 ++++++------ .../Usb/UsbMouseAbsolutePointerDxe/UsbMouseAbsolutePointer.h | 1 - .../UsbMouseAbsolutePointerDxe.inf | 10 +--------- 3 files changed, 7 insertions(+), 16 deletions(-) (limited to 'MdeModulePkg/Bus/Usb/UsbMouseAbsolutePointerDxe') diff --git a/MdeModulePkg/Bus/Usb/UsbMouseAbsolutePointerDxe/UsbMouseAbsolutePointer.c b/MdeModulePkg/Bus/Usb/UsbMouseAbsolutePointerDxe/UsbMouseAbsolutePointer.c index 5c39f49dd2..8c1cf772c8 100644 --- a/MdeModulePkg/Bus/Usb/UsbMouseAbsolutePointerDxe/UsbMouseAbsolutePointer.c +++ b/MdeModulePkg/Bus/Usb/UsbMouseAbsolutePointerDxe/UsbMouseAbsolutePointer.c @@ -1,7 +1,7 @@ /** @file 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 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 @@ -232,7 +232,7 @@ USBMouseAbsolutePointerDriverBindingStart ( // REPORT_STATUS_CODE_WITH_DEVICE_PATH ( EFI_ERROR_CODE | EFI_ERROR_MINOR, - FixedPcdGet32 (PcdStatusCodeValueMouseInterfaceError), + (EFI_PERIPHERAL_MOUSE | EFI_P_EC_INTERFACE_ERROR), UsbMouseAbsolutePointerDevice->DevicePath ); @@ -275,7 +275,7 @@ USBMouseAbsolutePointerDriverBindingStart ( // REPORT_STATUS_CODE_WITH_DEVICE_PATH ( EFI_PROGRESS_CODE, - FixedPcdGet32 (PcdStatusCodeValueMouseEnable), + (EFI_PERIPHERAL_MOUSE | EFI_P_PC_ENABLE), UsbMouseAbsolutePointerDevice->DevicePath ); @@ -401,7 +401,7 @@ USBMouseAbsolutePointerDriverBindingStop ( // REPORT_STATUS_CODE_WITH_DEVICE_PATH ( EFI_PROGRESS_CODE, - FixedPcdGet32 (PcdStatusCodeValueMouseDisable), + (EFI_PERIPHERAL_MOUSE | EFI_P_PC_DISABLE), UsbMouseAbsolutePointerDevice->DevicePath ); @@ -682,7 +682,7 @@ OnMouseInterruptComplete ( // REPORT_STATUS_CODE_WITH_DEVICE_PATH ( EFI_ERROR_CODE | EFI_ERROR_MINOR, - FixedPcdGet32 (PcdStatusCodeValueMouseInputError), + (EFI_PERIPHERAL_MOUSE | EFI_P_EC_INPUT_ERROR), UsbMouseAbsolutePointerDevice->DevicePath ); @@ -833,7 +833,7 @@ UsbMouseAbsolutePointerReset ( REPORT_STATUS_CODE_WITH_DEVICE_PATH ( EFI_PROGRESS_CODE, - FixedPcdGet32 (PcdStatusCodeValueMouseReset), + (EFI_PERIPHERAL_MOUSE | EFI_P_PC_RESET), UsbMouseAbsolutePointerDevice->DevicePath ); diff --git a/MdeModulePkg/Bus/Usb/UsbMouseAbsolutePointerDxe/UsbMouseAbsolutePointer.h b/MdeModulePkg/Bus/Usb/UsbMouseAbsolutePointerDxe/UsbMouseAbsolutePointer.h index 2fa0864b40..2faddd73d9 100644 --- a/MdeModulePkg/Bus/Usb/UsbMouseAbsolutePointerDxe/UsbMouseAbsolutePointer.h +++ b/MdeModulePkg/Bus/Usb/UsbMouseAbsolutePointerDxe/UsbMouseAbsolutePointer.h @@ -28,7 +28,6 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. #include #include #include -#include #include #include diff --git a/MdeModulePkg/Bus/Usb/UsbMouseAbsolutePointerDxe/UsbMouseAbsolutePointerDxe.inf b/MdeModulePkg/Bus/Usb/UsbMouseAbsolutePointerDxe/UsbMouseAbsolutePointerDxe.inf index 343f9a4482..56b93d2452 100644 --- a/MdeModulePkg/Bus/Usb/UsbMouseAbsolutePointerDxe/UsbMouseAbsolutePointerDxe.inf +++ b/MdeModulePkg/Bus/Usb/UsbMouseAbsolutePointerDxe/UsbMouseAbsolutePointerDxe.inf @@ -9,7 +9,7 @@ # 1. Universal Serial Bus HID Firmware Specification, ver 1.11 # 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 # are licensed and made available under the terms and conditions of the BSD License @@ -56,7 +56,6 @@ UefiDriverEntryPoint BaseMemoryLib ReportStatusCodeLib - PcdLib UefiUsbLib [Protocols] @@ -64,13 +63,6 @@ gEfiDevicePathProtocolGuid ## TO_START gEfiAbsolutePointerProtocolGuid ## BY_START -[FixedPcd] - gEfiMdePkgTokenSpaceGuid.PcdStatusCodeValueMouseInterfaceError - gEfiMdePkgTokenSpaceGuid.PcdStatusCodeValueMouseEnable - gEfiMdePkgTokenSpaceGuid.PcdStatusCodeValueMouseDisable - gEfiMdePkgTokenSpaceGuid.PcdStatusCodeValueMouseInputError - gEfiMdePkgTokenSpaceGuid.PcdStatusCodeValueMouseReset - # [Event] # ## # # Periodic timer event for delayed recovery, which deals with device error. -- cgit v1.2.3