]> git.proxmox.com Git - mirror_edk2.git/commitdiff
PcAtChipsetPkg: Remove KbcResetDxe
authorRuiyu Ni <ruiyu.ni@intel.com>
Wed, 10 Aug 2016 05:32:05 +0000 (13:32 +0800)
committerRuiyu Ni <ruiyu.ni@intel.com>
Fri, 2 Sep 2016 02:07:17 +0000 (10:07 +0800)
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Feng Tian <feng.tian@intel.com>
Cc: Amy Chan <amy.chan@intel.com>
PcAtChipsetPkg/KbcResetDxe/KbcReset.uni [deleted file]
PcAtChipsetPkg/KbcResetDxe/KbcResetExtra.uni [deleted file]
PcAtChipsetPkg/KbcResetDxe/Reset.inf [deleted file]
PcAtChipsetPkg/KbcResetDxe/ResetEntry.c [deleted file]
PcAtChipsetPkg/PcAtChipsetPkg.dsc

diff --git a/PcAtChipsetPkg/KbcResetDxe/KbcReset.uni b/PcAtChipsetPkg/KbcResetDxe/KbcReset.uni
deleted file mode 100644 (file)
index 5535dac..0000000
+++ /dev/null
@@ -1,27 +0,0 @@
-// /** @file\r
-// This driver implements Reset Architectural Protocol.\r
-//\r
-// It should depend on the ResetSystemLib instance that is implemented based on KBC.\r
-//\r
-// Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>\r
-//\r
-// This program and the accompanying materials\r
-// are licensed and made available under the terms and conditions of the BSD License\r
-// which accompanies this distribution.  The full text of the license may be found at\r
-// http://opensource.org/licenses/bsd-license.php\r
-// \r
-// THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-// WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-// \r
-// Module Name:\r
-// Reset.inf\r
-// \r
-// Abstract:\r
-//\r
-// **/\r
-\r
-\r
-#string STR_MODULE_ABSTRACT             #language en-US "This driver implements Reset Architectural Protocol"\r
-\r
-#string STR_MODULE_DESCRIPTION          #language en-US "It should depend on the ResetSystemLib instance that is implemented based on KBC."\r
-\r
diff --git a/PcAtChipsetPkg/KbcResetDxe/KbcResetExtra.uni b/PcAtChipsetPkg/KbcResetDxe/KbcResetExtra.uni
deleted file mode 100644 (file)
index 2ad684e..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-// /** @file\r
-// KbcReset Localized Strings and Content\r
-//\r
-// Copyright (c) 2013 - 2014, Intel Corporation. All rights reserved.<BR>\r
-//\r
-// This program and the accompanying materials\r
-// are licensed and made available under the terms and conditions of the BSD License\r
-// which accompanies this distribution.  The full text of the license may be found at\r
-// http://opensource.org/licenses/bsd-license.php\r
-//\r
-// THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-// WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-//\r
-// Module Name:\r
-// Reset.inf\r
-//\r
-// Abstract:\r
-//\r
-// **/\r
-\r
-#string STR_PROPERTIES_MODULE_NAME \r
-#language en-US \r
-"Keyboard Controller Reset DXE Driver"\r
-\r
-\r
diff --git a/PcAtChipsetPkg/KbcResetDxe/Reset.inf b/PcAtChipsetPkg/KbcResetDxe/Reset.inf
deleted file mode 100644 (file)
index b54b08c..0000000
+++ /dev/null
@@ -1,50 +0,0 @@
-## @file\r
-# This driver implements Reset Architectural Protocol.\r
-#\r
-# It should depend on the ResetSystemLib instance that is implemented based on KBC.\r
-#\r
-# Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>\r
-# This program and the accompanying materials                          \r
-# are licensed and made available under the terms and conditions of the BSD License         \r
-# which accompanies this distribution.  The full text of the license may be found at        \r
-# http://opensource.org/licenses/bsd-license.php                                            \r
-#                                                                                           \r
-# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     \r
-# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             \r
-#\r
-#  Module Name:\r
-#    Reset.inf\r
-#\r
-#  Abstract:\r
-#\r
-##\r
-[Defines]\r
-  INF_VERSION                    = 0x00010005\r
-  BASE_NAME                      = KbcReset\r
-  MODULE_UNI_FILE                = KbcReset.uni\r
-  FILE_GUID                      = 6F0198AA-1F1D-426D-AE3E-39AB633FCC28\r
-  MODULE_TYPE                    = DXE_RUNTIME_DRIVER\r
-  VERSION_STRING                 = 1.0\r
-  ENTRY_POINT                    = InitializeReset\r
-\r
-[Packages]\r
-  MdePkg/MdePkg.dec\r
-  MdeModulePkg/MdeModulePkg.dec\r
-\r
-[LibraryClasses]\r
-  UefiDriverEntryPoint\r
-  DebugLib\r
-  UefiBootServicesTableLib\r
-  ResetSystemLib\r
-\r
-[Sources]\r
-  ResetEntry.c\r
-\r
-[Protocols]\r
-  gEfiResetArchProtocolGuid ## PRODUCES\r
-\r
-[Depex]\r
-  TRUE\r
-\r
-[UserExtensions.TianoCore."ExtraFiles"]\r
-  KbcResetExtra.uni\r
diff --git a/PcAtChipsetPkg/KbcResetDxe/ResetEntry.c b/PcAtChipsetPkg/KbcResetDxe/ResetEntry.c
deleted file mode 100644 (file)
index 03b4250..0000000
+++ /dev/null
@@ -1,106 +0,0 @@
-/** @file\r
-  Driver entry for KbcReset driver.\r
-\r
-Copyright (c) 2009 - 2010, Intel Corporation. All rights reserved.<BR>\r
-This program and the accompanying materials                          \r
-are licensed and made available under the terms and conditions of the BSD License         \r
-which accompanies this distribution.  The full text of the license may be found at        \r
-http://opensource.org/licenses/bsd-license.php                                            \r
-                                                                                          \r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     \r
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             \r
-**/\r
-\r
-#include <PiDxe.h>\r
-\r
-#include <Library/DebugLib.h>\r
-#include <Library/UefiBootServicesTableLib.h>\r
-#include <Library/ResetSystemLib.h>\r
-\r
-#include <Protocol/Reset.h>\r
-\r
-//\r
-// The handle onto which the Reset Architectural Protocol is installed\r
-//\r
-EFI_HANDLE  mResetHandle = NULL;\r
-\r
-/**\r
-  Reset the system.\r
-\r
-  @param ResetType       warm or cold\r
-  @param ResetStatus     possible cause of reset\r
-  @param DataSize        Size of ResetData in bytes\r
-  @param ResetData       Optional Unicode string\r
-\r
-**/\r
-VOID\r
-EFIAPI\r
-KbcResetSystem (\r
-  IN EFI_RESET_TYPE   ResetType,\r
-  IN EFI_STATUS       ResetStatus,\r
-  IN UINTN            DataSize,\r
-  IN VOID             *ResetData OPTIONAL\r
-  )\r
-{\r
-  switch (ResetType) {\r
-  case EfiResetWarm:\r
-    ResetWarm ();\r
-    break;\r
-  case EfiResetCold:\r
-    ResetCold ();\r
-    break;\r
-  case EfiResetShutdown:\r
-    ResetShutdown ();\r
-    break;\r
-  default:\r
-    return;\r
-  }\r
-\r
-  //\r
-  // Given we should have reset getting here would be bad\r
-  //\r
-  ASSERT (FALSE);\r
-}\r
-\r
-/**\r
-  Initialize the state information for the Reset Architectural Protocol.\r
-\r
-  @param ImageHandle     Handle of the loaded driver \r
-  @param SystemTable     Pointer to the System Table\r
-\r
-  @retval EFI_SUCCESS           Thread can be successfully created\r
-  @retval EFI_OUT_OF_RESOURCES  Cannot allocate protocol data structure\r
-  @retval EFI_DEVICE_ERROR      Cannot create the timer service\r
-\r
-**/\r
-EFI_STATUS\r
-EFIAPI\r
-InitializeReset (\r
-  IN EFI_HANDLE        ImageHandle,\r
-  IN EFI_SYSTEM_TABLE  *SystemTable\r
-  )\r
-{\r
-  EFI_STATUS  Status;\r
-\r
-  //\r
-  // Make sure the Reset Architectural Protocol is not already installed in the system\r
-  //\r
-  ASSERT_PROTOCOL_ALREADY_INSTALLED (NULL, &gEfiResetArchProtocolGuid);\r
-\r
-  //\r
-  // Hook the runtime service table\r
-  //\r
-  SystemTable->RuntimeServices->ResetSystem = KbcResetSystem;\r
-\r
-  //\r
-  // Now install the Reset RT AP on a new handle\r
-  //\r
-  Status = gBS->InstallMultipleProtocolInterfaces (\r
-                  &mResetHandle,\r
-                  &gEfiResetArchProtocolGuid, NULL,\r
-                  NULL\r
-                  );\r
-  ASSERT_EFI_ERROR (Status);\r
-\r
-  return Status;\r
-}\r
index 25bb894f49159ba101be1a0290287cbd8e2a10e5..b740f00e635a0149953f729593716f9ff67c69cd 100644 (file)
@@ -52,7 +52,6 @@
   PcAtChipsetPkg/HpetTimerDxe/HpetTimerDxe.inf\r
   PcAtChipsetPkg/8259InterruptControllerDxe/8259.inf\r
   PcAtChipsetPkg/IsaAcpiDxe/IsaAcpi.inf\r
-  PcAtChipsetPkg/KbcResetDxe/Reset.inf\r
   PcAtChipsetPkg/Library/SerialIoLib/SerialIoLib.inf\r
   PcAtChipsetPkg/Library/ResetSystemLib/ResetSystemLib.inf\r
   PcAtChipsetPkg/Library/BaseIoApicLib/BaseIoApicLib.inf\r