]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Fix typo.
authorYao, Jiewen <jiewen.yao@intel.com>
Thu, 4 Dec 2014 06:03:58 +0000 (06:03 +0000)
committerjyao1 <jyao1@Edk2>
Thu, 4 Dec 2014 06:03:58 +0000 (06:03 +0000)
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: "Yao, Jiewen" <jiewen.yao@intel.com>
Reviewed-by: "Rangarajan, Ravi P" <ravi.p.rangarajan@intel.com>
Reviewed-by: "Ma, Maurice" <maurice.ma@intel.com>
Reviewed-by: "Mudusuru, Giri P" <giri.p.mudusuru@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16475 6f19259b-4bc3-4df7-8a09-765794883524

IntelFspPkg/Include/FspApi.h
IntelFspPkg/Library/BaseFspPlatformLib/FspPlatformNotify.c
IntelFspWrapperPkg/Library/BaseFspApiLib/FspApiLib.c

index 934a5766c3bce6091d05006d5700138acb6fe4f4..0ec930b0ca2541295d4848db7ccddaab5c714a3c 100644 (file)
@@ -185,7 +185,7 @@ FSP_STATUS
 **/\r
 typedef\r
 FSP_STATUS\r
 **/\r
 typedef\r
 FSP_STATUS\r
-(FSPAPI *FSP_NOTFY_PHASE) (\r
+(FSPAPI *FSP_NOTIFY_PHASE) (\r
   IN NOTIFY_PHASE_PARAMS *NotifyPhaseParamPtr\r
   );\r
 \r
   IN NOTIFY_PHASE_PARAMS *NotifyPhaseParamPtr\r
   );\r
 \r
index ef4406bec5373ce0fbb15436e2455d7b89199e29..d405233e41e208dd4262044b652ed981d98d2d5e 100644 (file)
@@ -38,7 +38,7 @@ EFI_PEI_PPI_DESCRIPTOR      mPeiReadyToBootPpi = {
 };\r
 \r
 \r
 };\r
 \r
 \r
-UINT32  mFspNotfifySequence[] = {\r
+UINT32  mFspNotifySequence[] = {\r
   EnumInitPhaseAfterPciEnumeration,\r
   EnumInitPhaseReadyToBoot\r
 };\r
   EnumInitPhaseAfterPciEnumeration,\r
   EnumInitPhaseReadyToBoot\r
 };\r
@@ -46,23 +46,23 @@ UINT32  mFspNotfifySequence[] = {
 /**\r
   Install FSP notification.\r
 \r
 /**\r
   Install FSP notification.\r
 \r
-  @param[in] NotificatonCode  FSP notification code\r
+  @param[in] NotificationCode  FSP notification code\r
 \r
   @retval EFI_SUCCESS            Notify FSP successfully\r
 \r
   @retval EFI_SUCCESS            Notify FSP successfully\r
-  @retval EFI_INVALID_PARAMETER  NotificatonCode is invalid\r
+  @retval EFI_INVALID_PARAMETER  NotificationCode is invalid\r
 \r
 **/\r
 EFI_STATUS\r
 EFIAPI\r
 FspNotificationHandler (\r
 \r
 **/\r
 EFI_STATUS\r
 EFIAPI\r
 FspNotificationHandler (\r
-  IN  UINT32     NotificatonCode\r
+  IN  UINT32     NotificationCode\r
   )\r
 {\r
   EFI_STATUS                Status;\r
 \r
   Status   = EFI_SUCCESS;\r
 \r
   )\r
 {\r
   EFI_STATUS                Status;\r
 \r
   Status   = EFI_SUCCESS;\r
 \r
-  switch (NotificatonCode) {\r
+  switch (NotificationCode) {\r
   case EnumInitPhaseAfterPciEnumeration:\r
     //\r
     // Do POST PCI initialization if needed\r
   case EnumInitPhaseAfterPciEnumeration:\r
     //\r
     // Do POST PCI initialization if needed\r
@@ -134,20 +134,20 @@ FspWaitForNotify (
   )\r
 {\r
   EFI_STATUS                 Status;\r
   )\r
 {\r
   EFI_STATUS                 Status;\r
-  UINT32                     NotificatonValue;\r
-  UINT32                     NotificatonCount;\r
+  UINT32                     NotificationValue;\r
+  UINT32                     NotificationCount;\r
   UINT8                      Count;\r
 \r
   UINT8                      Count;\r
 \r
-  NotificatonCount = 0;\r
-  while (NotificatonCount < sizeof(mFspNotfifySequence) / sizeof(UINT32)) {\r
+  NotificationCount = 0;\r
+  while (NotificationCount < sizeof(mFspNotifySequence) / sizeof(UINT32)) {\r
 \r
 \r
-    Count = (UINT8)((NotificatonCount << 1) & 0x07);\r
+    Count = (UINT8)((NotificationCount << 1) & 0x07);\r
     SetFspMeasurePoint (FSP_PERF_ID_API_NOTIFY_POSTPCI_ENTRY + Count);\r
 \r
     SetFspMeasurePoint (FSP_PERF_ID_API_NOTIFY_POSTPCI_ENTRY + Count);\r
 \r
-    NotificatonValue = ((NOTIFY_PHASE_PARAMS *)(UINTN)GetFspApiParameter ())->Phase;\r
-    DEBUG ((DEBUG_INFO, "FSP Got Notification. Notification Value : 0x%08X\n", NotificatonValue));\r
+    NotificationValue = ((NOTIFY_PHASE_PARAMS *)(UINTN)GetFspApiParameter ())->Phase;\r
+    DEBUG ((DEBUG_INFO, "FSP Got Notification. Notification Value : 0x%08X\n", NotificationValue));\r
 \r
 \r
-    if (mFspNotfifySequence[NotificatonCount] != NotificatonValue) {\r
+    if (mFspNotifySequence[NotificationCount] != NotificationValue) {\r
       //\r
       // Notify code does not follow the predefined order\r
       //\r
       //\r
       // Notify code does not follow the predefined order\r
       //\r
@@ -156,12 +156,12 @@ FspWaitForNotify (
       //\r
       // Process Notification and Give control back to the boot loader framework caller\r
       //\r
       //\r
       // Process Notification and Give control back to the boot loader framework caller\r
       //\r
-      Status = FspNotificationHandler (NotificatonValue);\r
+      Status = FspNotificationHandler (NotificationValue);\r
       SetFspApiReturnStatus(Status);\r
       if (!EFI_ERROR(Status)) {\r
       SetFspApiReturnStatus(Status);\r
       if (!EFI_ERROR(Status)) {\r
-        NotificatonCount++;\r
+        NotificationCount++;\r
         SetFspApiReturnStatus(EFI_SUCCESS);\r
         SetFspApiReturnStatus(EFI_SUCCESS);\r
-        if (NotificatonValue == EnumInitPhaseReadyToBoot) {\r
+        if (NotificationValue == EnumInitPhaseReadyToBoot) {\r
           break;\r
         }\r
       }\r
           break;\r
         }\r
       }\r
index 590238e3914abbcb336b3203680164b411c9569e..abe61b7affdbe14963c822add416846acd2afdd5 100644 (file)
@@ -117,10 +117,10 @@ CallFspNotifyPhase (
   IN NOTIFY_PHASE_PARAMS *NotifyPhaseParams\r
   )\r
 {\r
   IN NOTIFY_PHASE_PARAMS *NotifyPhaseParams\r
   )\r
 {\r
-  FSP_NOTFY_PHASE     NotifyPhaseApi;\r
+  FSP_NOTIFY_PHASE    NotifyPhaseApi;\r
   FSP_STATUS          FspStatus;\r
 \r
   FSP_STATUS          FspStatus;\r
 \r
-  NotifyPhaseApi = (FSP_NOTFY_PHASE)(UINTN)(FspHeader->ImageBase + FspHeader->NotifyPhaseEntryOffset);\r
+  NotifyPhaseApi = (FSP_NOTIFY_PHASE)(UINTN)(FspHeader->ImageBase + FspHeader->NotifyPhaseEntryOffset);\r
   FspStatus = Execute32BitCode ((UINTN)NotifyPhaseApi, (UINTN)NotifyPhaseParams);\r
 \r
   return FspStatus;\r
   FspStatus = Execute32BitCode ((UINTN)NotifyPhaseApi, (UINTN)NotifyPhaseParams);\r
 \r
   return FspStatus;\r