]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Add some definitions for efi event in Uefi/UefiSpec.h to follow spec.
authorvanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 25 Jun 2007 08:54:54 +0000 (08:54 +0000)
committervanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 25 Jun 2007 08:54:54 +0000 (08:54 +0000)
Changed old event definitions reference to these new event definitions.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2729 6f19259b-4bc3-4df7-8a09-765794883524

88 files changed:
EdkModulePkg/Bus/Pci/CirrusLogic/Dxe/CirrusLogic5430UgaDraw.c
EdkModulePkg/Bus/Pci/Ehci/Dxe/Ehci.c
EdkModulePkg/Bus/Pci/Ehci/Dxe/EhciMem.c
EdkModulePkg/Bus/Pci/Ehci/Dxe/EhciSched.c
EdkModulePkg/Bus/Pci/IdeBus/Dxe/idebus.c
EdkModulePkg/Bus/Pci/PciBus/Dxe/PciEnumeratorSupport.c
EdkModulePkg/Bus/Pci/PciBus/Dxe/PciHotPlugSupport.c
EdkModulePkg/Bus/Pci/Uhci/Dxe/uhci.c
EdkModulePkg/Bus/Pci/Undi/RuntimeDxe/Init.c
EdkModulePkg/Bus/Scsi/ScsiDisk/Dxe/ScsiDisk.c
EdkModulePkg/Bus/Usb/UsbBus/Dxe/usbbus.c
EdkModulePkg/Bus/Usb/UsbKb/Dxe/efikey.c
EdkModulePkg/Bus/Usb/UsbKb/Dxe/keyboard.c
EdkModulePkg/Bus/Usb/UsbMassStorage/Dxe/UsbMassStorage.c
EdkModulePkg/Bus/Usb/UsbMouse/Dxe/usbmouse.c
EdkModulePkg/Core/Dxe/Dispatcher/Dispatcher.c
EdkModulePkg/Core/Dxe/DxeMain/DxeProtocolNotify.c
EdkModulePkg/Core/Dxe/Event/event.c
EdkModulePkg/Core/Dxe/Event/execdata.c
EdkModulePkg/Core/Dxe/Event/timer.c
EdkModulePkg/Core/Dxe/Event/tpl.c
EdkModulePkg/Core/Dxe/Exec.h
EdkModulePkg/Core/Dxe/FwVol/FwVol.c
EdkModulePkg/Core/Dxe/Gcd/gcd.c
EdkModulePkg/Core/Dxe/Hand/handle.c
EdkModulePkg/Core/Dxe/Image/Image.c
EdkModulePkg/Core/Dxe/Library/Library.c
EdkModulePkg/Core/Dxe/Mem/memdata.c
EdkModulePkg/Core/Dxe/SectionExtraction/CoreSectionExtraction.c
EdkModulePkg/Library/EdkFvbServiceLib/Ia32/Fvb.c
EdkModulePkg/Library/EdkFvbServiceLib/x64/Fvb.c
EdkModulePkg/Library/EdkUefiRuntimeLib/Common/RuntimeLib.c
EdkModulePkg/Library/EdkUefiRuntimeLib/Ipf/RuntimeLib.c
EdkModulePkg/Universal/Console/ConSplitter/Dxe/ConSplitter.c
EdkModulePkg/Universal/Console/GraphicsConsole/Dxe/GraphicsConsole.c
EdkModulePkg/Universal/Console/Terminal/Dxe/Terminal.c
EdkModulePkg/Universal/DataHub/DataHub/Dxe/DataHub.c
EdkModulePkg/Universal/DataHub/DataHubStdErr/Dxe/DataHubStdErr.c
EdkModulePkg/Universal/DebugSupport/Dxe/ipf/plDebugSupport.c
EdkModulePkg/Universal/Ebc/Dxe/EbcInt.c
EdkModulePkg/Universal/EmuVariable/RuntimeDxe/EmuVariable.c
EdkModulePkg/Universal/MonotonicCounter/RuntimeDxe/MonotonicCounter.c
EdkModulePkg/Universal/Network/PxeBc/Dxe/bc.c
EdkModulePkg/Universal/Network/PxeBc/Dxe/pxe_bc_arp.c
EdkModulePkg/Universal/Network/PxeBc/Dxe/pxe_bc_dhcp.c
EdkModulePkg/Universal/Network/PxeBc/Dxe/pxe_bc_igmp.c
EdkModulePkg/Universal/Network/PxeBc/Dxe/pxe_bc_mtftp.c
EdkModulePkg/Universal/Network/PxeBc/Dxe/pxe_loadfile.c
EdkModulePkg/Universal/Network/PxeDhcp4/Dxe/support.c
EdkModulePkg/Universal/Network/Snp32_64/Dxe/callback.c
EdkModulePkg/Universal/Network/Snp32_64/Dxe/initialize.c
EdkModulePkg/Universal/Network/Snp32_64/Dxe/snp.c
EdkModulePkg/Universal/PCD/Dxe/Pcd.c
EdkModulePkg/Universal/Runtime/RuntimeDxe/Runtime.c
EdkModulePkg/Universal/StatusCode/Dxe/DataHubStatusCodeWorker.c
EdkModulePkg/Universal/StatusCode/Dxe/SerialStatusCodeWorker.c
EdkModulePkg/Universal/UserInterface/SetupBrowser/Dxe/Ui.c
EdkModulePkg/Universal/Variable/RuntimeDxe/Variable.c
EdkModulePkg/Universal/WatchdogTimer/Dxe/WatchDogTimer.c
EdkNt32Pkg/Dxe/Nt32Platform/MiscSubclass/MiscSubclassDriverEntryPoint.c
EdkNt32Pkg/Dxe/WinNtThunk/Bus/BlockIo/WinNtBlockIo.c
EdkNt32Pkg/Dxe/WinNtThunk/Bus/Console/ConsoleIn.c
EdkNt32Pkg/Dxe/WinNtThunk/Bus/Gop/WinNtGopInput.c
EdkNt32Pkg/Dxe/WinNtThunk/Bus/Gop/WinNtGopScreen.c
EdkNt32Pkg/Dxe/WinNtThunk/Bus/SerialIo/WinNtSerialIo.c
EdkNt32Pkg/Dxe/WinNtThunk/Bus/SimpleFileSystem/WinNtSimpleFileSystem.c
EdkNt32Pkg/Dxe/WinNtThunk/Bus/Uga/WinNtUgaInput.c
EdkNt32Pkg/Dxe/WinNtThunk/Bus/Uga/WinNtUgaScreen.c
EdkNt32Pkg/Dxe/WinNtThunk/Chipset/Timer/Timer.c
EdkNt32Pkg/Dxe/WinNtThunk/Cpu/Cpu.c
EdkNt32Pkg/RuntimeDxe/FvbServices/FWBlockService.c
EdkUnixPkg/Dxe/UnixPlatform/MiscSubclass/MiscSubclassDriverEntryPoint.c
EdkUnixPkg/Dxe/UnixThunk/Bus/BlockIo/UnixBlockIo.c
EdkUnixPkg/Dxe/UnixThunk/Bus/Console/ConsoleIn.c
EdkUnixPkg/Dxe/UnixThunk/Bus/SerialIo/UnixSerialIo.c
EdkUnixPkg/Dxe/UnixThunk/Bus/SimpleFileSystem/UnixSimpleFileSystem.c
EdkUnixPkg/Dxe/UnixThunk/Bus/Uga/UnixUgaInput.c
EdkUnixPkg/Dxe/UnixThunk/Bus/Uga/UnixUgaScreen.c
EdkUnixPkg/Dxe/UnixThunk/Chipset/Timer/Timer.c
EdkUnixPkg/Dxe/UnixThunk/Cpu/Cpu.c
EdkUnixPkg/RuntimeDxe/FvbServices/FWBlockService.c
IntelFrameworkPkg/Library/UefiLibFramework/UefiLib.c
IntelFrameworkPkg/Library/UefiLibFramework/UefiNotTiano.c
OldMdePkg/Include/Library/UefiLib.h
OldMdePkg/Include/Uefi/UefiSpec.h
OldMdePkg/Library/UefiDriverEntryPoint/DriverEntryPoint.c
OldMdePkg/Library/UefiLib/UefiLib.c
OldMdePkg/Library/UefiLib/UefiNotTiano.c

index e71ec8e405345948a0478da586ceddce8b63551b..056d1154a1c76975d2b8680d779c053ffa021656 100644 (file)
@@ -321,7 +321,7 @@ CirrusLogic5430UgaDrawBlt (
   // We would not want a timer based event (Cursor, ...) to come in while we are\r
   // doing this operation.\r
   //\r
-  OriginalTPL = gBS->RaiseTPL (EFI_TPL_NOTIFY);\r
+  OriginalTPL = gBS->RaiseTPL (TPL_NOTIFY);\r
 \r
   switch (BltOperation) {\r
   case EfiUgaVideoToBltBuffer:\r
index cb89e178f75b026b3f950427424a9538859bf11e..9065a2a88621959ee4605ac7e91363c19742dd6e 100644 (file)
@@ -2138,7 +2138,7 @@ EhciAsyncInterruptTransfer (
   //\r
   if (!IsNewTransfer) {\r
 \r
-    OldTpl = gBS->RaiseTPL (EFI_TPL_NOTIFY);\r
+    OldTpl = gBS->RaiseTPL (TPL_NOTIFY);\r
 \r
     Status = DeleteAsyncRequestTransfer (\r
                HcDev,\r
index 24a4616a2339cce3a488662117f577fd6aef26aa..db7412b93871575c376d00c103852e136a003027 100644 (file)
@@ -239,7 +239,7 @@ Returns:
   MemoryHeader  = HcDev->MemoryHeader;\r
   ASSERT (MemoryHeader != NULL);\r
 \r
-  OldTpl = gBS->RaiseTPL (EFI_TPL_NOTIFY + 1);\r
+  OldTpl = gBS->RaiseTPL (TPL_NOTIFY + 1);\r
 \r
   //\r
   // allocate unit is 32 bytes (align on 32 byte)\r
@@ -297,7 +297,7 @@ Returns:
     return Status;\r
   }\r
 \r
-  OldTpl = gBS->RaiseTPL (EFI_TPL_NOTIFY + 1);\r\r
+  OldTpl = gBS->RaiseTPL (TPL_NOTIFY + 1);\r\r
        \r
   //\r
   // Link the new Memory Block to the Memory Header list\r
@@ -353,7 +353,7 @@ Returns:
   UINTN                 RealAllocSize;\r
   EFI_TPL               OldTpl;\r
 \r
-  OldTpl        = gBS->RaiseTPL (EFI_TPL_NOTIFY + 1);\r
+  OldTpl        = gBS->RaiseTPL (TPL_NOTIFY + 1);\r
 \r
   MemoryHeader  = HcDev->MemoryHeader;\r
 \r
@@ -419,7 +419,7 @@ Returns:
       //\r
       gBS->RestoreTPL (OldTpl);\r
       FreeMemoryHeader (HcDev, TempHeaderPtr);\r
-      OldTpl = gBS->RaiseTPL (EFI_TPL_NOTIFY + 1);\r
+      OldTpl = gBS->RaiseTPL (TPL_NOTIFY + 1);\r
       //\r
       // reset the TempHeaderPtr, continue search for\r
       // another empty memory block.\r
index 448fe206d33322b160078ab8faf59bfe76a27e9f..4e4a54c9267721a569449f0f59112e781c413aae 100644 (file)
@@ -253,7 +253,7 @@ Returns:
   //\r
   if (HcDev->Is64BitCapable != 0) {\r
        HcDev->High32BitAddr = (UINT32) GET_32B_TO_63B (FrameBuffer);\r
-       \r
+\r
        Status = SetCtrlDataStructSeg (HcDev);\r
     if (EFI_ERROR (Status)) {\r
       DEBUG ((gEHCErrorLevel, "EHCI: SetCtrlDataStructSeg Failed\n"));\r
@@ -347,8 +347,8 @@ Returns:
 --*/\r
 {\r
   return gBS->CreateEvent (\r
-                EFI_EVENT_TIMER | EFI_EVENT_NOTIFY_SIGNAL,\r
-                EFI_TPL_NOTIFY,\r
+                EVT_TIMER | EVT_NOTIFY_SIGNAL,\r
+                TPL_NOTIFY,\r
                 NotifyFunction,\r
                 HcDev,\r
                 &HcDev->AsyncRequestEvent\r
@@ -1868,7 +1868,7 @@ Returns:
   QhPtr->Qh.HeadReclamationFlag = FALSE;\r
 \r
   if (QhPtr->TransferType == ASYNC_INTERRUPT_TRANSFER) {\r
-       \r
+\r
     //\r
     // AsyncInterruptTransfer Qh\r
     //\r
@@ -2596,7 +2596,7 @@ Returns:
     break;\r
 \r
   default:\r
-       \r
+\r
     Status = EFI_INVALID_PARAMETER;\r
   }\r
 \r
index c1c14052f1826621e14af9a88fb1d9c8f6fb0879..c45238cf8e21de355b5226d5e1c150d866bb2ec7 100644 (file)
@@ -1,12 +1,12 @@
 /** @file\r
   Copyright (c) 2006 - 2007 Intel Corporation. <BR>\r
-  All rights reserved. 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
+  All rights reserved. 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
+  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
   @par Revision Reference:\r
   This module is modified from DXE\IDE module for Ide Contriller Init support\r
@@ -89,7 +89,7 @@ IDEBusDriverBindingSupported (
   if (EFI_ERROR (Status)) {\r
     return Status;\r
   }\r
\r
+\r
   //\r
   // Close protocol, don't use device path protocol in the .Support() function\r
   //\r
@@ -140,7 +140,7 @@ IDEBusDriverBindingSupported (
 // ***********************************************************************************\r
 //\r
 /**\r
-  Start this driver on Controller by detecting all disks and installing \r
+  Start this driver on Controller by detecting all disks and installing\r
   BlockIo protocol on them.\r
 \r
   @param  This Protocol instance pointer.\r
@@ -210,7 +210,7 @@ IDEBusDriverBindingStart (
   if ((EFI_ERROR (Status)) && (Status != EFI_ALREADY_STARTED)) {\r
     return Status;\r
   }\r
-  \r
+\r
   //\r
   // Now open the IDE_CONTROLLER_INIT protocol. Step7.1\r
   //\r
@@ -429,7 +429,7 @@ IDEBusDriverBindingStart (
       if (!(ConfigurationOptions & (1 << (IdeChannel * 2 + IdeDevice)))) {\r
         continue;\r
       }\r
-      \r
+\r
       //\r
       // The device has been scanned in another Start(), No need to scan it again\r
       // for perf optimization.\r
@@ -437,7 +437,7 @@ IDEBusDriverBindingStart (
       if (IdeBusDriverPrivateData->HaveScannedDevice[IdeChannel * 2 + IdeDevice]) {\r
         continue;\r
       }\r
-      \r
+\r
       //\r
       // create child handle for the detected device.\r
       //\r
@@ -664,7 +664,7 @@ IDEBusDriverBindingStart (
       if ((IdeBlkIoDevicePtr->Type == IdeHardDisk) || (IdeBlkIoDevicePtr->Type == Ide48bitAddressingHardDisk)) {\r
         Status = SetDriveParameters (IdeBlkIoDevicePtr, &DriveParameters);\r
       }\r
-      \r
+\r
       //\r
       // Record PIO mode used in private data\r
       //\r
@@ -715,13 +715,13 @@ IDEBusDriverBindingStart (
         (EFI_IO_BUS_ATA_ATAPI | EFI_P_PC_ENABLE),\r
         IdeBlkIoDevicePtr->DevicePath\r
         );\r
-      \r
+\r
       //\r
       // Create event to clear pending IDE interrupt\r
       //\r
       Status = gBS->CreateEvent (\r
-                      EFI_EVENT_SIGNAL_EXIT_BOOT_SERVICES,\r
-                      EFI_TPL_NOTIFY,\r
+                      EVT_SIGNAL_EXIT_BOOT_SERVICES,\r
+                      TPL_NOTIFY,\r
                       ClearInterrupt,\r
                       IdeBlkIoDevicePtr,\r
                       &IdeBlkIoDevicePtr->ExitBootServiceEvent\r
@@ -735,7 +735,7 @@ IDEBusDriverBindingStart (
     // end of 2nd outer loop ==========\r
     //\r
   }\r
-  \r
+\r
   //\r
   // All configurations done! Notify IdeController to do post initialization\r
   // work such as saving IDE controller PCI settings for S3 resume\r
@@ -808,7 +808,7 @@ ErrorExit:
 // ***********************************************************************************\r
 //\r
 /**\r
-  Stop this driver on Controller Handle. \r
+  Stop this driver on Controller Handle.\r
 \r
   @param  This Protocol instance pointer.\r
   @param  DeviceHandle Handle of device to stop driver on\r
@@ -1003,7 +1003,7 @@ DeRegisterIdeDevice (
           );\r
     return Status;\r
   }\r
-  \r
+\r
   //\r
   // Release allocated resources\r
   //\r
@@ -1037,7 +1037,7 @@ IDEBlkIoReset (
   EFI_STATUS      Status;\r
   EFI_TPL         OldTpl;\r
 \r
-  OldTpl = gBS->RaiseTPL (EFI_TPL_CALLBACK);\r
+  OldTpl = gBS->RaiseTPL (TPL_CALLBACK);\r
 \r
   IdeBlkIoDevice = IDE_BLOCK_IO_DEV_FROM_THIS (This);\r
   //\r
@@ -1058,7 +1058,7 @@ IDEBlkIoReset (
     Status = EFI_DEVICE_ERROR;\r
     goto Done;\r
   }\r
-  \r
+\r
   //\r
   // for ATAPI device, using ATAPI reset method\r
   //\r
@@ -1099,7 +1099,7 @@ IDEBlkIoReadBlocks (
   EFI_STATUS      Status;\r
   EFI_TPL         OldTpl;\r
 \r
-  OldTpl = gBS->RaiseTPL (EFI_TPL_CALLBACK);\r
+  OldTpl = gBS->RaiseTPL (TPL_CALLBACK);\r
 \r
   IdeBlkIoDevice = IDE_BLOCK_IO_DEV_FROM_THIS (This);\r
 \r
@@ -1127,7 +1127,7 @@ IDEBlkIoReadBlocks (
     Status = EFI_DEVICE_ERROR;\r
     goto Done;\r
   }\r
-  \r
+\r
   //\r
   // for ATAPI device, using ATAPI read block's mechanism\r
   //\r
@@ -1172,8 +1172,8 @@ IDEBlkIoWriteBlocks (
   EFI_STATUS      Status;\r
   EFI_TPL         OldTpl;\r
 \r
-  OldTpl = gBS->RaiseTPL (EFI_TPL_CALLBACK);\r
-  \r
+  OldTpl = gBS->RaiseTPL (TPL_CALLBACK);\r
+\r
   IdeBlkIoDevice = IDE_BLOCK_IO_DEV_FROM_THIS (This);\r
   //\r
   // Requery IDE IO resources in case of the switch of native and legacy modes\r
@@ -1184,7 +1184,7 @@ IDEBlkIoWriteBlocks (
   // for ATA device, using ATA write block's mechanism\r
   //\r
   if (IdeBlkIoDevice->Type == IdeHardDisk ||\r
-      IdeBlkIoDevice->Type == Ide48bitAddressingHardDisk) {        \r
+      IdeBlkIoDevice->Type == Ide48bitAddressingHardDisk) {\r
 \r
     Status = AtaBlkIoWriteBlocks (\r
             IdeBlkIoDevice,\r
@@ -1200,7 +1200,7 @@ IDEBlkIoWriteBlocks (
     Status = EFI_DEVICE_ERROR;\r
     goto Done;\r
   }\r
-  \r
+\r
   //\r
   // for ATAPI device, using ATAPI write block's mechanism\r
   //\r
@@ -1211,7 +1211,7 @@ IDEBlkIoWriteBlocks (
           BufferSize,\r
           Buffer\r
           );\r
-  \r
+\r
 Done:\r
   gBS->RestoreTPL (OldTpl);\r
   return Status;\r
index 52a3a7bee5bed9769504d89093ca7474113306ee..8020ab120f3e38d38ae887206162218b9bf1f0af 100644 (file)
@@ -693,7 +693,7 @@ Returns:
   //\r
   // Raise TPL to high level to disable timer interrupt while the BAR is probed\r
   //\r
-  OldTpl = gBS->RaiseTPL (EFI_TPL_HIGH_LEVEL);\r
+  OldTpl = gBS->RaiseTPL (TPL_HIGH_LEVEL);\r
 \r
   PciIoWrite (PciIo, EfiPciIoWidthUint32, (UINT8) Offset, 1, &gAllOne);\r
   PciIoRead (PciIo, EfiPciIoWidthUint32, (UINT8) Offset, 1, &Value);\r
@@ -759,7 +759,7 @@ Returns:
   //\r
   // Raise TPL to high level to disable timer interrupt while the BAR is probed\r
   //\r
-  OldTpl = gBS->RaiseTPL (EFI_TPL_HIGH_LEVEL);\r
+  OldTpl = gBS->RaiseTPL (TPL_HIGH_LEVEL);\r
 \r
   PciSetCommandRegister (PciIoDevice, *Command);\r
   PciReadCommandRegister (PciIoDevice, Command);\r
@@ -784,7 +784,7 @@ Returns:
     //\r
     // Raise TPL to high level to disable timer interrupt while the BAR is probed\r
     //\r
-    OldTpl = gBS->RaiseTPL (EFI_TPL_HIGH_LEVEL);\r
+    OldTpl = gBS->RaiseTPL (TPL_HIGH_LEVEL);\r
 \r
     PciSetBridgeControlRegister (PciIoDevice, *BridgeControl);\r
     PciReadBridgeControlRegister (PciIoDevice, BridgeControl);\r
index 7fba0476b5c25d9ec602c5c32c29eb5d1ec0ef55..3ef1daf69ec089585e368d48b0c2e9b4d726ff26 100644 (file)
@@ -1,21 +1,21 @@
 /*++\r
 \r
-Copyright (c) 2006 - 2007, Intel Corporation                                                         \r
-All rights reserved. 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
+Copyright (c) 2006 - 2007, Intel Corporation\r
+All rights reserved. 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
 \r
   PciHotPlugSupport.c\r
-  \r
+\r
 Abstract:\r
 \r
-  \r
+\r
 \r
 Revision History\r
 \r
@@ -254,8 +254,8 @@ Returns:
   EFI_STATUS  Status;\r
 \r
   Status = gBS->CreateEvent (\r
-                  EFI_EVENT_NOTIFY_SIGNAL,\r
-                  EFI_TPL_CALLBACK,\r
+                 EVT_NOTIFY_SIGNAL,\r
+                  TPL_CALLBACK,\r
                   PciHPCInitialized,\r
                   gPciRootHpcData + HpIndex,\r
                   &((gPciRootHpcData + HpIndex)->Event)\r
index b3cb1f543dab18ef324a700f258212fc10aa2ae5..7cb9605066df040370efa4328193681e9897717f 100644 (file)
@@ -1,20 +1,20 @@
 /*++\r
 \r
-Copyright (c) 2006, Intel Corporation                                                         \r
-All rights reserved. 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
+Copyright (c) 2006, Intel Corporation\r
+All rights reserved. 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
 \r
     Uhci.c\r
-    \r
-Abstract: \r
-    \r
+\r
+Abstract:\r
+\r
 \r
 Revision History\r
 --*/\r
@@ -144,13 +144,13 @@ UHCIDriverBindingStart (
     EFI_OUT_OF_RESOURCES\r
 \r
 --*/\r
-{ \r
-  EFI_STATUS              Status; \r
-  UINTN                   FlBaseAddrReg; \r
-  EFI_PCI_IO_PROTOCOL     *PciIo; \r
+{\r
+  EFI_STATUS              Status;\r
+  UINTN                   FlBaseAddrReg;\r
+  EFI_PCI_IO_PROTOCOL     *PciIo;\r
   USB_HC_DEV              *HcDev;\r
   UINT64                  Supports;\r
-  \r
+\r
   HcDev = NULL;\r
 \r
   Status = gBS->OpenProtocol (\r
@@ -249,10 +249,10 @@ UHCIDriverBindingStart (
   HcDev->Usb2Hc.GetRootHubPortStatus     = UHCI2GetRootHubPortStatus;\r
   HcDev->Usb2Hc.SetRootHubPortFeature    = UHCI2SetRootHubPortFeature;\r
   HcDev->Usb2Hc.ClearRootHubPortFeature  = UHCI2ClearRootHubPortFeature;\r
-  \r
+\r
   HcDev->Usb2Hc.MajorRevision            = 0x1;\r
   HcDev->Usb2Hc.MinorRevision            = 0x1;\r
-  \r
+\r
   //\r
   //  Init UHCI private data structures\r
   //\r
@@ -289,8 +289,8 @@ UHCIDriverBindingStart (
   //  Create timer for interrupt transfer result polling\r
   //\r
   Status = gBS->CreateEvent (\r
-                  EFI_EVENT_TIMER | EFI_EVENT_NOTIFY_SIGNAL,\r
-                  EFI_TPL_NOTIFY,\r
+                  EVT_TIMER | EVT_NOTIFY_SIGNAL,\r
+                  TPL_NOTIFY,\r
                   MonitorInterruptTrans,\r
                   HcDev,\r
                   &HcDev->InterruptTransTimer\r
@@ -337,7 +337,7 @@ UHCIDriverBindingStart (
            );\r
     return EFI_UNSUPPORTED;\r
   }\r
-  \r
+\r
   //\r
   // QH,TD structures must in common buffer that will be\r
   // accessed by both cpu and usb bus master at the same time.\r
@@ -345,9 +345,9 @@ UHCIDriverBindingStart (
   //\r
   Status = InitializeMemoryManagement (HcDev);\r
   if (EFI_ERROR (Status)) {\r
-  \r
+\r
     gBS->CloseEvent (HcDev->InterruptTransTimer);\r
-    \r
+\r
     FreeFrameListEntry (HcDev);\r
 \r
     if (HcDev != NULL) {\r
@@ -355,9 +355,9 @@ UHCIDriverBindingStart (
     }\r
 \r
     gBS->CloseProtocol (\r
-           Controller, \r
-           &gEfiPciIoProtocolGuid, \r
-           This->DriverBindingHandle,   \r
+           Controller,\r
+           &gEfiPciIoProtocolGuid,\r
+           This->DriverBindingHandle,\r
            Controller\r
            );\r
     return Status;\r
@@ -417,7 +417,7 @@ UHCIDriverBindingStart (
 \r
     return Status;\r
   }\r
-  \r
+\r
   //\r
   // component name protocol.\r
   //\r
@@ -461,13 +461,13 @@ UnInstallUHCInterface (
          &gEfiUsbHcProtocolGuid,\r
          &HcDev->UsbHc\r
          );\r
-         \r
+\r
   gBS->UninstallProtocolInterface (\r
          Controller,\r
          &gEfiUsb2HcProtocolGuid,\r
          &HcDev->Usb2Hc\r
          );\r
-  //     \r
+  //\r
   // first stop USB Host Controller\r
   //\r
   This->SetState (This, EfiUsbHcStateHalt);\r
@@ -610,35 +610,35 @@ UHCIReset (
   IN UINT16                  Attributes\r
   )\r
 /*++\r
-  \r
+\r
   Routine Description:\r
     Provides software reset for the USB host controller.\r
-  \r
+\r
   Arguments:\r
-  \r
-  This        A pointer to the EFI_USB_HC_PROTOCOL instance.  \r
-  \r
-  Attributes  A bit mask of the reset operation to perform. \r
+\r
+  This        A pointer to the EFI_USB_HC_PROTOCOL instance.\r
+\r
+  Attributes  A bit mask of the reset operation to perform.\r
               See below for a list of the supported bit mask values.\r
-  \r
+\r
   #define EFI_USB_HC_RESET_GLOBAL           0x0001\r
   #define EFI_USB_HC_RESET_HOST_CONTROLLER  0x0002\r
 \r
-  EFI_USB_HC_RESET_GLOBAL \r
+  EFI_USB_HC_RESET_GLOBAL\r
         If this bit is set, a global reset signal will be sent to the USB bus.\r
-        This resets all of the USB bus logic, including the USB host \r
+        This resets all of the USB bus logic, including the USB host\r
         controller hardware and all the devices attached on the USB bus.\r
-  EFI_USB_HC_RESET_HOST_CONTROLLER  \r
-        If this bit is set, the USB host controller hardware will be reset. \r
+  EFI_USB_HC_RESET_HOST_CONTROLLER\r
+        If this bit is set, the USB host controller hardware will be reset.\r
         No reset signal will be sent to the USB bus.\r
-  \r
+\r
   Returns:\r
-    EFI_SUCCESS \r
+    EFI_SUCCESS\r
         The reset operation succeeded.\r
-    EFI_INVALID_PARAMETER \r
+    EFI_INVALID_PARAMETER\r
         Attributes is not valid.\r
-    EFI_DEVICE_ERROR  \r
-        An error was encountered while attempting to perform \r
+    EFI_DEVICE_ERROR\r
+        An error was encountered while attempting to perform\r
         the reset operation.\r
 --*/\r
 {\r
@@ -736,7 +736,7 @@ UHCIReset (
   if (!Match) {\r
     return EFI_INVALID_PARAMETER;\r
   }\r
-  \r
+\r
   //\r
   // Delete all old transactions on the USB bus\r
   //\r
@@ -767,33 +767,33 @@ UHCIGetState (
   OUT EFI_USB_HC_STATE        *State\r
   )\r
 /*++\r
-  \r
+\r
   Routine Description:\r
     Retrieves current state of the USB host controller.\r
-  \r
+\r
   Arguments:\r
-    \r
+\r
     This      A pointer to the EFI_USB_HC_PROTOCOL instance.\r
-    \r
-    State     A pointer to the EFI_USB_HC_STATE data structure that \r
-              indicates current state of the USB host controller.  \r
+\r
+    State     A pointer to the EFI_USB_HC_STATE data structure that\r
+              indicates current state of the USB host controller.\r
               Type EFI_USB_HC_STATE is defined below.\r
-              \r
+\r
     typedef enum {\r
       EfiUsbHcStateHalt,\r
       EfiUsbHcStateOperational,\r
       EfiUsbHcStateSuspend,\r
       EfiUsbHcStateMaximum\r
     } EFI_USB_HC_STATE;\r
-  \r
+\r
   Returns:\r
-    EFI_SUCCESS \r
+    EFI_SUCCESS\r
             The state information of the host controller was returned in State.\r
-    EFI_INVALID_PARAMETER \r
+    EFI_INVALID_PARAMETER\r
             State is NULL.\r
-    EFI_DEVICE_ERROR  \r
-            An error was encountered while attempting to retrieve the \r
-            host controller's current state.  \r
+    EFI_DEVICE_ERROR\r
+            An error was encountered while attempting to retrieve the\r
+            host controller's current state.\r
 --*/\r
 {\r
   USB_HC_DEV  *HcDev;\r
@@ -853,24 +853,24 @@ UHCISetState (
   IN EFI_USB_HC_STATE        State\r
   )\r
 /*++\r
-  \r
+\r
   Routine Description:\r
     Sets the USB host controller to a specific state.\r
-  \r
+\r
   Arguments:\r
-    \r
+\r
     This      A pointer to the EFI_USB_HC_PROTOCOL instance.\r
 \r
     State     Indicates the state of the host controller that will be set.\r
-  \r
+\r
   Returns:\r
-    EFI_SUCCESS \r
-          The USB host controller was successfully placed in the state \r
+    EFI_SUCCESS\r
+          The USB host controller was successfully placed in the state\r
           specified by State.\r
-    EFI_INVALID_PARAMETER \r
+    EFI_INVALID_PARAMETER\r
           State is invalid.\r
-    EFI_DEVICE_ERROR  \r
-          Failed to set the state specified by State due to device error.  \r
+    EFI_DEVICE_ERROR\r
+          Failed to set the state specified by State due to device error.\r
 --*/\r
 {\r
   USB_HC_DEV        *HcDev;\r
@@ -970,7 +970,7 @@ UHCISetState (
       if (EFI_ERROR (Status)) {\r
         return EFI_DEVICE_ERROR;\r
       }\r
-      \r
+\r
       //\r
       // FGR(Force Global Resume) bit is 0\r
       //\r
@@ -985,7 +985,7 @@ UHCISetState (
           Command\r
           );\r
       }\r
-      \r
+\r
       //\r
       // wait 20ms to let resume complete\r
       // (20ms is specified by UHCI spec)\r
@@ -1056,24 +1056,24 @@ UHCIGetRootHubPortNumber (
   OUT UINT8                   *PortNumber\r
   )\r
 /*++\r
-  \r
+\r
   Routine Description:\r
     Retrieves the number of root hub ports.\r
-    \r
+\r
   Arguments:\r
-  \r
+\r
     This        A pointer to the EFI_USB_HC_PROTOCOL instance.\r
-    \r
+\r
     PortNumber  A pointer to the number of the root hub ports.\r
-  \r
+\r
   Returns:\r
-    EFI_SUCCESS \r
+    EFI_SUCCESS\r
           The port number was retrieved successfully.\r
-    EFI_INVALID_PARAMETER \r
+    EFI_INVALID_PARAMETER\r
           PortNumber is NULL.\r
-    EFI_DEVICE_ERROR  \r
-          An error was encountered while attempting to \r
-          retrieve the port number.  \r
+    EFI_DEVICE_ERROR\r
+          An error was encountered while attempting to\r
+          retrieve the port number.\r
 --*/\r
 {\r
   USB_HC_DEV  *HcDev;\r
@@ -1119,29 +1119,29 @@ UHCIGetRootHubPortStatus (
   OUT EFI_USB_PORT_STATUS     *PortStatus\r
   )\r
 /*++\r
-  \r
+\r
   Routine Description:\r
     Retrieves the current status of a USB root hub port.\r
-  \r
+\r
   Arguments:\r
-  \r
+\r
     This        A pointer to the EFI_USB_HC_PROTOCOL.\r
-    \r
-    PortNumber  Specifies the root hub port from which the status \r
-                is to be retrieved.  This value is zero-based. For example, \r
+\r
+    PortNumber  Specifies the root hub port from which the status\r
+                is to be retrieved.  This value is zero-based. For example,\r
                 if a root hub has two ports, then the first port is numbered 0,\r
                 and the second port is numbered 1.\r
-    \r
-    PortStatus  A pointer to the current port status bits and \r
-                port status change bits.  \r
-  \r
+\r
+    PortStatus  A pointer to the current port status bits and\r
+                port status change bits.\r
+\r
   Returns:\r
-    EFI_SUCCESS \r
-        The status of the USB root hub port specified by PortNumber \r
+    EFI_SUCCESS\r
+        The status of the USB root hub port specified by PortNumber\r
         was returned in PortStatus.\r
-    EFI_INVALID_PARAMETER \r
-        PortNumber is invalid. \r
-    EFI_DEVICE_ERROR - Can't read register      \r
+    EFI_INVALID_PARAMETER\r
+        PortNumber is invalid.\r
+    EFI_DEVICE_ERROR - Can't read register\r
 --*/\r
 {\r
   USB_HC_DEV  *HcDev;\r
@@ -1180,7 +1180,7 @@ UHCIGetRootHubPortStatus (
   //\r
   //    Fill Port Status bits\r
   //\r
-  \r
+\r
   //\r
   // Current Connect Status\r
   //\r
@@ -1193,21 +1193,21 @@ UHCIGetRootHubPortStatus (
   if (RHPortStatus & USBPORTSC_PED) {\r
     PortStatus->PortStatus |= USB_PORT_STAT_ENABLE;\r
   }\r
-  \r
+\r
   //\r
   // Port Suspend\r
   //\r
   if (RHPortStatus & USBPORTSC_SUSP) {\r
     PortStatus->PortStatus |= USB_PORT_STAT_SUSPEND;\r
   }\r
-  \r
+\r
   //\r
   // Port Reset\r
   //\r
   if (RHPortStatus & USBPORTSC_PR) {\r
     PortStatus->PortStatus |= USB_PORT_STAT_RESET;\r
   }\r
-  \r
+\r
   //\r
   // Low Speed Device Attached\r
   //\r
@@ -1221,14 +1221,14 @@ UHCIGetRootHubPortStatus (
   //\r
   //   Fill Port Status Change bits\r
   //\r
-  \r
+\r
   //\r
   // Connect Status Change\r
   //\r
   if (RHPortStatus & USBPORTSC_CSC) {\r
     PortStatus->PortChangeStatus |= USB_PORT_STAT_C_CONNECTION;\r
   }\r
-  \r
+\r
   //\r
   // Port Enabled/Disabled Change\r
   //\r
@@ -1247,25 +1247,25 @@ UHCISetRootHubPortFeature (
   IN  EFI_USB_PORT_FEATURE    PortFeature\r
   )\r
 /*++\r
-  \r
+\r
   Routine Description:\r
     Sets a feature for the specified root hub port.\r
-  \r
+\r
   Arguments:\r
-  \r
+\r
     This        A pointer to the EFI_USB_HC_PROTOCOL.\r
-    \r
-    PortNumber  Specifies the root hub port whose feature \r
+\r
+    PortNumber  Specifies the root hub port whose feature\r
                 is requested to be set.\r
-    \r
-    PortFeature Indicates the feature selector associated \r
-                with the feature set request. \r
-  \r
+\r
+    PortFeature Indicates the feature selector associated\r
+                with the feature set request.\r
+\r
   Returns:\r
-    EFI_SUCCESS \r
-        The feature specified by PortFeature was set for the \r
+    EFI_SUCCESS\r
+        The feature specified by PortFeature was set for the\r
         USB root hub port specified by PortNumber.\r
-    EFI_INVALID_PARAMETER \r
+    EFI_INVALID_PARAMETER\r
         PortNumber is invalid or PortFeature is invalid.\r
     EFI_DEVICE_ERROR\r
         Can't read register\r
@@ -1359,25 +1359,25 @@ UHCIClearRootHubPortFeature (
   IN  EFI_USB_PORT_FEATURE    PortFeature\r
   )\r
 /*++\r
-  \r
+\r
   Routine Description:\r
     Clears a feature for the specified root hub port.\r
-  \r
+\r
   Arguments:\r
-  \r
+\r
     This        A pointer to the EFI_USB_HC_PROTOCOL instance.\r
-    \r
-    PortNumber  Specifies the root hub port whose feature \r
+\r
+    PortNumber  Specifies the root hub port whose feature\r
                 is requested to be cleared.\r
-    \r
-    PortFeature Indicates the feature selector associated with the \r
+\r
+    PortFeature Indicates the feature selector associated with the\r
                 feature clear request.\r
-                  \r
+\r
   Returns:\r
-    EFI_SUCCESS \r
-        The feature specified by PortFeature was cleared for the \r
+    EFI_SUCCESS\r
+        The feature specified by PortFeature was cleared for the\r
         USB root hub port specified by PortNumber.\r
-    EFI_INVALID_PARAMETER \r
+    EFI_INVALID_PARAMETER\r
         PortNumber is invalid or PortFeature is invalid.\r
     EFI_DEVICE_ERROR\r
         Can't read register\r
@@ -1501,54 +1501,54 @@ UHCIControlTransfer (
   OUT      UINT32                     *TransferResult\r
   )\r
 /*++\r
-  \r
+\r
   Routine Description:\r
     Submits control transfer to a target USB device.\r
-  \r
+\r
   Arguments:\r
-    \r
+\r
     This          A pointer to the EFI_USB_HC_PROTOCOL instance.\r
 \r
     DeviceAddress Represents the address of the target device on the USB,\r
                   which is assigned during USB enumeration.\r
 \r
-    IsSlowDevice  Indicates whether the target device is slow device \r
+    IsSlowDevice  Indicates whether the target device is slow device\r
                   or full-speed device.\r
-    \r
-    MaximumPacketLength Indicates the maximum packet size that the \r
-                        default control transfer endpoint is capable of \r
+\r
+    MaximumPacketLength Indicates the maximum packet size that the\r
+                        default control transfer endpoint is capable of\r
                         sending or receiving.\r
-    \r
-    Request       A pointer to the USB device request that will be sent \r
-                  to the USB device. \r
-    \r
+\r
+    Request       A pointer to the USB device request that will be sent\r
+                  to the USB device.\r
+\r
     TransferDirection Specifies the data direction for the transfer.\r
-                      There are three values available, DataIn, DataOut \r
+                      There are three values available, DataIn, DataOut\r
                       and NoData.\r
-    \r
-    Data          A pointer to the buffer of data that will be transmitted \r
+\r
+    Data          A pointer to the buffer of data that will be transmitted\r
                   to USB device or received from USB device.\r
-    \r
-    DataLength    Indicates the size, in bytes, of the data buffer \r
+\r
+    DataLength    Indicates the size, in bytes, of the data buffer\r
                   specified by Data.\r
-    \r
-    TimeOut       Indicates the maximum time, in microseconds, \r
+\r
+    TimeOut       Indicates the maximum time, in microseconds,\r
                   which the transfer is allowed to complete.\r
-    \r
-    TransferResult  A pointer to the detailed result information generated \r
+\r
+    TransferResult  A pointer to the detailed result information generated\r
                     by this control transfer.\r
-                    \r
+\r
   Returns:\r
-    EFI_SUCCESS \r
+    EFI_SUCCESS\r
         The control transfer was completed successfully.\r
-    EFI_OUT_OF_RESOURCES  \r
+    EFI_OUT_OF_RESOURCES\r
         The control transfer could not be completed due to a lack of resources.\r
-    EFI_INVALID_PARAMETER \r
+    EFI_INVALID_PARAMETER\r
         Some parameters are invalid.\r
-    EFI_TIMEOUT \r
+    EFI_TIMEOUT\r
         The control transfer failed due to timeout.\r
-    EFI_DEVICE_ERROR  \r
-        The control transfer failed due to host controller or device error. \r
+    EFI_DEVICE_ERROR\r
+        The control transfer failed due to host controller or device error.\r
         Caller should check TranferResult for detailed error information.\r
 \r
 --*/\r
@@ -1602,7 +1602,7 @@ UHCIControlTransfer (
   if (Request == NULL || TransferResult == NULL) {\r
     return EFI_INVALID_PARAMETER;\r
   }\r
-  \r
+\r
   //\r
   // if errors exist that cause host controller halt,\r
   // then return EFI_DEVICE_ERROR.\r
@@ -1613,7 +1613,7 @@ UHCIControlTransfer (
     *TransferResult = EFI_USB_ERR_SYSTEM;\r
     return EFI_DEVICE_ERROR;\r
   }\r
-  \r
+\r
   //\r
   // low speed usb devices are limited to only an eight-byte\r
   // maximum data payload size\r
@@ -1622,7 +1622,7 @@ UHCIControlTransfer (
     return EFI_INVALID_PARAMETER;\r
   }\r
 \r
-  if (MaximumPacketLength != 8  && \r
+  if (MaximumPacketLength != 8  &&\r
       MaximumPacketLength != 16 &&\r
       MaximumPacketLength != 32 &&\r
       MaximumPacketLength != 64) {\r
@@ -1714,7 +1714,7 @@ UHCIControlTransfer (
     HcDev->PciIo->Unmap (HcDev->PciIo, Mapping);\r
     return Status;\r
   }\r
-  \r
+\r
   //\r
   // map the Request for bus master access.\r
   // BusMasterRead means cpu write\r
@@ -1756,7 +1756,7 @@ UHCIControlTransfer (
     HcDev->PciIo->Unmap (HcDev->PciIo, RequestMapping);\r
     return Status;\r
   }\r
-  \r
+\r
   //\r
   //  Data Stage of Control Transfer\r
   //\r
@@ -1766,7 +1766,7 @@ UHCIControlTransfer (
     //\r
     // create TD structures and link together\r
     //\r
-    \r
+\r
     //\r
     // PktSize is the data load size that each TD carries.\r
     //\r
@@ -1798,7 +1798,7 @@ UHCIControlTransfer (
       DeleteQueuedTDs (HcDev, PtrFirstDataTD);\r
       return Status;\r
     }\r
-    \r
+\r
     //\r
     // Link two TDs in vertical depth\r
     //\r
@@ -1827,7 +1827,7 @@ UHCIControlTransfer (
   } else {\r
     PktID = OUTPUT_PACKET_ID;\r
   }\r
-  \r
+\r
   //\r
   // create Status Stage TD structure\r
   //\r
@@ -2101,54 +2101,54 @@ UHCIBulkTransfer (
   OUT      UINT32                  *TransferResult\r
   )\r
 /*++\r
-  \r
+\r
   Routine Description:\r
     Submits bulk transfer to a bulk endpoint of a USB device.\r
-    \r
+\r
   Arguments:\r
-    \r
+\r
     This          A pointer to the EFI_USB_HC_PROTOCOL instance.\r
-    \r
+\r
     DeviceAddress Represents the address of the target device on the USB,\r
                   which is assigned during USB enumeration.\r
-    EndPointAddress   The combination of an endpoint number and an \r
-                      endpoint direction of the target USB device. \r
-                      Each endpoint address supports data transfer in \r
-                      one direction except the control endpoint \r
-                      (whose default endpoint address is 0). \r
-                      It is the caller's responsibility to make sure that \r
-                      the EndPointAddress represents a bulk endpoint. \r
-                      \r
+    EndPointAddress   The combination of an endpoint number and an\r
+                      endpoint direction of the target USB device.\r
+                      Each endpoint address supports data transfer in\r
+                      one direction except the control endpoint\r
+                      (whose default endpoint address is 0).\r
+                      It is the caller's responsibility to make sure that\r
+                      the EndPointAddress represents a bulk endpoint.\r
+\r
     MaximumPacketLength Indicates the maximum packet size the target endpoint\r
                         is capable of sending or receiving.\r
-                        \r
-    Data          A pointer to the buffer of data that will be transmitted \r
+\r
+    Data          A pointer to the buffer of data that will be transmitted\r
                   to USB device or received from USB device.\r
     DataLength    When input, indicates the size, in bytes, of the data buffer\r
-                  specified by Data. When output, indicates the actually \r
+                  specified by Data. When output, indicates the actually\r
                   transferred data size.\r
-                  \r
-    DataToggle    A pointer to the data toggle value. On input, it indicates \r
+\r
+    DataToggle    A pointer to the data toggle value. On input, it indicates\r
                   the initial data toggle value the bulk transfer should adopt;\r
-                  on output, it is updated to indicate the data toggle value \r
-                  of the subsequent bulk transfer. \r
-                  \r
-    TimeOut       Indicates the maximum time, in microseconds, which the \r
+                  on output, it is updated to indicate the data toggle value\r
+                  of the subsequent bulk transfer.\r
+\r
+    TimeOut       Indicates the maximum time, in microseconds, which the\r
                   transfer is allowed to complete.\r
-                  \r
-    TransferResult  A pointer to the detailed result information of the \r
+\r
+    TransferResult  A pointer to the detailed result information of the\r
                     bulk transfer.\r
 \r
   Returns:\r
-    EFI_SUCCESS \r
+    EFI_SUCCESS\r
         The bulk transfer was completed successfully.\r
-    EFI_OUT_OF_RESOURCES  \r
+    EFI_OUT_OF_RESOURCES\r
         The bulk transfer could not be submitted due to lack of resource.\r
-    EFI_INVALID_PARAMETER \r
+    EFI_INVALID_PARAMETER\r
         Some parameters are invalid.\r
-    EFI_TIMEOUT \r
+    EFI_TIMEOUT\r
         The bulk transfer failed due to timeout.\r
-    EFI_DEVICE_ERROR  \r
+    EFI_DEVICE_ERROR\r
         The bulk transfer failed due to host controller or device error.\r
         Caller should check TranferResult for detailed error information.\r
 \r
@@ -2199,13 +2199,13 @@ UHCIBulkTransfer (
   //\r
   // Parameters Checking\r
   //\r
-  \r
+\r
   if ((DataLength == NULL) ||\r
       (Data == NULL)       ||\r
       (TransferResult == NULL)) {\r
     return EFI_INVALID_PARAMETER;\r
   }\r
-  \r
+\r
   //\r
   // if has errors that cause host controller halt,\r
   // then return EFI_DEVICE_ERROR directly.\r
@@ -2231,7 +2231,7 @@ UHCIBulkTransfer (
       MaximumPacketLength != 64) {\r
     return EFI_INVALID_PARAMETER;\r
   }\r
-  \r
+\r
   //\r
   // Enable the maximum packet size (64bytes)\r
   // that can be used for full speed bandwidth reclamation\r
@@ -2243,7 +2243,7 @@ UHCIBulkTransfer (
   if (EFI_ERROR (Status)) {\r
     return EFI_DEVICE_ERROR;\r
   }\r
\r
+\r
   //\r
   // construct QH and TD data structures,\r
   // and link them together\r
@@ -2306,7 +2306,7 @@ UHCIBulkTransfer (
   default:\r
     return EFI_INVALID_PARAMETER;\r
   }\r
-  \r
+\r
   //\r
   //  create QH structure and init\r
   //\r
@@ -2315,7 +2315,7 @@ UHCIBulkTransfer (
     HcDev->PciIo->Unmap (HcDev->PciIo, Mapping);\r
     return Status;\r
   }\r
-  \r
+\r
   //\r
   // i is used to calculate the total number of TDs.\r
   //\r
@@ -2323,11 +2323,11 @@ UHCIBulkTransfer (
 \r
   IsFirstTD = TRUE;\r
   while (DataLen > 0) {\r
-    \r
+\r
     //\r
     // create TD structures and link together\r
     //\r
-    \r
+\r
     PktSize = (UINT8) DataLen;\r
     if (DataLen > MaximumPacketLength) {\r
       PktSize = MaximumPacketLength;\r
@@ -2351,7 +2351,7 @@ UHCIBulkTransfer (
       DeleteQueuedTDs (HcDev, PtrFirstTD);\r
       return Status;\r
     }\r
-    \r
+\r
     //\r
     // Enable short packet detection.\r
     // (default action is disabling short packet detection)\r
@@ -2379,7 +2379,7 @@ UHCIBulkTransfer (
     Ptr += PktSize;\r
     DataLen -= PktSize;\r
   }\r
-  \r
+\r
   //\r
   // link TD structures to QH structure\r
   //\r
@@ -2416,7 +2416,7 @@ UHCIBulkTransfer (
   SavedFrameListIndex = LoadFrameListIndex;\r
 \r
   for (Index = 0; Index <= LinkTimes; Index++) {\r
-    \r
+\r
     //\r
     // put the QH-TD directly or indirectly into the proper place\r
     // in the Frame List\r
@@ -2473,7 +2473,7 @@ UHCIBulkTransfer (
   if (Mapping != NULL) {\r
     HcDev->PciIo->Unmap (HcDev->PciIo, Mapping);\r
   }\r
-  \r
+\r
   //\r
   // if has errors that cause host controller halt,\r
   // then return EFI_DEVICE_ERROR directly.\r
@@ -2508,68 +2508,68 @@ UHCIAsyncInterruptTransfer (
   IN     VOID                               *Context OPTIONAL\r
   )\r
 /*++\r
-  \r
+\r
   Routine Description:\r
-    Submits an asynchronous interrupt transfer to an \r
+    Submits an asynchronous interrupt transfer to an\r
     interrupt endpoint of a USB device.\r
-  \r
+\r
   Arguments:\r
-    \r
+\r
     This            A pointer to the EFI_USB_HC_PROTOCOL instance.\r
-    \r
+\r
     DeviceAddress   Represents the address of the target device on the USB,\r
                     which is assigned during USB enumeration.\r
-                    \r
-    EndPointAddress The combination of an endpoint number and an endpoint \r
-                    direction of the target USB device. Each endpoint address \r
-                    supports data transfer in one direction except the \r
-                    control endpoint (whose default endpoint address is 0). \r
-                    It is the caller's responsibility to make sure that \r
+\r
+    EndPointAddress The combination of an endpoint number and an endpoint\r
+                    direction of the target USB device. Each endpoint address\r
+                    supports data transfer in one direction except the\r
+                    control endpoint (whose default endpoint address is 0).\r
+                    It is the caller's responsibility to make sure that\r
                     the EndPointAddress represents an interrupt endpoint.\r
-                    \r
-    IsSlowDevice    Indicates whether the target device is slow device \r
+\r
+    IsSlowDevice    Indicates whether the target device is slow device\r
                     or full-speed device.\r
-                    \r
+\r
     MaximumPacketLength  Indicates the maximum packet size the target endpoint\r
                         is capable of sending or receiving.\r
-                        \r
+\r
     IsNewTransfer   If TRUE, an asynchronous interrupt pipe is built between\r
-                    the host and the target interrupt endpoint. \r
-                    If FALSE, the specified asynchronous interrupt pipe \r
+                    the host and the target interrupt endpoint.\r
+                    If FALSE, the specified asynchronous interrupt pipe\r
                     is canceled.\r
-                    \r
-    DataToggle      A pointer to the data toggle value.  On input, it is valid \r
-                    when IsNewTransfer is TRUE, and it indicates the initial \r
-                    data toggle value the asynchronous interrupt transfer \r
-                    should adopt.  \r
-                    On output, it is valid when IsNewTransfer is FALSE, \r
-                    and it is updated to indicate the data toggle value of \r
+\r
+    DataToggle      A pointer to the data toggle value.  On input, it is valid\r
+                    when IsNewTransfer is TRUE, and it indicates the initial\r
+                    data toggle value the asynchronous interrupt transfer\r
+                    should adopt.\r
+                    On output, it is valid when IsNewTransfer is FALSE,\r
+                    and it is updated to indicate the data toggle value of\r
                     the subsequent asynchronous interrupt transfer.\r
-                    \r
-    PollingInterval Indicates the interval, in milliseconds, that the \r
-                    asynchronous interrupt transfer is polled.  \r
+\r
+    PollingInterval Indicates the interval, in milliseconds, that the\r
+                    asynchronous interrupt transfer is polled.\r
                     This parameter is required when IsNewTransfer is TRUE.\r
-                    \r
-    DataLength      Indicates the length of data to be received at the \r
-                    rate specified by PollingInterval from the target \r
-                    asynchronous interrupt endpoint.  This parameter \r
+\r
+    DataLength      Indicates the length of data to be received at the\r
+                    rate specified by PollingInterval from the target\r
+                    asynchronous interrupt endpoint.  This parameter\r
                     is only required when IsNewTransfer is TRUE.\r
-                    \r
-    CallBackFunction  The Callback function.This function is called at the \r
-                      rate specified by PollingInterval.This parameter is \r
+\r
+    CallBackFunction  The Callback function.This function is called at the\r
+                      rate specified by PollingInterval.This parameter is\r
                       only required when IsNewTransfer is TRUE.\r
-                      \r
+\r
     Context         The context that is passed to the CallBackFunction.\r
                     This is an optional parameter and may be NULL.\r
-  \r
+\r
   Returns:\r
-    EFI_SUCCESS \r
-        The asynchronous interrupt transfer request has been successfully \r
+    EFI_SUCCESS\r
+        The asynchronous interrupt transfer request has been successfully\r
         submitted or canceled.\r
-    EFI_INVALID_PARAMETER \r
+    EFI_INVALID_PARAMETER\r
         Some parameters are invalid.\r
-    EFI_OUT_OF_RESOURCES  \r
-        The request could not be completed due to a lack of resources.  \r
+    EFI_OUT_OF_RESOURCES\r
+        The request could not be completed due to a lack of resources.\r
     EFI_DEVICE_ERROR\r
         Can't read register\r
 --*/\r
@@ -2618,13 +2618,13 @@ UHCIAsyncInterruptTransfer (
   if ((EndPointAddress & 0x80) == 0) {\r
     return EFI_INVALID_PARAMETER;\r
   }\r
-  \r
+\r
   //\r
   // delete Async interrupt transfer request\r
   //\r
   if (!IsNewTransfer) {\r
 \r
-    OldTpl = gBS->RaiseTPL (EFI_TPL_NOTIFY);\r
+    OldTpl = gBS->RaiseTPL (TPL_NOTIFY);\r
 \r
     Status = DeleteAsyncINTQHTDs (\r
                HcDev,\r
@@ -2698,7 +2698,7 @@ UHCIAsyncInterruptTransfer (
     //\r
     // create TD structures and link together\r
     //\r
-        \r
+\r
     PktSize = (UINT8) DataLen;\r
     if (DataLen > MaximumPacketLength) {\r
       PktSize = MaximumPacketLength;\r
@@ -2745,7 +2745,7 @@ UHCIAsyncInterruptTransfer (
     MappedPtr += PktSize;\r
     DataLen -= PktSize;\r
   }\r
-  \r
+\r
   //\r
   // roll one value back\r
   //\r
@@ -2774,7 +2774,7 @@ UHCIAsyncInterruptTransfer (
 \r
       return Status;\r
     }\r
-    \r
+\r
     //\r
     // link TD structures to QH structure\r
     //\r
@@ -2827,7 +2827,7 @@ UHCIAsyncInterruptTransfer (
   PtrQH               = ptrFirstQH;\r
 \r
   for (Index = LoadFrameListIndex; Index < (1024 + LoadFrameListIndex);) {\r
-      \r
+\r
     //\r
     // put the QH-TD directly or indirectly into the proper place\r
     // in the Frame List\r
@@ -2859,64 +2859,64 @@ UHCISyncInterruptTransfer (
   OUT      UINT32                  *TransferResult\r
   )\r
 /*++\r
-  \r
+\r
   Routine Description:\r
-    Submits synchronous interrupt transfer to an interrupt endpoint \r
+    Submits synchronous interrupt transfer to an interrupt endpoint\r
     of a USB device.\r
-  \r
+\r
   Arguments:\r
-    \r
+\r
     This            A pointer to the EFI_USB_HC_PROTOCOL instance.\r
-    \r
-    DeviceAddress   Represents the address of the target device on the USB, \r
+\r
+    DeviceAddress   Represents the address of the target device on the USB,\r
                     which is assigned during USB enumeration.\r
-                    \r
-    EndPointAddress   The combination of an endpoint number and an endpoint \r
-                      direction of the target USB device. Each endpoint \r
-                      address supports data transfer in one direction \r
-                      except the control endpoint (whose default \r
+\r
+    EndPointAddress   The combination of an endpoint number and an endpoint\r
+                      direction of the target USB device. Each endpoint\r
+                      address supports data transfer in one direction\r
+                      except the control endpoint (whose default\r
                       endpoint address is 0). It is the caller's responsibility\r
-                      to make sure that the EndPointAddress represents \r
-                      an interrupt endpoint. \r
-                      \r
-    IsSlowDevice    Indicates whether the target device is slow device \r
+                      to make sure that the EndPointAddress represents\r
+                      an interrupt endpoint.\r
+\r
+    IsSlowDevice    Indicates whether the target device is slow device\r
                     or full-speed device.\r
-                    \r
-    MaximumPacketLength Indicates the maximum packet size the target endpoint \r
+\r
+    MaximumPacketLength Indicates the maximum packet size the target endpoint\r
                         is capable of sending or receiving.\r
-                        \r
-    Data            A pointer to the buffer of data that will be transmitted \r
+\r
+    Data            A pointer to the buffer of data that will be transmitted\r
                     to USB device or received from USB device.\r
-                    \r
-    DataLength      On input, the size, in bytes, of the data buffer specified \r
+\r
+    DataLength      On input, the size, in bytes, of the data buffer specified\r
                     by Data. On output, the number of bytes transferred.\r
-                    \r
+\r
     DataToggle      A pointer to the data toggle value. On input, it indicates\r
-                    the initial data toggle value the synchronous interrupt \r
-                    transfer should adopt; \r
-                    on output, it is updated to indicate the data toggle value \r
-                    of the subsequent synchronous interrupt transfer. \r
-                    \r
-    TimeOut         Indicates the maximum time, in microseconds, which the \r
+                    the initial data toggle value the synchronous interrupt\r
+                    transfer should adopt;\r
+                    on output, it is updated to indicate the data toggle value\r
+                    of the subsequent synchronous interrupt transfer.\r
+\r
+    TimeOut         Indicates the maximum time, in microseconds, which the\r
                     transfer is allowed to complete.\r
-                    \r
-    TransferResult  A pointer to the detailed result information from \r
-                    the synchronous interrupt transfer.  \r
+\r
+    TransferResult  A pointer to the detailed result information from\r
+                    the synchronous interrupt transfer.\r
 \r
   Returns:\r
-    EFI_SUCCESS \r
+    EFI_SUCCESS\r
         The synchronous interrupt transfer was completed successfully.\r
-    EFI_OUT_OF_RESOURCES  \r
-        The synchronous interrupt transfer could not be submitted due \r
+    EFI_OUT_OF_RESOURCES\r
+        The synchronous interrupt transfer could not be submitted due\r
         to lack of resource.\r
-    EFI_INVALID_PARAMETER \r
+    EFI_INVALID_PARAMETER\r
         Some parameters are invalid.\r
-    EFI_TIMEOUT \r
+    EFI_TIMEOUT\r
         The synchronous interrupt transfer failed due to timeout.\r
-    EFI_DEVICE_ERROR  \r
-        The synchronous interrupt transfer failed due to host controller \r
-        or device error. Caller should check TranferResult for detailed \r
-        error information.  \r
+    EFI_DEVICE_ERROR\r
+        The synchronous interrupt transfer failed due to host controller\r
+        or device error. Caller should check TranferResult for detailed\r
+        error information.\r
 --*/\r
 {\r
   USB_HC_DEV            *HcDev;\r
@@ -2958,13 +2958,13 @@ UHCISyncInterruptTransfer (
   //\r
   // Parameters Checking\r
   //\r
-  \r
+\r
   if ((DataLength == NULL) ||\r
       (Data == NULL)       ||\r
       (TransferResult == NULL)) {\r
     return EFI_INVALID_PARAMETER;\r
   }\r
-  \r
+\r
   //\r
   // if has errors that cause host controller halt,\r
   // then return EFI_DEVICE_ERROR directly.\r
@@ -3017,7 +3017,7 @@ UHCISyncInterruptTransfer (
   if (EFI_ERROR (Status)) {\r
     return Status;\r
   }\r
-  \r
+\r
   //\r
   // BusMasterWrite means cpu read\r
   //\r
@@ -3089,7 +3089,7 @@ UHCISyncInterruptTransfer (
     Ptr += PktSize;\r
     DataLen -= PktSize;\r
   }\r
-  \r
+\r
   //\r
   // link TD structures to QH structure\r
   //\r
@@ -3119,7 +3119,7 @@ UHCISyncInterruptTransfer (
   SavedFrameListIndex = LoadFrameListIndex;\r
 \r
   for (Index = 0; Index < LinkTimes; Index++) {\r
-        \r
+\r
     //\r
     // put the QH-TD directly or indirectly into the proper place\r
     // in the Frame List\r
@@ -3200,27 +3200,27 @@ UHCIIsochronousTransfer (
   OUT      UINT32                  *TransferResult\r
   )\r
 /*++\r
-  \r
+\r
   Routine Description:\r
     Submits isochronous transfer to a target USB device.\r
-  \r
+\r
   Arguments:\r
-    \r
+\r
     This                - A pointer to the EFI_USB_HC_PROTOCOL instance.\r
     DeviceAddress       - Represents the address of the target device on the USB,\r
                            which is assigned during USB enumeration.\r
     EndPointAddress     - End point address\r
-    MaximumPacketLength - Indicates the maximum packet size that the \r
-                           default control transfer endpoint is capable of \r
+    MaximumPacketLength - Indicates the maximum packet size that the\r
+                           default control transfer endpoint is capable of\r
                            sending or receiving.\r
-    Data                - A pointer to the buffer of data that will be transmitted \r
+    Data                - A pointer to the buffer of data that will be transmitted\r
                            to USB device or received from USB device.\r
-    DataLength          - Indicates the size, in bytes, of the data buffer \r
+    DataLength          - Indicates the size, in bytes, of the data buffer\r
                            specified by Data.\r
-    TransferResult      - A pointer to the detailed result information generated \r
-                           by this control transfer.               \r
+    TransferResult      - A pointer to the detailed result information generated\r
+                           by this control transfer.\r
   Returns:\r
-    EFI_UNSUPPORTED \r
+    EFI_UNSUPPORTED\r
 \r
 --*/\r
 {\r
@@ -3241,32 +3241,32 @@ UHCIAsyncIsochronousTransfer (
   IN       VOID                                *Context OPTIONAL\r
   )\r
 /*++\r
-  \r
+\r
   Routine Description:\r
     Submits Async isochronous transfer to a target USB device.\r
-  \r
+\r
   Arguments:\r
-    \r
+\r
     This                - A pointer to the EFI_USB_HC_PROTOCOL instance.\r
-    \r
+\r
     DeviceAddress       - Represents the address of the target device on the USB,\r
                            which is assigned during USB enumeration.\r
 \r
     EndPointAddress     - End point address\r
-    \r
-    MaximumPacketLength - Indicates the maximum packet size that the \r
-                           default control transfer endpoint is capable of \r
+\r
+    MaximumPacketLength - Indicates the maximum packet size that the\r
+                           default control transfer endpoint is capable of\r
                            sending or receiving.\r
-       \r
-    Data                - A pointer to the buffer of data that will be transmitted \r
+\r
+    Data                - A pointer to the buffer of data that will be transmitted\r
                            to USB device or received from USB device.\r
-    \r
+\r
     IsochronousCallBack - When the transfer complete, the call back function will be called\r
-    \r
+\r
     Context             - Pass to the call back function as parameter\r
-                    \r
+\r
   Returns:\r
-    EFI_UNSUPPORTED \r
+    EFI_UNSUPPORTED\r
 \r
 --*/\r
 {\r
@@ -3291,34 +3291,34 @@ UHCI2GetCapability(
 \r
   Arguments:\r
     This                      - A pointer to the EFI_USB2_HC_PROTOCOL instance.\r
-    \r
+\r
     MaxSpeed             - A pointer to the max speed USB host controller supports.\r
-    \r
+\r
     PortNumber           - A pointer to the number of root hub ports.\r
-    \r
+\r
     Is64BitCapable      - A pointer to an integer to show whether USB host controller\r
                                   supports 64-bit memory addressing.\r
   Returns:\r
-    EFI_SUCCESS \r
+    EFI_SUCCESS\r
         The host controller capabilities were retrieved successfully.\r
-    EFI_INVALID_PARAMETER \r
+    EFI_INVALID_PARAMETER\r
         MaxSpeed or PortNumber or Is64BitCapable is NULL.\r
-    EFI_DEVICE_ERROR  \r
+    EFI_DEVICE_ERROR\r
        An error was encountered while attempting to retrieve the capabilities.\r
-        \r
---*/     \r
+\r
+--*/\r
 {\r
   USB_HC_DEV *HcDev;\r
 \r
   HcDev = USB2_HC_DEV_FROM_THIS (This);\r
-  \r
-  if ((NULL == MaxSpeed) \r
+\r
+  if ((NULL == MaxSpeed)\r
        ||(NULL == PortNumber)\r
        || (NULL == Is64BitCapable))\r
   {\r
     return EFI_INVALID_PARAMETER;\r
   }\r
-  \r
+\r
   *MaxSpeed = EFI_USB_SPEED_FULL;\r
   *Is64BitCapable = (UINT8)FALSE;\r
   return  UHCIGetRootHubPortNumber(&HcDev->UsbHc, PortNumber);\r
@@ -3337,46 +3337,46 @@ UHCI2Reset (
 \r
   Arguments:\r
     This           - A pointer to the EFI_USB2_HC_PROTOCOL instance.\r
-    \r
-    Attributes   - A bit mask of the reset operation to perform. \r
+\r
+    Attributes   - A bit mask of the reset operation to perform.\r
                        See below for a list of the supported bit mask values.\r
-  \r
+\r
   #define EFI_USB_HC_RESET_GLOBAL                      0x0001\r
   #define EFI_USB_HC_RESET_HOST_CONTROLLER             0x0002\r
   #define EFI_USB_HC_RESET_GLOBAL _WITH_DEBUG          0x0004\r
   #define EFI_USB_HC_RESET_HOST_WITH_DEBUG             0x0008\r
 \r
-  EFI_USB_HC_RESET_GLOBAL \r
+  EFI_USB_HC_RESET_GLOBAL\r
         If this bit is set, a global reset signal will be sent to the USB bus.\r
-        This resets all of the USB bus logic, including the USB host \r
+        This resets all of the USB bus logic, including the USB host\r
         controller hardware and all the devices attached on the USB bus.\r
-  EFI_USB_HC_RESET_HOST_CONTROLLER  \r
-        If this bit is set, the USB host controller hardware will be reset. \r
+  EFI_USB_HC_RESET_HOST_CONTROLLER\r
+        If this bit is set, the USB host controller hardware will be reset.\r
         No reset signal will be sent to the USB bus.\r
-  \r
+\r
   Returns:\r
-    EFI_SUCCESS \r
+    EFI_SUCCESS\r
         The reset operation succeeded.\r
-    EFI_INVALID_PARAMETER \r
+    EFI_INVALID_PARAMETER\r
         Attributes is not valid.\r
     EFI_UNSUPPORTED\r
         The type of reset specified by Attributes is not currently supported by the host controller hardware.\r
     EFI_ACCESS_DENIED\r
         Reset operation is rejected due to the debug port being configured and active.\r
-    EFI_DEVICE_ERROR  \r
-        An error was encountered while attempting to perform \r
+    EFI_DEVICE_ERROR\r
+        An error was encountered while attempting to perform\r
         the reset operation.\r
 --*/\r
 {\r
   USB_HC_DEV *HcDev;\r
 \r
   HcDev = USB2_HC_DEV_FROM_THIS (This);\r
-  \r
+\r
   if (Attributes==EFI_USB_HC_RESET_GLOBAL_WITH_DEBUG || Attributes==EFI_USB_HC_RESET_HOST_WITH_DEBUG)\r
        return EFI_UNSUPPORTED;\r
-  \r
+\r
   return UHCIReset(\r
-       &HcDev->UsbHc, \r
+       &HcDev->UsbHc,\r
        Attributes\r
        );\r
 }\r
@@ -3388,40 +3388,40 @@ UHCI2GetState (
   OUT EFI_USB_HC_STATE       * State\r
   )\r
 /*++\r
-  \r
+\r
   Routine Description:\r
     Retrieves current state of the USB host controller according to UEFI 2.0 spec.\r
-  \r
+\r
   Arguments:\r
-    \r
+\r
     This     - A pointer to the EFI_USB_HC_PROTOCOL instance.\r
-    \r
-    State    - A pointer to the EFI_USB_HC_STATE data structure that \r
-              indicates current state of the USB host controller.  \r
+\r
+    State    - A pointer to the EFI_USB_HC_STATE data structure that\r
+              indicates current state of the USB host controller.\r
               Type EFI_USB_HC_STATE is defined below.\r
-              \r
+\r
     typedef enum {\r
       EfiUsbHcStateHalt,\r
       EfiUsbHcStateOperational,\r
       EfiUsbHcStateSuspend,\r
       EfiUsbHcStateMaximum\r
     } EFI_USB_HC_STATE;\r
-  \r
+\r
   Returns:\r
-    EFI_SUCCESS \r
+    EFI_SUCCESS\r
             The state information of the host controller was returned in State.\r
-    EFI_INVALID_PARAMETER \r
+    EFI_INVALID_PARAMETER\r
             State is NULL.\r
-    EFI_DEVICE_ERROR  \r
-            An error was encountered while attempting to retrieve the \r
-            host controller's current state.  \r
---*/  \r
+    EFI_DEVICE_ERROR\r
+            An error was encountered while attempting to retrieve the\r
+            host controller's current state.\r
+--*/\r
 {\r
   USB_HC_DEV *HcDev;\r
 \r
   HcDev = USB2_HC_DEV_FROM_THIS (This);\r
   return UHCIGetState(\r
-       &HcDev->UsbHc, \r
+       &HcDev->UsbHc,\r
        State\r
        );\r
 }\r
@@ -3433,31 +3433,31 @@ UHCI2SetState (
   IN EFI_USB_HC_STATE        State\r
   )\r
 /*++\r
-  \r
+\r
   Routine Description:\r
     Sets the USB host controller to a specific state according to UEFI 2.0 spec.\r
-  \r
+\r
   Arguments:\r
-    \r
+\r
     This     - A pointer to the EFI_USB_HC_PROTOCOL instance.\r
 \r
     State    - Indicates the state of the host controller that will be set.\r
-  \r
+\r
   Returns:\r
-    EFI_SUCCESS \r
-          The USB host controller was successfully placed in the state \r
+    EFI_SUCCESS\r
+          The USB host controller was successfully placed in the state\r
           specified by State.\r
-    EFI_INVALID_PARAMETER \r
+    EFI_INVALID_PARAMETER\r
           State is invalid.\r
-    EFI_DEVICE_ERROR  \r
-          Failed to set the state specified by State due to device error.  \r
+    EFI_DEVICE_ERROR\r
+          Failed to set the state specified by State due to device error.\r
 --*/\r
 {\r
   USB_HC_DEV *HcDev;\r
 \r
   HcDev = USB2_HC_DEV_FROM_THIS (This);\r
   return UHCISetState(\r
-       &HcDev->UsbHc, \r
+       &HcDev->UsbHc,\r
        State\r
        );\r
 }\r
@@ -3478,53 +3478,53 @@ UHCI2ControlTransfer (
   OUT    UINT32                                         *TransferResult\r
   )\r
 /*++\r
-  \r
+\r
   Routine Description:\r
     Submits control transfer to a target USB device accroding to UEFI 2.0 spec..\r
-  \r
+\r
   Arguments:\r
-    \r
+\r
     This         - A pointer to the EFI_USB_HC_PROTOCOL instance.\r
 \r
     DeviceAddress -Represents the address of the target device on the USB,\r
                   which is assigned during USB enumeration.\r
 \r
     DeviceSpeed  - Indicates transfer speed of device.\r
-    \r
-    MaximumPacketLength - Indicates the maximum packet size that the \r
-                        default control transfer endpoint is capable of \r
+\r
+    MaximumPacketLength - Indicates the maximum packet size that the\r
+                        default control transfer endpoint is capable of\r
                         sending or receiving.\r
-    \r
-    Request      - A pointer to the USB device request that will be sent \r
-                  to the USB device. \r
-    \r
+\r
+    Request      - A pointer to the USB device request that will be sent\r
+                  to the USB device.\r
+\r
     TransferDirection - Specifies the data direction for the transfer.\r
-                      There are three values available, DataIn, DataOut \r
+                      There are three values available, DataIn, DataOut\r
                       and NoData.\r
-    \r
-    Data          -A pointer to the buffer of data that will be transmitted \r
+\r
+    Data          -A pointer to the buffer of data that will be transmitted\r
                   to USB device or received from USB device.\r
-    \r
-    DataLength    - Indicates the size, in bytes, of the data buffer \r
+\r
+    DataLength    - Indicates the size, in bytes, of the data buffer\r
                   specified by Data.\r
-    \r
-    TimeOut       - Indicates the maximum time, in microseconds, \r
+\r
+    TimeOut       - Indicates the maximum time, in microseconds,\r
                   which the transfer is allowed to complete.\r
-    \r
-    TransferResult  - A pointer to the detailed result information generated \r
+\r
+    TransferResult  - A pointer to the detailed result information generated\r
                     by this control transfer.\r
-                    \r
+\r
   Returns:\r
-    EFI_SUCCESS \r
+    EFI_SUCCESS\r
         The control transfer was completed successfully.\r
-    EFI_OUT_OF_RESOURCES  \r
+    EFI_OUT_OF_RESOURCES\r
         The control transfer could not be completed due to a lack of resources.\r
-    EFI_INVALID_PARAMETER \r
+    EFI_INVALID_PARAMETER\r
         Some parameters are invalid.\r
-    EFI_TIMEOUT \r
+    EFI_TIMEOUT\r
         The control transfer failed due to timeout.\r
-    EFI_DEVICE_ERROR  \r
-        The control transfer failed due to host controller or device error. \r
+    EFI_DEVICE_ERROR\r
+        The control transfer failed due to host controller or device error.\r
         Caller should check TranferResult for detailed error information.\r
 \r
 --*/\r
@@ -3533,19 +3533,19 @@ UHCI2ControlTransfer (
   BOOLEAN IsSlowDevice = (BOOLEAN) ((EFI_USB_SPEED_LOW == DeviceSpeed) ? TRUE : FALSE);\r
 \r
   HcDev = USB2_HC_DEV_FROM_THIS (This);\r
-  \r
+\r
   return UHCIControlTransfer(\r
-       &HcDev->UsbHc, \r
-       DeviceAddress, \r
-       IsSlowDevice, \r
-       (UINT8) MaximumPacketLength, \r
-       Request, \r
-       TransferDirection, \r
-       Data, \r
+       &HcDev->UsbHc,\r
+       DeviceAddress,\r
+       IsSlowDevice,\r
+       (UINT8) MaximumPacketLength,\r
+       Request,\r
+       TransferDirection,\r
+       Data,\r
        DataLength,\r
        TimeOut,\r
        TransferResult\r
-       );      \r
+       );\r
 }\r
 \r
 EFI_STATUS\r
@@ -3563,91 +3563,91 @@ UHCI2BulkTransfer (
   IN     UINTN                                           TimeOut,\r
   IN     EFI_USB2_HC_TRANSACTION_TRANSLATOR              *Translator,\r
   OUT    UINT32                                          *TransferResult\r
-  )                                                  \r
+  )\r
 /*++\r
-  \r
+\r
   Routine Description:\r
     Submits bulk transfer to a bulk endpoint of a USB device according to UEFI 2.0 spec.\r
-    \r
+\r
   Arguments:\r
-    \r
+\r
     This          A pointer to the EFI_USB2_HC_PROTOCOL instance.\r
-    \r
+\r
     DeviceAddress Represents the address of the target device on the USB,\r
                   which is assigned during USB enumeration.\r
-                  \r
-    EndPointAddress   The combination of an endpoint number and an \r
-                      endpoint direction of the target USB device. \r
-                      Each endpoint address supports data transfer in \r
-                      one direction except the control endpoint \r
-                      (whose default endpoint address is 0). \r
-                      It is the caller's responsibility to make sure that \r
-                      the EndPointAddress represents a bulk endpoint. \r
-                      \r
+\r
+    EndPointAddress   The combination of an endpoint number and an\r
+                      endpoint direction of the target USB device.\r
+                      Each endpoint address supports data transfer in\r
+                      one direction except the control endpoint\r
+                      (whose default endpoint address is 0).\r
+                      It is the caller's responsibility to make sure that\r
+                      the EndPointAddress represents a bulk endpoint.\r
+\r
     DeviceSpeed  Indicates device speed. The supported values are EFI_USB_SPEED_FULL\r
                           and EFI_USB_SPEED_HIGH.\r
-                          \r
+\r
     MaximumPacketLength Indicates the maximum packet size the target endpoint\r
                         is capable of sending or receiving.\r
-                        \r
+\r
     DataBuffersNumber  Number of data buffers prepared for the transfer.\r
-    \r
-    Data          Array of pointers to the buffers of data that will be transmitted \r
+\r
+    Data          Array of pointers to the buffers of data that will be transmitted\r
                   to USB device or received from USB device.\r
-                  \r
+\r
     DataLength    When input, indicates the size, in bytes, of the data buffer\r
-                  specified by Data. When output, indicates the actually \r
+                  specified by Data. When output, indicates the actually\r
                   transferred data size.\r
-                  \r
-    DataToggle    A pointer to the data toggle value. On input, it indicates \r
+\r
+    DataToggle    A pointer to the data toggle value. On input, it indicates\r
                   the initial data toggle value the bulk transfer should adopt;\r
-                  on output, it is updated to indicate the data toggle value \r
-                  of the subsequent bulk transfer. \r
-                  \r
+                  on output, it is updated to indicate the data toggle value\r
+                  of the subsequent bulk transfer.\r
+\r
     Translator  A pointr to the transaction translator data.\r
-    \r
-    TimeOut       Indicates the maximum time, in microseconds, which the \r
+\r
+    TimeOut       Indicates the maximum time, in microseconds, which the\r
                   transfer is allowed to complete.\r
-                  \r
-    TransferResult  A pointer to the detailed result information of the \r
+\r
+    TransferResult  A pointer to the detailed result information of the\r
                     bulk transfer.\r
 \r
   Returns:\r
-    EFI_SUCCESS \r
+    EFI_SUCCESS\r
         The bulk transfer was completed successfully.\r
-        \r
-    EFI_OUT_OF_RESOURCES  \r
+\r
+    EFI_OUT_OF_RESOURCES\r
         The bulk transfer could not be submitted due to lack of resource.\r
-        \r
-    EFI_INVALID_PARAMETER \r
+\r
+    EFI_INVALID_PARAMETER\r
         Some parameters are invalid.\r
-        \r
-    EFI_TIMEOUT \r
+\r
+    EFI_TIMEOUT\r
         The bulk transfer failed due to timeout.\r
-        \r
-    EFI_DEVICE_ERROR  \r
+\r
+    EFI_DEVICE_ERROR\r
         The bulk transfer failed due to host controller or device error.\r
         Caller should check TranferResult for detailed error information.\r
 \r
---*/  \r
+--*/\r
 {\r
   USB_HC_DEV *HcDev;\r
 \r
   HcDev = USB2_HC_DEV_FROM_THIS (This);\r
-  \r
+\r
   if( Data == NULL || DeviceSpeed==EFI_USB_SPEED_LOW)\r
        return EFI_INVALID_PARAMETER;\r
   /* For full-speed bulk transfers only the data pointed by Data[0] shall be used */\r
 \r
   return UHCIBulkTransfer (\r
-       &HcDev->UsbHc, \r
-       DeviceAddress, \r
-       EndPointAddress, \r
-       (UINT8) MaximumPacketLength, \r
-       *Data, \r
-       DataLength, \r
-       DataToggle, \r
-       TimeOut, \r
+       &HcDev->UsbHc,\r
+       DeviceAddress,\r
+       EndPointAddress,\r
+       (UINT8) MaximumPacketLength,\r
+       *Data,\r
+       DataLength,\r
+       DataToggle,\r
+       TimeOut,\r
        TransferResult\r
        );\r
 }\r
@@ -3669,91 +3669,91 @@ UHCI2AsyncInterruptTransfer (
   IN     VOID                                        *Context\r
   )\r
 /*++\r
-  \r
+\r
   Routine Description:\r
-    Submits an asynchronous interrupt transfer to an \r
+    Submits an asynchronous interrupt transfer to an\r
     interrupt endpoint of a USB device according to UEFI 2.0 spec.\r
-  \r
+\r
   Arguments:\r
-    \r
+\r
     This            A pointer to the EFI_USB2_HC_PROTOCOL instance.\r
-    \r
+\r
     DeviceAddress   Represents the address of the target device on the USB,\r
                     which is assigned during USB enumeration.\r
-                    \r
-    EndPointAddress The combination of an endpoint number and an endpoint \r
-                    direction of the target USB device. Each endpoint address \r
-                    supports data transfer in one direction except the \r
-                    control endpoint (whose default endpoint address is 0). \r
-                    It is the caller's responsibility to make sure that \r
+\r
+    EndPointAddress The combination of an endpoint number and an endpoint\r
+                    direction of the target USB device. Each endpoint address\r
+                    supports data transfer in one direction except the\r
+                    control endpoint (whose default endpoint address is 0).\r
+                    It is the caller's responsibility to make sure that\r
                     the EndPointAddress represents an interrupt endpoint.\r
-                    \r
+\r
     DeviceSpeed     Indicates device speed.\r
-    \r
+\r
     MaximumPacketLength  Indicates the maximum packet size the target endpoint\r
                         is capable of sending or receiving.\r
-                        \r
+\r
     IsNewTransfer   If TRUE, an asynchronous interrupt pipe is built between\r
-                    the host and the target interrupt endpoint. \r
-                    If FALSE, the specified asynchronous interrupt pipe \r
+                    the host and the target interrupt endpoint.\r
+                    If FALSE, the specified asynchronous interrupt pipe\r
                     is canceled.\r
-                    \r
-    DataToggle      A pointer to the data toggle value.  On input, it is valid \r
-                    when IsNewTransfer is TRUE, and it indicates the initial \r
-                    data toggle value the asynchronous interrupt transfer \r
-                    should adopt.  \r
-                    On output, it is valid when IsNewTransfer is FALSE, \r
-                    and it is updated to indicate the data toggle value of \r
+\r
+    DataToggle      A pointer to the data toggle value.  On input, it is valid\r
+                    when IsNewTransfer is TRUE, and it indicates the initial\r
+                    data toggle value the asynchronous interrupt transfer\r
+                    should adopt.\r
+                    On output, it is valid when IsNewTransfer is FALSE,\r
+                    and it is updated to indicate the data toggle value of\r
                     the subsequent asynchronous interrupt transfer.\r
-                    \r
-    PollingInterval Indicates the interval, in milliseconds, that the \r
-                    asynchronous interrupt transfer is polled.  \r
+\r
+    PollingInterval Indicates the interval, in milliseconds, that the\r
+                    asynchronous interrupt transfer is polled.\r
                     This parameter is required when IsNewTransfer is TRUE.\r
-                    \r
-    DataLength      Indicates the length of data to be received at the \r
-                    rate specified by PollingInterval from the target \r
-                    asynchronous interrupt endpoint.  This parameter \r
+\r
+    DataLength      Indicates the length of data to be received at the\r
+                    rate specified by PollingInterval from the target\r
+                    asynchronous interrupt endpoint.  This parameter\r
                     is only required when IsNewTransfer is TRUE.\r
-                    \r
+\r
     Translator  A pointr to the transaction translator data.\r
-    \r
-    CallBackFunction  The Callback function.This function is called at the \r
-                      rate specified by PollingInterval.This parameter is \r
+\r
+    CallBackFunction  The Callback function.This function is called at the\r
+                      rate specified by PollingInterval.This parameter is\r
                       only required when IsNewTransfer is TRUE.\r
-                      \r
+\r
     Context         The context that is passed to the CallBackFunction.\r
                     This is an optional parameter and may be NULL.\r
-  \r
+\r
   Returns:\r
-  \r
-    EFI_SUCCESS \r
-        The asynchronous interrupt transfer request has been successfully \r
+\r
+    EFI_SUCCESS\r
+        The asynchronous interrupt transfer request has been successfully\r
         submitted or canceled.\r
-        \r
-    EFI_INVALID_PARAMETER \r
+\r
+    EFI_INVALID_PARAMETER\r
         Some parameters are invalid.\r
-        \r
-    EFI_OUT_OF_RESOURCES  \r
-        The request could not be completed due to a lack of resources.  \r
-        \r
+\r
+    EFI_OUT_OF_RESOURCES\r
+        The request could not be completed due to a lack of resources.\r
+\r
     EFI_DEVICE_ERROR\r
         Can't read register\r
---*/  \r
+--*/\r
 {\r
   USB_HC_DEV *HcDev;\r
   BOOLEAN IsSlowDevice = (BOOLEAN) ((EFI_USB_SPEED_LOW == DeviceSpeed) ? TRUE : FALSE);\r
-   \r
+\r
   HcDev = USB2_HC_DEV_FROM_THIS (This);\r
   return UHCIAsyncInterruptTransfer(\r
-       &HcDev->UsbHc, \r
-       DeviceAddress, \r
-       EndPointAddress, \r
-       IsSlowDevice, \r
-       (UINT8) MaximumPacketLength, \r
-       IsNewTransfer, \r
-       DataToggle, \r
+       &HcDev->UsbHc,\r
+       DeviceAddress,\r
+       EndPointAddress,\r
+       IsSlowDevice,\r
+       (UINT8) MaximumPacketLength,\r
+       IsNewTransfer,\r
+       DataToggle,\r
        PollingInterval,\r
-       DataLength, \r
+       DataLength,\r
        CallBackFunction,\r
        Context\r
        );\r
@@ -3775,82 +3775,82 @@ UHCI2SyncInterruptTransfer (
   OUT    UINT32                                    *TransferResult\r
   )\r
 /*++\r
-  \r
+\r
   Routine Description:\r
-    Submits synchronous interrupt transfer to an interrupt endpoint \r
+    Submits synchronous interrupt transfer to an interrupt endpoint\r
     of a USB device according to UEFI 2.0 spec.\r
-  \r
+\r
   Arguments:\r
-    \r
+\r
     This            A pointer to the EFI_USB2_HC_PROTOCOL instance.\r
-    \r
-    DeviceAddress   Represents the address of the target device on the USB, \r
+\r
+    DeviceAddress   Represents the address of the target device on the USB,\r
                     which is assigned during USB enumeration.\r
-                    \r
-    EndPointAddress   The combination of an endpoint number and an endpoint \r
-                      direction of the target USB device. Each endpoint \r
-                      address supports data transfer in one direction \r
-                      except the control endpoint (whose default \r
+\r
+    EndPointAddress   The combination of an endpoint number and an endpoint\r
+                      direction of the target USB device. Each endpoint\r
+                      address supports data transfer in one direction\r
+                      except the control endpoint (whose default\r
                       endpoint address is 0). It is the caller's responsibility\r
-                      to make sure that the EndPointAddress represents \r
-                      an interrupt endpoint. \r
-                      \r
+                      to make sure that the EndPointAddress represents\r
+                      an interrupt endpoint.\r
+\r
     DeviceSpeed  Indicates device speed.\r
-                    \r
-    MaximumPacketLength Indicates the maximum packet size the target endpoint \r
+\r
+    MaximumPacketLength Indicates the maximum packet size the target endpoint\r
                         is capable of sending or receiving.\r
-                        \r
-    Data            A pointer to the buffer of data that will be transmitted \r
+\r
+    Data            A pointer to the buffer of data that will be transmitted\r
                     to USB device or received from USB device.\r
-                    \r
-    DataLength      On input, the size, in bytes, of the data buffer specified \r
+\r
+    DataLength      On input, the size, in bytes, of the data buffer specified\r
                     by Data. On output, the number of bytes transferred.\r
-                    \r
+\r
     DataToggle      A pointer to the data toggle value. On input, it indicates\r
-                    the initial data toggle value the synchronous interrupt \r
-                    transfer should adopt; \r
-                    on output, it is updated to indicate the data toggle value \r
-                    of the subsequent synchronous interrupt transfer. \r
-                    \r
-    TimeOut         Indicates the maximum time, in microseconds, which the \r
+                    the initial data toggle value the synchronous interrupt\r
+                    transfer should adopt;\r
+                    on output, it is updated to indicate the data toggle value\r
+                    of the subsequent synchronous interrupt transfer.\r
+\r
+    TimeOut         Indicates the maximum time, in microseconds, which the\r
                     transfer is allowed to complete.\r
     Translator  A pointr to the transaction translator data.\r
-    TransferResult  A pointer to the detailed result information from \r
-                    the synchronous interrupt transfer.  \r
+    TransferResult  A pointer to the detailed result information from\r
+                    the synchronous interrupt transfer.\r
 \r
   Returns:\r
-    EFI_SUCCESS \r
+    EFI_SUCCESS\r
         The synchronous interrupt transfer was completed successfully.\r
-    EFI_OUT_OF_RESOURCES  \r
-        The synchronous interrupt transfer could not be submitted due \r
+    EFI_OUT_OF_RESOURCES\r
+        The synchronous interrupt transfer could not be submitted due\r
         to lack of resource.\r
-    EFI_INVALID_PARAMETER \r
+    EFI_INVALID_PARAMETER\r
         Some parameters are invalid.\r
-    EFI_TIMEOUT \r
+    EFI_TIMEOUT\r
         The synchronous interrupt transfer failed due to timeout.\r
-    EFI_DEVICE_ERROR  \r
-        The synchronous interrupt transfer failed due to host controller \r
-        or device error. Caller should check TranferResult for detailed \r
-        error information.  \r
---*/  \r
+    EFI_DEVICE_ERROR\r
+        The synchronous interrupt transfer failed due to host controller\r
+        or device error. Caller should check TranferResult for detailed\r
+        error information.\r
+--*/\r
 {\r
   USB_HC_DEV *HcDev;\r
   BOOLEAN IsSlowDevice;\r
-  \r
+\r
   if(DeviceSpeed==EFI_USB_SPEED_HIGH)\r
        return EFI_INVALID_PARAMETER;\r
-  \r
-  IsSlowDevice = (BOOLEAN) ((EFI_USB_SPEED_LOW == DeviceSpeed) ? TRUE : FALSE);  \r
+\r
+  IsSlowDevice = (BOOLEAN) ((EFI_USB_SPEED_LOW == DeviceSpeed) ? TRUE : FALSE);\r
   HcDev = USB2_HC_DEV_FROM_THIS (This);\r
-  \r
+\r
   return UHCISyncInterruptTransfer(\r
-       &HcDev->UsbHc, \r
-       DeviceAddress, \r
-       EndPointAddress, \r
-       IsSlowDevice, \r
-       (UINT8) MaximumPacketLength, \r
-       Data, \r
-       DataLength, \r
+       &HcDev->UsbHc,\r
+       DeviceAddress,\r
+       EndPointAddress,\r
+       IsSlowDevice,\r
+       (UINT8) MaximumPacketLength,\r
+       Data,\r
+       DataLength,\r
        DataToggle,\r
        TimeOut,\r
        TransferResult\r
@@ -3872,43 +3872,43 @@ UHCI2IsochronousTransfer (
   OUT    UINT32                                     *TransferResult\r
   )\r
 /*++\r
-  \r
+\r
   Routine Description:\r
-  \r
+\r
     Submits isochronous transfer to a target USB device according to UEFI 2.0 spec.\r
-  \r
+\r
   Arguments:\r
-    \r
+\r
     This             A pointer to the EFI_USB2_HC_PROTOCOL instance.\r
-    \r
+\r
     DeviceAddress    Represents the address of the target device on the USB,\r
                            which is assigned during USB enumeration.\r
-                           \r
+\r
     EndPointAddress  End point address\r
-    \r
+\r
     DeviceSpeed      Indicates device speed.\r
-    \r
-    MaximumPacketLength    Indicates the maximum packet size that the \r
-                           default control transfer endpoint is capable of \r
+\r
+    MaximumPacketLength    Indicates the maximum packet size that the\r
+                           default control transfer endpoint is capable of\r
                            sending or receiving.\r
-                           \r
+\r
     DataBuffersNumber Number of data buffers prepared for the transfer.\r
-    \r
-    Data              Array of pointers to the buffers of data that will be \r
+\r
+    Data              Array of pointers to the buffers of data that will be\r
                       transmitted to USB device or received from USB device.\r
-                  \r
-    DataLength        Indicates the size, in bytes, of the data buffer \r
+\r
+    DataLength        Indicates the size, in bytes, of the data buffer\r
                       specified by Data.\r
-                           \r
+\r
     Translator        A pointr to the transaction translator data.\r
-    \r
-    TransferResult    A pointer to the detailed result information generated \r
-                      by this control transfer.               \r
+\r
+    TransferResult    A pointer to the detailed result information generated\r
+                      by this control transfer.\r
   Returns:\r
-  \r
-    EFI_UNSUPPORTED \r
 \r
---*/  \r
+    EFI_UNSUPPORTED\r
+\r
+--*/\r
 {\r
   return EFI_UNSUPPORTED;\r
 }\r
@@ -3929,42 +3929,42 @@ UHCI2AsyncIsochronousTransfer (
   IN     VOID                                         *Context\r
   )\r
 /*++\r
-  \r
+\r
   Routine Description:\r
-  \r
+\r
     Submits Async isochronous transfer to a target USB device according to UEFI 2.0 spec.\r
-  \r
+\r
   Arguments:\r
-    \r
+\r
     This                A pointer to the EFI_USB2_HC_PROTOCOL instance.\r
-    \r
+\r
     DeviceAddress       Represents the address of the target device on the USB,\r
                            which is assigned during USB enumeration.\r
 \r
     EndPointAddress     End point address\r
-    \r
+\r
     DeviceSpeed         Indicates device speed.\r
-    \r
-    MaximumPacketLength Indicates the maximum packet size that the \r
-                        default control transfer endpoint is capable of \r
+\r
+    MaximumPacketLength Indicates the maximum packet size that the\r
+                        default control transfer endpoint is capable of\r
                         sending or receiving.\r
-                        \r
+\r
     DataBuffersNumber   Number of data buffers prepared for the transfer.\r
-    \r
-    Data                Array of pointers to the buffers of data that will be transmitted \r
+\r
+    Data                Array of pointers to the buffers of data that will be transmitted\r
                         to USB device or received from USB device.\r
-                        \r
+\r
     Translator          A pointr to the transaction translator data.\r
-    \r
+\r
     IsochronousCallBack When the transfer complete, the call back function will be called\r
-    \r
+\r
     Context             Pass to the call back function as parameter\r
-                    \r
+\r
   Returns:\r
-  \r
-    EFI_UNSUPPORTED \r
 \r
---*/  \r
+    EFI_UNSUPPORTED\r
+\r
+--*/\r
 {\r
   return EFI_UNSUPPORTED;\r
 }\r
@@ -3977,38 +3977,38 @@ UHCI2GetRootHubPortStatus (
   OUT EFI_USB_PORT_STATUS    * PortStatus\r
   )\r
 /*++\r
-  \r
+\r
   Routine Description:\r
     Retrieves the current status of a USB root hub port according to UEFI 2.0 spec.\r
-  \r
+\r
   Arguments:\r
-  \r
+\r
     This        A pointer to the EFI_USB2_HC_PROTOCOL.\r
-    \r
-    PortNumber  Specifies the root hub port from which the status \r
-                is to be retrieved.  This value is zero-based. For example, \r
+\r
+    PortNumber  Specifies the root hub port from which the status\r
+                is to be retrieved.  This value is zero-based. For example,\r
                 if a root hub has two ports, then the first port is numbered 0,\r
                 and the second port is numbered 1.\r
-    \r
-    PortStatus  A pointer to the current port status bits and \r
-                port status change bits.  \r
-  \r
+\r
+    PortStatus  A pointer to the current port status bits and\r
+                port status change bits.\r
+\r
   Returns:\r
-    EFI_SUCCESS \r
-        The status of the USB root hub port specified by PortNumber \r
+    EFI_SUCCESS\r
+        The status of the USB root hub port specified by PortNumber\r
         was returned in PortStatus.\r
-    EFI_INVALID_PARAMETER \r
-        PortNumber is invalid. \r
-    EFI_DEVICE_ERROR - Can't read register      \r
---*/     \r
+    EFI_INVALID_PARAMETER\r
+        PortNumber is invalid.\r
+    EFI_DEVICE_ERROR - Can't read register\r
+--*/\r
 {\r
   USB_HC_DEV *HcDev;\r
 \r
   HcDev = USB2_HC_DEV_FROM_THIS (This);\r
-  \r
+\r
   return UHCIGetRootHubPortStatus(\r
-       &HcDev->UsbHc, \r
-       PortNumber, \r
+       &HcDev->UsbHc,\r
+       PortNumber,\r
        PortStatus\r
        );\r
 }\r
@@ -4021,36 +4021,36 @@ UHCI2SetRootHubPortFeature (
   IN EFI_USB_PORT_FEATURE    PortFeature\r
   )\r
 /*++\r
-  \r
+\r
   Routine Description:\r
     Sets a feature for the specified root hub port according to UEFI 2.0 spec.\r
-  \r
+\r
   Arguments:\r
-  \r
+\r
     This        A pointer to the EFI_USB2_HC_PROTOCOL.\r
-    \r
-    PortNumber  Specifies the root hub port whose feature \r
+\r
+    PortNumber  Specifies the root hub port whose feature\r
                 is requested to be set.\r
-    \r
-    PortFeature Indicates the feature selector associated \r
-                with the feature set request. \r
-  \r
+\r
+    PortFeature Indicates the feature selector associated\r
+                with the feature set request.\r
+\r
   Returns:\r
-    EFI_SUCCESS \r
-        The feature specified by PortFeature was set for the \r
+    EFI_SUCCESS\r
+        The feature specified by PortFeature was set for the\r
         USB root hub port specified by PortNumber.\r
-    EFI_INVALID_PARAMETER \r
+    EFI_INVALID_PARAMETER\r
         PortNumber is invalid or PortFeature is invalid.\r
     EFI_DEVICE_ERROR\r
         Can't read register\r
---*/  \r
+--*/\r
 {\r
   USB_HC_DEV *HcDev;\r
 \r
   HcDev = USB2_HC_DEV_FROM_THIS (This);\r
   return UHCISetRootHubPortFeature(\r
-       &HcDev->UsbHc, \r
-       PortNumber, \r
+       &HcDev->UsbHc,\r
+       PortNumber,\r
        PortFeature\r
        );\r
 }\r
@@ -4063,36 +4063,36 @@ UHCI2ClearRootHubPortFeature (
   IN EFI_USB_PORT_FEATURE    PortFeature\r
   )\r
 /*++\r
-  \r
+\r
   Routine Description:\r
     Clears a feature for the specified root hub port according to Uefi 2.0 spec.\r
-  \r
+\r
   Arguments:\r
-  \r
+\r
     This        A pointer to the EFI_USB2_HC_PROTOCOL instance.\r
-    \r
-    PortNumber  Specifies the root hub port whose feature \r
+\r
+    PortNumber  Specifies the root hub port whose feature\r
                 is requested to be cleared.\r
-    \r
-    PortFeature Indicates the feature selector associated with the \r
+\r
+    PortFeature Indicates the feature selector associated with the\r
                 feature clear request.\r
-                  \r
+\r
   Returns:\r
-    EFI_SUCCESS \r
-        The feature specified by PortFeature was cleared for the \r
+    EFI_SUCCESS\r
+        The feature specified by PortFeature was cleared for the\r
         USB root hub port specified by PortNumber.\r
-    EFI_INVALID_PARAMETER \r
+    EFI_INVALID_PARAMETER\r
         PortNumber is invalid or PortFeature is invalid.\r
     EFI_DEVICE_ERROR\r
         Can't read register\r
---*/  \r
+--*/\r
 {\r
   USB_HC_DEV *HcDev;\r
 \r
   HcDev = USB2_HC_DEV_FROM_THIS (This);\r
   return UHCIClearRootHubPortFeature(\r
-       &HcDev->UsbHc, \r
-       PortNumber, \r
+       &HcDev->UsbHc,\r
+       PortNumber,\r
        PortFeature\r
        );\r
 }\r
@@ -4111,7 +4111,7 @@ MonitorInterruptTrans (
     Contex - Pointer to USB_HC_DEV\r
   Returns:\r
     None\r
---*/            \r
+--*/\r
 {\r
 \r
   USB_HC_DEV      *HcDev;\r
@@ -4199,7 +4199,7 @@ MonitorInterruptTrans (
       if (DataBuffer) {\r
         gBS->FreePool (DataBuffer);\r
       }\r
-      \r
+\r
       //\r
       // update should done after data buffer got.\r
       //\r
index 89d7a1f4f00b21c39497640d362ff4b56b25fd58..a32c62a54b93f695c71e335c38e4ae4fac8eebb2 100644 (file)
@@ -1,13 +1,13 @@
 /*++\r
 \r
-Copyright (c) 2006 - 2007, Intel Corporation                                                         \r
-All rights reserved. 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
+Copyright (c) 2006 - 2007, Intel Corporation\r
+All rights reserved. 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
 \r
@@ -30,7 +30,7 @@ PXE_SW_UNDI             *pxe = 0;     // 3.0 entry point
 PXE_SW_UNDI             *pxe_31 = 0;  // 3.1 entry\r
 UNDI32_DEV              *UNDI32DeviceList[MAX_NIC_INTERFACES];\r
 \r
-NII_TABLE               *UnidiDataPointer=NULL;    \r
+NII_TABLE               *UnidiDataPointer=NULL;\r
 \r
 VOID\r
 EFIAPI\r
@@ -103,7 +103,7 @@ UndiNotifyExitBs (
 \r
 Routine Description:\r
 \r
-  When EFI is shuting down the boot services, we need to install a \r
+  When EFI is shuting down the boot services, we need to install a\r
   configuration table for UNDI to work at runtime!\r
 \r
 Arguments:\r
@@ -161,8 +161,8 @@ Returns:
   EFI_EVENT   Event;\r
 \r
   Status = gBS->CreateEvent (\r
-                  EFI_EVENT_SIGNAL_EXIT_BOOT_SERVICES,\r
-                  EFI_TPL_NOTIFY,\r
+                  EVT_SIGNAL_EXIT_BOOT_SERVICES,\r
+                 TPL_NOTIFY,\r
                   UndiNotifyExitBs,\r
                   NULL,\r
                   &Event\r
@@ -191,15 +191,15 @@ Routine Description:
 Arguments:\r
 \r
   This                - Protocol instance pointer.\r
-  \r
+\r
   Controller          - Handle of device to test.\r
-  \r
+\r
   RemainingDevicePath - Not used.\r
 \r
 Returns:\r
 \r
   EFI_SUCCESS         - This driver supports this device.\r
-  \r
+\r
   other               - This driver does not support this device.\r
 \r
 --*/\r
@@ -305,15 +305,15 @@ Routine Description:
 Arguments:\r
 \r
   This                - Protocol instance pointer.\r
-  \r
+\r
   Controller          - Handle of device to work with.\r
-  \r
+\r
   RemainingDevicePath - Not used, always produce all possible children.\r
 \r
 Returns:\r
 \r
   EFI_SUCCESS         - This driver is added to Controller.\r
-  \r
+\r
   other               - This driver does not support this device.\r
 \r
 --*/\r
@@ -325,7 +325,7 @@ Returns:
   UINT16                    NewCommand;\r
   UINT8                     *TmpPxePointer;\r
   EFI_PCI_IO_PROTOCOL       *PciIoFncs;\r
-  UINTN                     Len;   \r
+  UINTN                     Len;\r
 \r
   Status = gBS->OpenProtocol (\r
                   Controller,\r
@@ -538,7 +538,7 @@ Returns:
   }\r
 \r
   //\r
-  // if the table exists, free it and alloc again, or alloc it directly \r
+  // if the table exists, free it and alloc again, or alloc it directly\r
   //\r
   if (UnidiDataPointer != NULL) {\r
        Status = gBS->FreePool(UnidiDataPointer);\r
@@ -553,7 +553,7 @@ Returns:
   if (EFI_ERROR (Status)) {\r
     goto UndiErrorAllocDataPointer;\r
   }\r
-  \r
+\r
   //\r
   // Open For Child Device\r
   //\r
@@ -750,7 +750,7 @@ Routine Description:
 Arguments:\r
 \r
   UnqId             - Runtime O/S routine might use this, this temp routine does not use it\r
-  \r
+\r
   MicroSeconds      - Determines the length of pause.\r
 \r
 Returns:\r
@@ -780,13 +780,13 @@ Routine Description:
 Arguments:\r
 \r
   UnqId             - Runtime O/S routine may use this field, this temp routine does not.\r
-  \r
+\r
   ReadWrite         - Determine if it is an I/O or Memory Read/Write Operation.\r
-  \r
+\r
   Len               - Determines the width of the data operation.\r
-  \r
+\r
   Port              - What port to Read/Write from.\r
-  \r
+\r
   BuffAddr          - Address to read to or write from.\r
 \r
 Returns:\r
@@ -880,15 +880,15 @@ Routine Description:
 Arguments:\r
 \r
   DevPtr            - Pointer which will point to the newly created device path with the MAC node attached.\r
-  \r
+\r
   BaseDevPtr        - Pointer to the device path which the UNDI device driver is latching on to.\r
-  \r
+\r
   AdapterInfo       - Pointer to the NIC data structure information which the UNDI driver is layering on..\r
 \r
 Returns:\r
 \r
   EFI_SUCCESS       - A MAC address was successfully appended to the Base Device Path.\r
-  \r
+\r
   other             - Not enough resources available to create new Device Path node.\r
 \r
 --*/\r
@@ -1020,7 +1020,7 @@ Arguments:
 Returns:\r
 \r
   EFI_SUCCESS       - Install a GUID/Pointer pair into the system's configuration table.\r
-  \r
+\r
   other             - Did not successfully install the GUID/Pointer pair into the configuration table.\r
 \r
 --*/\r
@@ -1036,12 +1036,12 @@ Returns:
     return EFI_SUCCESS;\r
   }\r
 \r
-  if(UnidiDataPointer == NULL) { \r
+  if(UnidiDataPointer == NULL) {\r
        return EFI_SUCCESS;\r
   }\r
-  \r
-  UndiData = (NII_TABLE *)UnidiDataPointer;  \r
-  \r
+\r
+  UndiData = (NII_TABLE *)UnidiDataPointer;\r
+\r
   UndiData->NumEntries  = pxe_31->IFcnt;\r
   UndiData->NextLink    = NULL;\r
 \r
index 9eac2c474deb944ec5f0727e0c36b98004ad5d79..9b3c01f8247e049f23376a41a03b350433482b7a 100644 (file)
@@ -334,7 +334,7 @@ Returns:
   EFI_STATUS    Status;\r
   EFI_TPL       OldTpl;\r
 \r
-  OldTpl = gBS->RaiseTPL (EFI_TPL_CALLBACK);\r
+  OldTpl = gBS->RaiseTPL (TPL_CALLBACK);\r
 \r
   ScsiDiskDevice  = SCSI_DISK_DEV_FROM_THIS (This);\r
 \r
@@ -405,7 +405,7 @@ Returns:
     return EFI_SUCCESS;\r
   }\r
 \r
-  OldTpl = gBS->RaiseTPL (EFI_TPL_CALLBACK);\r
+  OldTpl = gBS->RaiseTPL (TPL_CALLBACK);\r
 \r
   ScsiDiskDevice = SCSI_DISK_DEV_FROM_THIS (This);\r
 \r
@@ -529,7 +529,7 @@ Returns:
     return EFI_SUCCESS;\r
   }\r
 \r
-  OldTpl = gBS->RaiseTPL (EFI_TPL_CALLBACK);\r
+  OldTpl = gBS->RaiseTPL (TPL_CALLBACK);\r
 \r
   ScsiDiskDevice = SCSI_DISK_DEV_FROM_THIS (This);\r
 \r
index e1fdce7997108f1ce306d98510a60fef5b04271c..97c9f5efeea018290c7a9ed28eb374604c6c073d 100644 (file)
@@ -1,13 +1,13 @@
 /*++\r
 \r
-Copyright (c) 2006, Intel Corporation                                                         \r
-All rights reserved. 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
+Copyright (c) 2006, Intel Corporation\r
+All rights reserved. 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
 \r
@@ -201,7 +201,7 @@ UsbFreeAddress (
   Arguments:\r
    DevAddress  - Usb device address\r
    AddressPool - Pool of usb device address\r
-   \r
+\r
   Returns:\r
    VOID\r
 \r
@@ -259,7 +259,7 @@ UsbBusControllerDriverSupported (
       return EFI_UNSUPPORTED;\r
     }\r
   }\r
-  \r
+\r
   //\r
   // Open the IO Abstraction(s) needed to perform the supported test\r
   //\r
@@ -285,7 +285,7 @@ UsbBusControllerDriverSupported (
          This->DriverBindingHandle,\r
          Controller\r
          );\r
-  \r
+\r
   //\r
   // Check whether USB Host Controller Protocol is already\r
   // installed on this handle. If it is installed, we can start\r
@@ -302,7 +302,7 @@ UsbBusControllerDriverSupported (
   if (Status == EFI_ALREADY_STARTED) {\r
     return EFI_SUCCESS;\r
   }\r
-  \r
+\r
   if (EFI_ERROR (Status)) {\r
     Status = gBS->OpenProtocol (\r
                     Controller,\r
@@ -328,7 +328,7 @@ UsbBusControllerDriverSupported (
       );\r
     return EFI_SUCCESS;\r
   }\r
-  \r
+\r
   gBS->CloseProtocol (\r
     Controller,\r
     &gEfiUsb2HcProtocolGuid,\r
@@ -622,8 +622,8 @@ UsbBusControllerDriverStart (
   // Create a timer to query root ports periodically\r
   //\r
   Status = gBS->CreateEvent (\r
-                  EFI_EVENT_TIMER | EFI_EVENT_NOTIFY_SIGNAL,\r
-                  EFI_TPL_CALLBACK,\r
+                  EVT_TIMER | EVT_NOTIFY_SIGNAL,\r
+                  TPL_CALLBACK,\r
                   RootHubEnumeration,\r
                   RootHubController,\r
                   &RootHubController->HubNotify\r
@@ -670,7 +670,7 @@ UsbBusControllerDriverStart (
   // there will be an interval between bus start and devices start.\r
   //\r
   gBS->SignalEvent (RootHubController->HubNotify);\r
-  \r
+\r
   Status = gBS->SetTimer (\r
                   RootHubController->HubNotify,\r
                   TimerPeriodic,\r
@@ -1229,7 +1229,7 @@ UsbDeviceDeConfiguration (
   Arguments:\r
     UsbIoDevice     -   The device to be deconfigured.\r
 \r
-  Returns: \r
+  Returns:\r
     EFI_SUCCESS\r
     EFI_DEVICE_ERROR\r
 \r
@@ -1307,7 +1307,7 @@ UsbDeviceDeConfiguration (
             NULL\r
             );\r
     }\r
-    \r
+\r
     //\r
     // remove child handle reference to the USB_HC_PROTOCOL\r
     //\r
@@ -1422,7 +1422,7 @@ OnHubInterruptComplete (
         &UsbResult\r
         );\r
     }\r
-    \r
+\r
     //\r
     // Delete & Submit this interrupt again\r
     //\r
@@ -1467,7 +1467,7 @@ OnHubInterruptComplete (
   if (DataLength == 0 || Data == NULL) {\r
     return EFI_SUCCESS;\r
   }\r
-  \r
+\r
   //\r
   // Scan which port has status change\r
   // Bit 0 stands for hub itself, other bit stands for\r
@@ -1500,18 +1500,18 @@ RootHubEnumeration (
 /*++\r
 \r
   Routine Description:\r
-  \r
+\r
     This is USB RootHub enumerator\r
 \r
   Arguments:\r
-  \r
+\r
     Event   -   Indicating which event is signaled\r
     Context -  actually it is a USB_IO_DEVICE\r
 \r
   Returns:\r
-  \r
+\r
     VOID\r
-    \r
+\r
 --*/\r
 {\r
   USB_IO_CONTROLLER_DEVICE  *HubController;\r
@@ -1565,7 +1565,7 @@ RootHubEnumeration (
       );\r
 \r
     if (IsPortConnect (HubPortStatus.PortStatus)) {\r
-        \r
+\r
       //\r
       // There is something connected to this port\r
       //\r
@@ -1602,8 +1602,8 @@ RootHubEnumeration (
       // Process of identify device speed\r
       //\r
       Status = IdentifyDeviceSpeed (\r
-                 UsbBusDev, \r
-                 NewDevice, \r
+                 UsbBusDev,\r
+                 NewDevice,\r
                  Index\r
                  );\r
       if (EFI_ERROR (Status)) {\r
@@ -1667,8 +1667,8 @@ RootHubEnumeration (
           // Create an event to do hub enumeration\r
           //\r
           gBS->CreateEvent (\r
-                EFI_EVENT_NOTIFY_SIGNAL,\r
-                EFI_TPL_CALLBACK,\r
+                EVT_NOTIFY_SIGNAL,\r
+                TPL_CALLBACK,\r
                 HubEnumeration,\r
                 NewController,\r
                 &NewController->HubNotify\r
@@ -1727,11 +1727,11 @@ HubEnumeration (
 /*++\r
 \r
   Routine Description:\r
-  \r
+\r
     This is Usb Hub enumerator\r
 \r
   Arguments:\r
-  \r
+\r
     Event    -   Indicating which event is signaled\r
     Context  -  actually it is a USB_IO_DEVICE\r
 \r
@@ -2040,8 +2040,8 @@ HubEnumeration (
           // Create an event to do hub enumeration\r
           //\r
           gBS->CreateEvent (\r
-                EFI_EVENT_NOTIFY_SIGNAL,\r
-                EFI_TPL_CALLBACK,\r
+                EVT_NOTIFY_SIGNAL,\r
+                TPL_CALLBACK,\r
                 HubEnumeration,\r
                 NewController,\r
                 &NewController->HubNotify\r
@@ -2213,7 +2213,7 @@ ParentPortReset (
     UsbIoController   - Indicating the Usb Controller Device.\r
     ReConfigure       - Do we need to reconfigure it.\r
     RetryTimes        - Retry Times when failed\r
-    \r
+\r
   Returns:\r
     EFI_SUCCESS\r
     EFI_DEVICE_ERROR\r
@@ -2305,7 +2305,7 @@ UsbPortReset (
   if (IsHub (UsbIoController)) {\r
     return EFI_INVALID_PARAMETER;\r
   }\r
-  \r
+\r
   //\r
   // Since at this time, this device has already been configured,\r
   // it needs to be re-configured.\r
@@ -2329,7 +2329,7 @@ ResetRootPort (
     UsbBusDev       - Bus controller of the device.\r
     PortNum         - The given port to be reset.\r
     RetryTimes      - RetryTimes when failed\r
-    \r
+\r
   Returns:\r
     EFI_SUCCESS\r
     EFI_DEVICE_ERROR\r
@@ -2594,22 +2594,22 @@ UsbSetTransactionTranslator (
   IN OUT USB_IO_DEVICE            *Device\r
   )\r
 /*++\r
-  \r
+\r
   Routine Description:\r
-  \r
+\r
     Set Transaction Translator parameter\r
-  \r
+\r
   Arguments:\r
-  \r
+\r
     ParentHubController  - Controller structure of the parent Hub device\r
     ParentPort           - Number of parent port\r
     Device               - Structure of the device\r
-    \r
+\r
   Returns:\r
-  \r
+\r
     EFI_SUCCESS            Success\r
     EFI_OUT_OF_RESOURCES   Cannot allocate resources\r
-    \r
+\r
 --*/\r
 {\r
   USB_IO_CONTROLLER_DEVICE  *AncestorHubController;\r
@@ -2650,19 +2650,19 @@ UsbUnsetTransactionTranslator (
   USB_IO_DEVICE *Device\r
   )\r
 /*++\r
-  \r
+\r
   Routine Description:\r
-  \r
+\r
     Unset Transaction Translator parameter\r
-  \r
+\r
   Arguments:\r
-    \r
+\r
     Device - Structure of the device\r
-    \r
+\r
   Returns:\r
-  \r
+\r
     EFI_SUCCESS    Success\r
-    \r
+\r
 --*/\r
 {\r
   if (Device->Translator) {\r
@@ -2681,22 +2681,22 @@ IdentifyDeviceSpeed (
   UINT8                     Index\r
   )\r
 /*++\r
-  \r
+\r
   Routine Description:\r
-  \r
+\r
     Identify speed of USB device\r
-  \r
+\r
   Arguments:\r
-    \r
+\r
     UsbBusDev  - UsbBus controller structure of the device\r
     NewDevice  - Devcie controller structure\r
     Index      - Number of the port\r
-    \r
+\r
   Returns:\r
-  \r
+\r
     EFI_SUCCESS        Success\r
     EFI_NOT_FOUND      Device release to CHC or can't be found\r
-    \r
+\r
 --*/\r
 {\r
   EFI_STATUS             Status;\r
@@ -2707,7 +2707,7 @@ IdentifyDeviceSpeed (
     Index,\r
     (EFI_USB_PORT_STATUS *) &HubPortStatus\r
     );\r
-  \r
+\r
   //\r
   // Check device device\r
   //\r
@@ -2717,7 +2717,7 @@ IdentifyDeviceSpeed (
     //\r
     if (HubPortStatus.PortStatus & USB_PORT_STAT_HIGH_SPEED) {\r
       DEBUG ((gUSBDebugLevel, "High Speed Device attached to EHC\n"));\r
-      NewDevice->DeviceSpeed = EFI_USB_SPEED_HIGH; \r
+      NewDevice->DeviceSpeed = EFI_USB_SPEED_HIGH;\r
     } else {\r
       Status = ReleasePortToCHC (UsbBusDev, Index);\r
       if (EFI_ERROR (Status)) {\r
@@ -2733,13 +2733,13 @@ IdentifyDeviceSpeed (
     //\r
     if (HubPortStatus.PortStatus & USB_PORT_STAT_LOW_SPEED) {\r
       DEBUG ((gUSBDebugLevel, "Low Speed Device attached to CHC\n"));\r
-      NewDevice->DeviceSpeed = EFI_USB_SPEED_LOW; \r
+      NewDevice->DeviceSpeed = EFI_USB_SPEED_LOW;\r
     } else {\r
       DEBUG ((gUSBDebugLevel, "FULL Speed Device attached to CHC\n"));\r
-      NewDevice->DeviceSpeed = EFI_USB_SPEED_FULL; \r
+      NewDevice->DeviceSpeed = EFI_USB_SPEED_FULL;\r
     }\r
   }\r
-  \r
+\r
   return EFI_SUCCESS;\r
 }\r
 \r
@@ -2750,21 +2750,21 @@ ReleasePortToCHC (
   UINT8                     PortNum\r
   )\r
 /*++\r
-  \r
+\r
   Routine Description:\r
-  \r
+\r
     Set bit to release the port owner to CHC\r
-  \r
+\r
   Arguments:\r
-    \r
+\r
     UsbBusDev  - UsbBus controller structure of the device\r
     PortNum    - Number of the port\r
-    \r
+\r
   Returns:\r
-  \r
+\r
     EFI_SUCCESS        Success\r
     EFI_DEVICE_ERROR   Fail\r
-    \r
+\r
 --*/\r
 {\r
   EFI_STATUS  Status;\r
@@ -2789,29 +2789,29 @@ UsbVirtualHcGetCapability (
   OUT UINT8                     *Is64BitCapable\r
   )\r
 /*++\r
-  \r
+\r
   Routine Description:\r
-  \r
-    Virtual interface to Retrieves the capablility of root hub ports \r
+\r
+    Virtual interface to Retrieves the capablility of root hub ports\r
     for both Hc2 and Hc protocol.\r
-    \r
+\r
   Arguments:\r
-  \r
+\r
     UsbBusDev       - A pointer to bus controller of the device.\r
     MaxSpeed        - A pointer to the number of the host controller.\r
     PortNumber      - A pointer to the number of the root hub ports.\r
-    Is64BitCapable  - A pointer to the flag for whether controller supports \r
+    Is64BitCapable  - A pointer to the flag for whether controller supports\r
                       64-bit memory addressing.\r
-    \r
+\r
   Returns:\r
-  \r
-    EFI_SUCCESS \r
+\r
+    EFI_SUCCESS\r
           The host controller capability were retrieved successfully.\r
-    EFI_INVALID_PARAMETER \r
+    EFI_INVALID_PARAMETER\r
           MaxSpeed or PortNumber or Is64BitCapable is NULL.\r
-    EFI_DEVICE_ERROR  \r
-          An error was encountered while attempting to retrieve the capabilities.  \r
-          \r
+    EFI_DEVICE_ERROR\r
+          An error was encountered while attempting to retrieve the capabilities.\r
+\r
 --*/\r
 {\r
   EFI_STATUS  Status;\r
@@ -2844,59 +2844,59 @@ UsbVirtualHcReset (
   IN UINT16                     Attributes\r
   )\r
 /*++\r
-  \r
+\r
   Routine Description:\r
-  \r
+\r
     Virtual interface to provides software reset for the USB host controller\r
     for both Hc2 and Hc protocol.\r
-  \r
+\r
   Arguments:\r
-  \r
+\r
     UsbBusDev   - A pointer to bus controller of the device.\r
-    Attributes  - A bit mask of the reset operation to perform. \r
+    Attributes  - A bit mask of the reset operation to perform.\r
                 See below for a list of the supported bit mask values.\r
-  \r
+\r
   #define EFI_USB_HC_RESET_GLOBAL  0x0001               // Hc2 and Hc\r
   #define EFI_USB_HC_RESET_HOST_CONTROLLER  0x0002      // Hc2 and Hc\r
   #define EFI_USB_HC_RESET_GLOBAL_WITH_DEBUG  0x0004    // Hc2\r
   #define EFI_USB_HC_RESET_HOST_WITH_DEBUG  0x0008      // Hc2\r
 \r
-  EFI_USB_HC_RESET_GLOBAL \r
+  EFI_USB_HC_RESET_GLOBAL\r
         If this bit is set, a global reset signal will be sent to the USB bus.\r
-        This resets all of the USB bus logic, including the USB host \r
+        This resets all of the USB bus logic, including the USB host\r
         controller hardware and all the devices attached on the USB bus.\r
-  EFI_USB_HC_RESET_HOST_CONTROLLER  \r
-        If this bit is set, the USB host controller hardware will be reset. \r
+  EFI_USB_HC_RESET_HOST_CONTROLLER\r
+        If this bit is set, the USB host controller hardware will be reset.\r
         No reset signal will be sent to the USB bus.\r
   EFI_USB_HC_RESET_GLOBAL_WITH_DEBUG\r
         If this bit is set, a global reset signal will be sent to the USB bus.\r
-        This resets all of the USB bus logic, including the USB host \r
-        controller hardware and all the devices attached on the USB bus. \r
-        If this is an EHCI controller and the debug port has configured, then \r
+        This resets all of the USB bus logic, including the USB host\r
+        controller hardware and all the devices attached on the USB bus.\r
+        If this is an EHCI controller and the debug port has configured, then\r
         this is will still reset the host controller.\r
   EFI_USB_HC_RESET_HOST_WITH_DEBUG\r
-        If this bit is set, the USB host controller hardware will be reset. \r
+        If this bit is set, the USB host controller hardware will be reset.\r
         If this is an EHCI controller and the debug port has been configured,\r
         then this will still reset the host controller.\r
-        \r
+\r
   Returns:\r
-  \r
-    EFI_SUCCESS \r
+\r
+    EFI_SUCCESS\r
         The reset operation succeeded.\r
-    EFI_INVALID_PARAMETER \r
+    EFI_INVALID_PARAMETER\r
         Attributes is not valid.\r
     EFI_UNSUPPOURTED\r
         The type of reset specified by Attributes is not currently supported by\r
         the host controller hardware.\r
     EFI_ACCESS_DENIED\r
-        Reset operation is rejected due to the debug port being configured and \r
-        active; only EFI_USB_HC_RESET_GLOBAL_WITH_DEBUG or \r
+        Reset operation is rejected due to the debug port being configured and\r
+        active; only EFI_USB_HC_RESET_GLOBAL_WITH_DEBUG or\r
         EFI_USB_HC_RESET_HOST_WITH_DEBUG reset Atrributes can be used to\r
         perform reset operation for this host controller.\r
-    EFI_DEVICE_ERROR  \r
-        An error was encountered while attempting to perform \r
+    EFI_DEVICE_ERROR\r
+        An error was encountered while attempting to perform\r
         the reset operation.\r
-        \r
+\r
 --*/\r
 {\r
   EFI_STATUS  Status;\r
@@ -2925,36 +2925,36 @@ UsbVirtualHcGetState (
   OUT EFI_USB_HC_STATE          *State\r
   )\r
 /*++\r
-  \r
+\r
   Routine Description:\r
-  \r
+\r
     Virtual interface to retrieves current state of the USB host controller\r
     for both Hc2 and Hc protocol.\r
-  \r
+\r
   Arguments:\r
-    \r
+\r
     UsbBusDev - A pointer to bus controller of the device.\r
-    State     - A pointer to the EFI_USB_HC_STATE data structure that \r
-              indicates current state of the USB host controller.  \r
+    State     - A pointer to the EFI_USB_HC_STATE data structure that\r
+              indicates current state of the USB host controller.\r
               Type EFI_USB_HC_STATE is defined below.\r
-              \r
+\r
     typedef enum {\r
       EfiUsbHcStateHalt,\r
       EfiUsbHcStateOperational,\r
       EfiUsbHcStateSuspend,\r
       EfiUsbHcStateMaximum\r
     } EFI_USB_HC_STATE;\r
-  \r
+\r
   Returns:\r
-  \r
-    EFI_SUCCESS \r
+\r
+    EFI_SUCCESS\r
             The state information of the host controller was returned in State.\r
-    EFI_INVALID_PARAMETER \r
+    EFI_INVALID_PARAMETER\r
             State is NULL.\r
-    EFI_DEVICE_ERROR  \r
-            An error was encountered while attempting to retrieve the \r
-            host controller's current state.  \r
-            \r
+    EFI_DEVICE_ERROR\r
+            An error was encountered while attempting to retrieve the\r
+            host controller's current state.\r
+\r
 --*/\r
 {\r
   EFI_STATUS  Status;\r
@@ -2983,27 +2983,27 @@ UsbVirtualHcSetState (
   IN EFI_USB_HC_STATE           State\r
   )\r
 /*++\r
-  \r
+\r
   Routine Description:\r
-  \r
+\r
     Virtual interface to sets the USB host controller to a specific state\r
     for both Hc2 and Hc protocol.\r
-  \r
+\r
   Arguments:\r
-    \r
+\r
     UsbBusDev   - A pointer to bus controller of the device.\r
     State       - Indicates the state of the host controller that will be set.\r
-  \r
+\r
   Returns:\r
-  \r
-    EFI_SUCCESS \r
-          The USB host controller was successfully placed in the state \r
+\r
+    EFI_SUCCESS\r
+          The USB host controller was successfully placed in the state\r
           specified by State.\r
-    EFI_INVALID_PARAMETER \r
+    EFI_INVALID_PARAMETER\r
           State is invalid.\r
-    EFI_DEVICE_ERROR  \r
-          Failed to set the state specified by State due to device error.  \r
-          \r
+    EFI_DEVICE_ERROR\r
+          Failed to set the state specified by State due to device error.\r
+\r
 --*/\r
 {\r
   EFI_STATUS  Status;\r
@@ -3033,29 +3033,29 @@ UsbVirtualHcGetRootHubPortStatus (
   OUT EFI_USB_PORT_STATUS       *PortStatus\r
   )\r
 /*++\r
-  \r
+\r
   Routine Description:\r
-  \r
+\r
     Virtual interface to retrieves the current status of a USB root hub port\r
     both for Hc2 and Hc protocol.\r
-  \r
+\r
   Arguments:\r
-  \r
+\r
     UsbBusDev   - A pointer to bus controller of the device.\r
-    PortNumber  - Specifies the root hub port from which the status \r
-                is to be retrieved.  This value is zero-based. For example, \r
+    PortNumber  - Specifies the root hub port from which the status\r
+                is to be retrieved.  This value is zero-based. For example,\r
                 if a root hub has two ports, then the first port is numbered 0,\r
                 and the second port is numbered 1.\r
-    PortStatus  - A pointer to the current port status bits and \r
-                port status change bits.  \r
-  \r
+    PortStatus  - A pointer to the current port status bits and\r
+                port status change bits.\r
+\r
   Returns:\r
-  \r
-    EFI_SUCCESS  The status of the USB root hub port specified by PortNumber \r
+\r
+    EFI_SUCCESS  The status of the USB root hub port specified by PortNumber\r
                  was returned in PortStatus.\r
-    EFI_INVALID_PARAMETER PortNumber is invalid. \r
-    EFI_DEVICE_ERROR      Can't read register     \r
-    \r
+    EFI_INVALID_PARAMETER PortNumber is invalid.\r
+    EFI_DEVICE_ERROR      Can't read register\r
+\r
 --*/\r
 {\r
   EFI_STATUS  Status;\r
@@ -3087,29 +3087,29 @@ UsbVirtualHcSetRootHubPortFeature (
   IN  EFI_USB_PORT_FEATURE      PortFeature\r
   )\r
 /*++\r
-  \r
+\r
   Routine Description:\r
     Virual interface to sets a feature for the specified root hub port\r
     for both Hc2 and Hc protocol.\r
-  \r
+\r
   Arguments:\r
-  \r
+\r
     UsbBusDev   - A pointer to bus controller of the device.\r
-    PortNumber  - Specifies the root hub port whose feature \r
+    PortNumber  - Specifies the root hub port whose feature\r
                 is requested to be set.\r
-    PortFeature - Indicates the feature selector associated \r
-                with the feature set request. \r
-  \r
+    PortFeature - Indicates the feature selector associated\r
+                with the feature set request.\r
+\r
   Returns:\r
-  \r
-    EFI_SUCCESS \r
-        The feature specified by PortFeature was set for the \r
+\r
+    EFI_SUCCESS\r
+        The feature specified by PortFeature was set for the\r
         USB root hub port specified by PortNumber.\r
-    EFI_INVALID_PARAMETER \r
+    EFI_INVALID_PARAMETER\r
         PortNumber is invalid or PortFeature is invalid.\r
     EFI_DEVICE_ERROR\r
         Can't read register\r
-        \r
+\r
 --*/\r
 {\r
   EFI_STATUS  Status;\r
@@ -3141,30 +3141,30 @@ UsbVirtualHcClearRootHubPortFeature (
   IN  EFI_USB_PORT_FEATURE      PortFeature\r
   )\r
 /*++\r
-  \r
+\r
   Routine Description:\r
-  \r
+\r
     Virtual interface to clears a feature for the specified root hub port\r
     for both Hc2 and Hc protocol.\r
-  \r
+\r
   Arguments:\r
-  \r
+\r
     UsbBusDev   - A pointer to bus controller of the device.\r
-    PortNumber  - Specifies the root hub port whose feature \r
+    PortNumber  - Specifies the root hub port whose feature\r
                 is requested to be cleared.\r
-    PortFeature - Indicates the feature selector associated with the \r
+    PortFeature - Indicates the feature selector associated with the\r
                 feature clear request.\r
-                  \r
+\r
   Returns:\r
-  \r
-    EFI_SUCCESS \r
-        The feature specified by PortFeature was cleared for the \r
+\r
+    EFI_SUCCESS\r
+        The feature specified by PortFeature was cleared for the\r
         USB root hub port specified by PortNumber.\r
-    EFI_INVALID_PARAMETER \r
+    EFI_INVALID_PARAMETER\r
         PortNumber is invalid or PortFeature is invalid.\r
     EFI_DEVICE_ERROR\r
         Can't read register\r
-        \r
+\r
 --*/\r
 {\r
   EFI_STATUS  Status;\r
@@ -3204,48 +3204,48 @@ UsbVirtualHcControlTransfer (
   OUT UINT32                               *TransferResult\r
   )\r
 /*++\r
-  \r
+\r
   Routine Description:\r
-  \r
+\r
     Virtual interface to submits control transfer to a target USB device\r
     for both Hc2 and Hc protocol.\r
-  \r
+\r
   Arguments:\r
-    \r
+\r
     UsbBusDev     - A pointer to bus controller of the device.\r
     DeviceAddress - Represents the address of the target device on the USB,\r
                   which is assigned during USB enumeration.\r
     DeviceSpeed   - Indicates target device speed.\r
-    MaximumPacketLength - Indicates the maximum packet size that the \r
-                        default control transfer endpoint is capable of \r
+    MaximumPacketLength - Indicates the maximum packet size that the\r
+                        default control transfer endpoint is capable of\r
                         sending or receiving.\r
-    Request       - A pointer to the USB device request that will be sent \r
-                  to the USB device. \r
+    Request       - A pointer to the USB device request that will be sent\r
+                  to the USB device.\r
     TransferDirection - Specifies the data direction for the transfer.\r
-                      There are three values available, DataIn, DataOut \r
+                      There are three values available, DataIn, DataOut\r
                       and NoData.\r
-    Data          - A pointer to the buffer of data that will be transmitted \r
+    Data          - A pointer to the buffer of data that will be transmitted\r
                   to USB device or received from USB device.\r
-    DataLength    - Indicates the size, in bytes, of the data buffer \r
+    DataLength    - Indicates the size, in bytes, of the data buffer\r
                   specified by Data.\r
-    TimeOut       - Indicates the maximum time, in microseconds, \r
+    TimeOut       - Indicates the maximum time, in microseconds,\r
                   which the transfer is allowed to complete.\r
     Translator      - A pointr to the transaction translator data.\r
-    TransferResult  - A pointer to the detailed result information generated \r
+    TransferResult  - A pointer to the detailed result information generated\r
                     by this control transfer.\r
-                    \r
+\r
   Returns:\r
-  \r
-    EFI_SUCCESS \r
+\r
+    EFI_SUCCESS\r
         The control transfer was completed successfully.\r
-    EFI_OUT_OF_RESOURCES  \r
+    EFI_OUT_OF_RESOURCES\r
         The control transfer could not be completed due to a lack of resources.\r
-    EFI_INVALID_PARAMETER \r
+    EFI_INVALID_PARAMETER\r
         Some parameters are invalid.\r
-    EFI_TIMEOUT \r
+    EFI_TIMEOUT\r
         The control transfer failed due to timeout.\r
-    EFI_DEVICE_ERROR  \r
-        The control transfer failed due to host controller or device error. \r
+    EFI_DEVICE_ERROR\r
+        The control transfer failed due to host controller or device error.\r
         Caller should check TranferResult for detailed error information.\r
 \r
 --*/\r
@@ -3305,55 +3305,55 @@ UsbVirtualHcBulkTransfer (
   OUT UINT32                              *TransferResult\r
   )\r
 /*++\r
-  \r
+\r
   Routine Description:\r
-  \r
+\r
     Virtual interface to submits bulk transfer to a bulk endpoint of a USB device\r
     both for Hc2 and Hc protocol.\r
-    \r
+\r
   Arguments:\r
-    \r
+\r
     UsbBusDev         - A pointer to bus controller of the device.\r
     DeviceAddress     - Represents the address of the target device on the USB,\r
-                      which is assigned during USB enumeration.               \r
-    EndPointAddress   - The combination of an endpoint number and an \r
-                      endpoint direction of the target USB device. \r
-                      Each endpoint address supports data transfer in \r
-                      one direction except the control endpoint \r
-                      (whose default endpoint address is 0). \r
-                      It is the caller's responsibility to make sure that \r
-                      the EndPointAddress represents a bulk endpoint.                  \r
+                      which is assigned during USB enumeration.\r
+    EndPointAddress   - The combination of an endpoint number and an\r
+                      endpoint direction of the target USB device.\r
+                      Each endpoint address supports data transfer in\r
+                      one direction except the control endpoint\r
+                      (whose default endpoint address is 0).\r
+                      It is the caller's responsibility to make sure that\r
+                      the EndPointAddress represents a bulk endpoint.\r
     DeviceSpeed       - Indicates device speed. The supported values are EFI_USB_SPEED_FULL\r
                       and EFI_USB_SPEED_HIGH.\r
     MaximumPacketLength - Indicates the maximum packet size the target endpoint\r
-                        is capable of sending or receiving.                 \r
+                        is capable of sending or receiving.\r
     DataBuffersNumber - Number of data buffers prepared for the transfer.\r
-    Data              - Array of pointers to the buffers of data that will be transmitted \r
-                      to USB device or received from USB device.              \r
+    Data              - Array of pointers to the buffers of data that will be transmitted\r
+                      to USB device or received from USB device.\r
     DataLength        - When input, indicates the size, in bytes, of the data buffer\r
-                      specified by Data. When output, indicates the actually \r
-                      transferred data size.              \r
-    DataToggle        - A pointer to the data toggle value. On input, it indicates \r
+                      specified by Data. When output, indicates the actually\r
+                      transferred data size.\r
+    DataToggle        - A pointer to the data toggle value. On input, it indicates\r
                       the initial data toggle value the bulk transfer should adopt;\r
-                      on output, it is updated to indicate the data toggle value \r
-                      of the subsequent bulk transfer. \r
-    Translator        - A pointr to the transaction translator data. \r
-    TimeOut           - Indicates the maximum time, in microseconds, which the \r
-                      transfer is allowed to complete.              \r
-    TransferResult    - A pointer to the detailed result information of the \r
+                      on output, it is updated to indicate the data toggle value\r
+                      of the subsequent bulk transfer.\r
+    Translator        - A pointr to the transaction translator data.\r
+    TimeOut           - Indicates the maximum time, in microseconds, which the\r
+                      transfer is allowed to complete.\r
+    TransferResult    - A pointer to the detailed result information of the\r
                       bulk transfer.\r
 \r
   Returns:\r
-  \r
-    EFI_SUCCESS \r
+\r
+    EFI_SUCCESS\r
         The bulk transfer was completed successfully.\r
-    EFI_OUT_OF_RESOURCES  \r
+    EFI_OUT_OF_RESOURCES\r
         The bulk transfer could not be submitted due to lack of resource.\r
-    EFI_INVALID_PARAMETER \r
+    EFI_INVALID_PARAMETER\r
         Some parameters are invalid.\r
-    EFI_TIMEOUT \r
+    EFI_TIMEOUT\r
         The bulk transfer failed due to timeout.\r
-    EFI_DEVICE_ERROR  \r
+    EFI_DEVICE_ERROR\r
         The bulk transfer failed due to host controller or device error.\r
         Caller should check TranferResult for detailed error information.\r
 \r
@@ -3412,63 +3412,63 @@ UsbVirtualHcAsyncInterruptTransfer (
   IN  VOID                                  *Context OPTIONAL\r
   )\r
 /*++\r
-  \r
+\r
   Routine Description:\r
-  \r
-    Virtual interface to submits an asynchronous interrupt transfer to an \r
+\r
+    Virtual interface to submits an asynchronous interrupt transfer to an\r
     interrupt endpoint of a USB device for both Hc2 and Hc protocol.\r
-  \r
+\r
   Arguments:\r
-    \r
+\r
     UsbBusDev       - A pointer to bus controller of the device.\r
     DeviceAddress   - Represents the address of the target device on the USB,\r
-                    which is assigned during USB enumeration.                \r
-    EndPointAddress - The combination of an endpoint number and an endpoint \r
-                    direction of the target USB device. Each endpoint address \r
-                    supports data transfer in one direction except the \r
-                    control endpoint (whose default endpoint address is 0). \r
-                    It is the caller's responsibility to make sure that \r
-                    the EndPointAddress represents an interrupt endpoint.              \r
+                    which is assigned during USB enumeration.\r
+    EndPointAddress - The combination of an endpoint number and an endpoint\r
+                    direction of the target USB device. Each endpoint address\r
+                    supports data transfer in one direction except the\r
+                    control endpoint (whose default endpoint address is 0).\r
+                    It is the caller's responsibility to make sure that\r
+                    the EndPointAddress represents an interrupt endpoint.\r
     DeviceSpeed     - Indicates device speed.\r
     MaximumPacketLength  - Indicates the maximum packet size the target endpoint\r
-                         is capable of sending or receiving.                   \r
+                         is capable of sending or receiving.\r
     IsNewTransfer   - If TRUE, an asynchronous interrupt pipe is built between\r
-                    the host and the target interrupt endpoint. \r
-                    If FALSE, the specified asynchronous interrupt pipe \r
-                    is canceled.               \r
-    DataToggle      - A pointer to the data toggle value.  On input, it is valid \r
-                    when IsNewTransfer is TRUE, and it indicates the initial \r
-                    data toggle value the asynchronous interrupt transfer \r
-                    should adopt.  \r
-                    On output, it is valid when IsNewTransfer is FALSE, \r
-                    and it is updated to indicate the data toggle value of \r
-                    the subsequent asynchronous interrupt transfer.              \r
-    PollingInterval - Indicates the interval, in milliseconds, that the \r
-                    asynchronous interrupt transfer is polled.  \r
-                    This parameter is required when IsNewTransfer is TRUE.               \r
-    DataLength      - Indicates the length of data to be received at the \r
-                    rate specified by PollingInterval from the target \r
-                    asynchronous interrupt endpoint.  This parameter \r
-                    is only required when IsNewTransfer is TRUE.             \r
+                    the host and the target interrupt endpoint.\r
+                    If FALSE, the specified asynchronous interrupt pipe\r
+                    is canceled.\r
+    DataToggle      - A pointer to the data toggle value.  On input, it is valid\r
+                    when IsNewTransfer is TRUE, and it indicates the initial\r
+                    data toggle value the asynchronous interrupt transfer\r
+                    should adopt.\r
+                    On output, it is valid when IsNewTransfer is FALSE,\r
+                    and it is updated to indicate the data toggle value of\r
+                    the subsequent asynchronous interrupt transfer.\r
+    PollingInterval - Indicates the interval, in milliseconds, that the\r
+                    asynchronous interrupt transfer is polled.\r
+                    This parameter is required when IsNewTransfer is TRUE.\r
+    DataLength      - Indicates the length of data to be received at the\r
+                    rate specified by PollingInterval from the target\r
+                    asynchronous interrupt endpoint.  This parameter\r
+                    is only required when IsNewTransfer is TRUE.\r
     Translator      - A pointr to the transaction translator data.\r
-    CallBackFunction  - The Callback function.This function is called at the \r
-                      rate specified by PollingInterval.This parameter is \r
-                      only required when IsNewTransfer is TRUE.               \r
+    CallBackFunction  - The Callback function.This function is called at the\r
+                      rate specified by PollingInterval.This parameter is\r
+                      only required when IsNewTransfer is TRUE.\r
     Context         - The context that is passed to the CallBackFunction.\r
                     - This is an optional parameter and may be NULL.\r
-  \r
+\r
   Returns:\r
-  \r
-    EFI_SUCCESS \r
-        The asynchronous interrupt transfer request has been successfully \r
+\r
+    EFI_SUCCESS\r
+        The asynchronous interrupt transfer request has been successfully\r
         submitted or canceled.\r
-    EFI_INVALID_PARAMETER \r
+    EFI_INVALID_PARAMETER\r
         Some parameters are invalid.\r
-    EFI_OUT_OF_RESOURCES  \r
-        The request could not be completed due to a lack of resources.  \r
+    EFI_OUT_OF_RESOURCES\r
+        The request could not be completed due to a lack of resources.\r
     EFI_DEVICE_ERROR\r
         Can't read register\r
-        \r
+\r
 --*/\r
 {\r
   EFI_STATUS  Status;\r
@@ -3527,58 +3527,58 @@ UsbVirtualHcSyncInterruptTransfer (
   OUT UINT32                                *TransferResult\r
   )\r
 /*++\r
-  \r
+\r
   Routine Description:\r
-  \r
-    Vitual interface to submits synchronous interrupt transfer to an interrupt endpoint \r
+\r
+    Vitual interface to submits synchronous interrupt transfer to an interrupt endpoint\r
     of a USB device for both Hc2 and Hc protocol.\r
-  \r
+\r
   Arguments:\r
-    \r
+\r
     UsbBusDev       - A pointer to bus controller of the device.\r
-    DeviceAddress   - Represents the address of the target device on the USB, \r
+    DeviceAddress   - Represents the address of the target device on the USB,\r
                     which is assigned during USB enumeration.\r
-    EndPointAddress   - The combination of an endpoint number and an endpoint \r
-                      direction of the target USB device. Each endpoint \r
-                      address supports data transfer in one direction \r
-                      except the control endpoint (whose default \r
+    EndPointAddress   - The combination of an endpoint number and an endpoint\r
+                      direction of the target USB device. Each endpoint\r
+                      address supports data transfer in one direction\r
+                      except the control endpoint (whose default\r
                       endpoint address is 0). It is the caller's responsibility\r
-                      to make sure that the EndPointAddress represents \r
-                      an interrupt endpoint. \r
+                      to make sure that the EndPointAddress represents\r
+                      an interrupt endpoint.\r
     DeviceSpeed     - Indicates device speed.\r
-    MaximumPacketLength - Indicates the maximum packet size the target endpoint \r
+    MaximumPacketLength - Indicates the maximum packet size the target endpoint\r
                         is capable of sending or receiving.\r
-    Data            - A pointer to the buffer of data that will be transmitted \r
+    Data            - A pointer to the buffer of data that will be transmitted\r
                     to USB device or received from USB device.\r
-    DataLength      - On input, the size, in bytes, of the data buffer specified \r
+    DataLength      - On input, the size, in bytes, of the data buffer specified\r
                     by Data. On output, the number of bytes transferred.\r
     DataToggle      - A pointer to the data toggle value. On input, it indicates\r
-                    the initial data toggle value the synchronous interrupt \r
-                    transfer should adopt; \r
-                    on output, it is updated to indicate the data toggle value \r
-                    of the subsequent synchronous interrupt transfer. \r
-    TimeOut         - Indicates the maximum time, in microseconds, which the \r
+                    the initial data toggle value the synchronous interrupt\r
+                    transfer should adopt;\r
+                    on output, it is updated to indicate the data toggle value\r
+                    of the subsequent synchronous interrupt transfer.\r
+    TimeOut         - Indicates the maximum time, in microseconds, which the\r
                     transfer is allowed to complete.\r
     Translator      - A pointr to the transaction translator data.\r
-    TransferResult  - A pointer to the detailed result information from \r
-                    the synchronous interrupt transfer.  \r
+    TransferResult  - A pointer to the detailed result information from\r
+                    the synchronous interrupt transfer.\r
 \r
   Returns:\r
-  \r
-    EFI_SUCCESS \r
+\r
+    EFI_SUCCESS\r
         The synchronous interrupt transfer was completed successfully.\r
-    EFI_OUT_OF_RESOURCES  \r
-        The synchronous interrupt transfer could not be submitted due \r
+    EFI_OUT_OF_RESOURCES\r
+        The synchronous interrupt transfer could not be submitted due\r
         to lack of resource.\r
-    EFI_INVALID_PARAMETER \r
+    EFI_INVALID_PARAMETER\r
         Some parameters are invalid.\r
-    EFI_TIMEOUT \r
+    EFI_TIMEOUT\r
         The synchronous interrupt transfer failed due to timeout.\r
-    EFI_DEVICE_ERROR  \r
-        The synchronous interrupt transfer failed due to host controller \r
-        or device error. Caller should check TranferResult for detailed \r
-        error information.  \r
-        \r
+    EFI_DEVICE_ERROR\r
+        The synchronous interrupt transfer failed due to host controller\r
+        or device error. Caller should check TranferResult for detailed\r
+        error information.\r
+\r
 --*/\r
 {\r
   EFI_STATUS  Status;\r
@@ -3634,34 +3634,34 @@ UsbVirtualHcIsochronousTransfer (
   OUT UINT32                                *TransferResult\r
   )\r
 /*++\r
-  \r
+\r
   Routine Description:\r
-  \r
+\r
     Virtual interface to submits isochronous transfer to a target USB device\r
     for both Hc2 and Hc protocol.\r
-  \r
+\r
   Arguments:\r
-    \r
+\r
     UsbBusDev        - A pointer to bus controller of the device.\r
     DeviceAddress    - Represents the address of the target device on the USB,\r
                      which is assigned during USB enumeration.\r
     EndPointAddress  - End point address\r
     DeviceSpeed      - Indicates device speed.\r
-    MaximumPacketLength    - Indicates the maximum packet size that the \r
-                           default control transfer endpoint is capable of \r
+    MaximumPacketLength    - Indicates the maximum packet size that the\r
+                           default control transfer endpoint is capable of\r
                            sending or receiving.\r
     DataBuffersNumber - Number of data buffers prepared for the transfer.\r
-    Data              - Array of pointers to the buffers of data that will be \r
+    Data              - Array of pointers to the buffers of data that will be\r
                       transmitted to USB device or received from USB device.\r
-    DataLength        - Indicates the size, in bytes, of the data buffer \r
+    DataLength        - Indicates the size, in bytes, of the data buffer\r
                       specified by Data.\r
     Translator        - A pointr to the transaction translator data.\r
-    TransferResult    - A pointer to the detailed result information generated \r
-                      by this control transfer.               \r
-                      \r
+    TransferResult    - A pointer to the detailed result information generated\r
+                      by this control transfer.\r
+\r
   Returns:\r
-  \r
-    EFI_UNSUPPORTED \r
+\r
+    EFI_UNSUPPORTED\r
 \r
 --*/\r
 {\r
@@ -3684,34 +3684,34 @@ UsbVirtualHcAsyncIsochronousTransfer (
   IN  VOID                                *Context\r
   )\r
 /*++\r
-  \r
+\r
   Routine Description:\r
-  \r
+\r
     Vitual interface to submits Async isochronous transfer to a target USB device\r
     for both Hc2 and Hc protocol.\r
-  \r
+\r
   Arguments:\r
-  \r
+\r
     UsbBusDev           - A pointer to bus controller of the device.\r
     DeviceAddress       - Represents the address of the target device on the USB,\r
                         which is assigned during USB enumeration.\r
     EndPointAddress     - End point address\r
     DeviceSpeed         - Indicates device speed.\r
-    MaximumPacketLength - Indicates the maximum packet size that the \r
-                        default control transfer endpoint is capable of \r
+    MaximumPacketLength - Indicates the maximum packet size that the\r
+                        default control transfer endpoint is capable of\r
                         sending or receiving.\r
     DataBuffersNumber   - Number of data buffers prepared for the transfer.\r
-    Data                - Array of pointers to the buffers of data that will be transmitted \r
+    Data                - Array of pointers to the buffers of data that will be transmitted\r
                         to USB device or received from USB device.\r
-    DataLength          - Indicates the size, in bytes, of the data buffer \r
+    DataLength          - Indicates the size, in bytes, of the data buffer\r
                         specified by Data.\r
     Translator          - A pointr to the transaction translator data.\r
     IsochronousCallBack - When the transfer complete, the call back function will be called\r
     Context             - Pass to the call back function as parameter\r
-                    \r
+\r
   Returns:\r
-  \r
-    EFI_UNSUPPORTED \r
+\r
+    EFI_UNSUPPORTED\r
 \r
 --*/\r
 {\r
index a1fd418bdeabd1303ce52d595dc76dd5f1204cc9..069e31d99171745d24e35fe3320dd193af1e7751 100644 (file)
@@ -1,18 +1,18 @@
 /*++\r
 \r
-Copyright (c) 2006, Intel Corporation                                                         \r
-All rights reserved. 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
+Copyright (c) 2006, Intel Corporation\r
+All rights reserved. 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
 \r
   EfiKey.c\r
-    \r
+\r
 Abstract:\r
 \r
   USB Keyboard Driver\r
@@ -80,18 +80,18 @@ USBKeyboardDriverBindingSupported (
   IN EFI_DEVICE_PATH_PROTOCOL       *RemainingDevicePath\r
   )\r
 /*++\r
-  \r
+\r
   Routine Description:\r
     Supported.\r
-    \r
+\r
   Arguments:\r
     This          - EFI_DRIVER_BINDING_PROTOCOL\r
     Controller    - Controller handle\r
-    RemainingDevicePath - EFI_DEVICE_PATH_PROTOCOL \r
+    RemainingDevicePath - EFI_DEVICE_PATH_PROTOCOL\r
   Returns:\r
     EFI_STATUS\r
-  \r
---*/ \r
+\r
+--*/\r
 {\r
   EFI_STATUS          OpenStatus;\r
   EFI_USB_IO_PROTOCOL *UsbIo;\r
@@ -111,7 +111,7 @@ USBKeyboardDriverBindingSupported (
   if (EFI_ERROR (OpenStatus)) {\r
     return OpenStatus;\r
   }\r
-   \r
+\r
   //\r
   // Use the USB I/O protocol interface to check whether the Controller is\r
   // the Keyboard controller that can be managed by this driver.\r
@@ -140,10 +140,10 @@ USBKeyboardDriverBindingStart (
   IN EFI_DEVICE_PATH_PROTOCOL       *RemainingDevicePath\r
   )\r
 /*++\r
-  \r
+\r
   Routine Description:\r
     Start.\r
-  \r
+\r
   Arguments:\r
     This       - EFI_DRIVER_BINDING_PROTOCOL\r
     Controller - Controller handle\r
@@ -152,8 +152,8 @@ USBKeyboardDriverBindingStart (
     EFI_SUCCESS          - Success\r
     EFI_OUT_OF_RESOURCES - Can't allocate memory\r
     EFI_UNSUPPORTED      - The Start routine fail\r
---*/       \r
-{ \r
+--*/\r
+{\r
   EFI_STATUS                    Status;\r
   EFI_USB_IO_PROTOCOL           *UsbIo;\r
   USB_KB_DEV                    *UsbKeyboardDevice;\r
@@ -164,7 +164,7 @@ USBKeyboardDriverBindingStart (
   UINT8                         PollingInterval;\r
   UINT8                         PacketSize;\r
   BOOLEAN                       Found;\r
-  \r
+\r
   UsbKeyboardDevice = NULL;\r
   Found             = FALSE;\r
 \r
@@ -283,8 +283,8 @@ USBKeyboardDriverBindingStart (
   UsbKeyboardDevice->SimpleInput.Reset          = USBKeyboardReset;\r
   UsbKeyboardDevice->SimpleInput.ReadKeyStroke  = USBKeyboardReadKeyStroke;\r
   Status = gBS->CreateEvent (\r
-                  EFI_EVENT_NOTIFY_WAIT,\r
-                  EFI_TPL_NOTIFY,\r
+                  EVT_NOTIFY_WAIT,\r
+                  TPL_NOTIFY,\r
                   USBKeyboardWaitForKey,\r
                   UsbKeyboardDevice,\r
                   &(UsbKeyboardDevice->SimpleInput.WaitForKey)\r
@@ -300,7 +300,7 @@ USBKeyboardDriverBindingStart (
           );\r
     return Status;\r
   }\r
-       \r
+\r
   //\r
   // Install simple txt in protocol interface\r
   // for the usb keyboard device.\r
@@ -328,7 +328,7 @@ USBKeyboardDriverBindingStart (
           );\r
     return Status;\r
   }\r
-    \r
+\r
   //\r
   // Reset USB Keyboard Device\r
   //\r
@@ -414,19 +414,19 @@ USBKeyboardDriverBindingStop (
   IN  EFI_HANDLE                     *ChildHandleBuffer\r
   )\r
 /*++\r
-  \r
+\r
   Routine Description:\r
     Stop.\r
-  \r
+\r
   Arguments:\r
     This              - EFI_DRIVER_BINDING_PROTOCOL\r
     Controller        - Controller handle\r
     NumberOfChildren  - Child handle number\r
-    ChildHandleBuffer - Child handle buffer \r
+    ChildHandleBuffer - Child handle buffer\r
   Returns:\r
     EFI_SUCCESS       - Success\r
-    EFI_UNSUPPORTED   - Can't support \r
---*/       \r
+    EFI_UNSUPPORTED   - Can't support\r
+--*/\r
 {\r
   EFI_STATUS                  Status;\r
   EFI_SIMPLE_TEXT_IN_PROTOCOL *SimpleInput;\r
@@ -443,7 +443,7 @@ USBKeyboardDriverBindingStop (
   if (EFI_ERROR (Status)) {\r
     return EFI_UNSUPPORTED;\r
   }\r
-  \r
+\r
   //\r
   // Get USB_KB_DEV instance.\r
   //\r
@@ -522,17 +522,17 @@ USBKeyboardReset (
 \r
   Routine Description:\r
     Implements EFI_SIMPLE_TEXT_IN_PROTOCOL.Reset() function.\r
-  \r
+\r
   Arguments:\r
     This      The EFI_SIMPLE_TEXT_IN_PROTOCOL instance.\r
     ExtendedVerification\r
               Indicates that the driver may perform a more exhaustive\r
-              verification operation of the device during reset.              \r
-    \r
-  Returns:  \r
+              verification operation of the device during reset.\r
+\r
+  Returns:\r
     EFI_SUCCESS      - Success\r
     EFI_DEVICE_ERROR - Hardware Error\r
---*/      \r
+--*/\r
 {\r
   EFI_STATUS          Status;\r
   USB_KB_DEV          *UsbKeyboardDevice;\r
@@ -563,7 +563,7 @@ USBKeyboardReset (
     UsbKeyboardDevice->CurKeyChar = 0;\r
     return EFI_SUCCESS;\r
   }\r
-  \r
+\r
   //\r
   // Exhaustive reset\r
   //\r
@@ -587,15 +587,15 @@ USBKeyboardReadKeyStroke (
 \r
   Routine Description:\r
     Implements EFI_SIMPLE_TEXT_IN_PROTOCOL.ReadKeyStroke() function.\r
-  \r
+\r
   Arguments:\r
     This     The EFI_SIMPLE_TEXT_IN_PROTOCOL instance.\r
     Key      A pointer to a buffer that is filled in with the keystroke\r
              information for the key that was pressed.\r
-    \r
-  Returns:  \r
+\r
+  Returns:\r
     EFI_SUCCESS - Success\r
---*/       \r
+--*/\r
 {\r
   USB_KB_DEV  *UsbKeyboardDevice;\r
   EFI_STATUS  Status;\r
@@ -640,15 +640,15 @@ USBKeyboardWaitForKey (
 /*++\r
 \r
   Routine Description:\r
-    Handler function for WaitForKey event.    \r
-  \r
+    Handler function for WaitForKey event.\r
+\r
   Arguments:\r
     Event        Event to be signaled when a key is pressed.\r
     Context      Points to USB_KB_DEV instance.\r
-    \r
-  Returns:  \r
+\r
+  Returns:\r
     VOID\r
---*/       \r
+--*/\r
 {\r
   USB_KB_DEV  *UsbKeyboardDevice;\r
 \r
@@ -676,13 +676,13 @@ USBKeyboardCheckForKey (
 \r
   Routine Description:\r
     Check whether there is key pending.\r
-  \r
+\r
   Arguments:\r
     UsbKeyboardDevice    The USB_KB_DEV instance.\r
-    \r
-  Returns:  \r
+\r
+  Returns:\r
     EFI_SUCCESS  - Success\r
---*/       \r
+--*/\r
 {\r
   EFI_STATUS  Status;\r
   UINT8       KeyChar;\r
index 64bbd30d4ba79ca36602a5246040edab29739d79..d81a976fb0750f45880141c9b5653c59a9f0caae 100644 (file)
@@ -1,18 +1,18 @@
 /*++\r
 \r
-Copyright (c) 2006, Intel Corporation                                                         \r
-All rights reserved. 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
+Copyright (c) 2006, Intel Corporation\r
+All rights reserved. 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
 \r
   Keyboard.c\r
-    \r
+\r
 Abstract:\r
 \r
   Helper functions for USB Keyboard Driver\r
@@ -85,8 +85,8 @@ UINT8 KeyConvertionTable[USB_KEYCODE_MAX_MAKE][3] = {
   { SCAN_NULL,      0x00,     0x00 },     // 0x39   CapsLock\r
   { SCAN_F1,        0x00,     0x00 },     // 0x3A\r
   { SCAN_F2,        0x00,     0x00 },     // 0x3B\r
-  { SCAN_F3,        0x00,     0x00 },     // 0x3C  \r
-  { SCAN_F4,        0x00,     0x00 },     // 0x3D  \r
+  { SCAN_F3,        0x00,     0x00 },     // 0x3C\r
+  { SCAN_F4,        0x00,     0x00 },     // 0x3D\r
   { SCAN_F5,        0x00,     0x00 },     // 0x3E\r
   { SCAN_F6,        0x00,     0x00 },     // 0x3F\r
   { SCAN_F7,        0x00,     0x00 },     // 0x40\r
@@ -132,14 +132,14 @@ UINT8 KeyConvertionTable[USB_KEYCODE_MAX_MAKE][3] = {
 };\r
 \r
 STATIC KB_MODIFIER  KB_Mod[8] = {\r
-  { MOD_CONTROL_L,  0xe0 }, // 11100000 \r
-  { MOD_CONTROL_R,  0xe4 }, // 11100100 \r
-  { MOD_SHIFT_L,    0xe1 }, // 11100001 \r
-  { MOD_SHIFT_R,    0xe5 }, // 11100101 \r
-  { MOD_ALT_L,      0xe2 }, // 11100010 \r
-  { MOD_ALT_R,      0xe6 }, // 11100110 \r
-  { MOD_WIN_L,      0xe3 }, // 11100011 \r
-  { MOD_WIN_R,      0xe7 }  // 11100111 \r
+  { MOD_CONTROL_L,  0xe0 }, // 11100000\r
+  { MOD_CONTROL_R,  0xe4 }, // 11100100\r
+  { MOD_SHIFT_L,    0xe1 }, // 11100001\r
+  { MOD_SHIFT_R,    0xe5 }, // 11100101\r
+  { MOD_ALT_L,      0xe2 }, // 11100010\r
+  { MOD_ALT_R,      0xe6 }, // 11100110\r
+  { MOD_WIN_L,      0xe3 }, // 11100011\r
+  { MOD_WIN_R,      0xe7 }  // 11100111\r
 };\r
 \r
 \r
@@ -148,16 +148,16 @@ IsUSBKeyboard (
   IN  EFI_USB_IO_PROTOCOL       *UsbIo\r
   )\r
 /*++\r
-  \r
+\r
   Routine Description:\r
     Uses USB I/O to check whether the device is a USB Keyboard device.\r
-  \r
+\r
   Arguments:\r
     UsbIo:    Points to a USB I/O protocol instance.\r
-    \r
+\r
   Returns:\r
-  \r
---*/  \r
+\r
+--*/\r
 {\r
   EFI_STATUS                    Status;\r
   EFI_USB_INTERFACE_DESCRIPTOR  InterfaceDescriptor;\r
@@ -192,13 +192,13 @@ InitUSBKeyboard (
   IN USB_KB_DEV   *UsbKeyboardDevice\r
   )\r
 /*++\r
-  \r
+\r
   Routine Description:\r
     Initialize USB Keyboard device and all private data structures.\r
-    \r
+\r
   Arguments:\r
     UsbKeyboardDevice    The USB_KB_DEV instance.\r
-    \r
+\r
   Returns:\r
     EFI_SUCCESS      - Success\r
     EFI_DEVICE_ERROR - Hardware Error\r
@@ -289,7 +289,7 @@ InitUSBKeyboard (
   UsbKeyboardDevice->ShiftOn    = 0;\r
   UsbKeyboardDevice->NumLockOn  = 0;\r
   UsbKeyboardDevice->CapsOn     = 0;\r
-  UsbKeyboardDevice->ScrollOn   = 0;  \r
+  UsbKeyboardDevice->ScrollOn   = 0;\r
   ZeroMem (UsbKeyboardDevice->LastKeyCodeArray, sizeof (UINT8) * 8);\r
 \r
   //\r
@@ -301,8 +301,8 @@ InitUSBKeyboard (
   }\r
 \r
   Status = gBS->CreateEvent (\r
-                  EFI_EVENT_TIMER | EFI_EVENT_NOTIFY_SIGNAL,\r
-                  EFI_TPL_NOTIFY,\r
+                  EVT_TIMER | EVT_NOTIFY_SIGNAL,\r
+                  TPL_NOTIFY,\r
                   USBKeyboardRepeatHandler,\r
                   UsbKeyboardDevice,\r
                   &UsbKeyboardDevice->RepeatTimer\r
@@ -314,8 +314,8 @@ InitUSBKeyboard (
   }\r
 \r
   Status = gBS->CreateEvent (\r
-                  EFI_EVENT_TIMER | EFI_EVENT_NOTIFY_SIGNAL,\r
-                  EFI_TPL_NOTIFY,\r
+                  EVT_TIMER | EVT_NOTIFY_SIGNAL,\r
+                  TPL_NOTIFY,\r
                   USBKeyboardRecoveryHandler,\r
                   UsbKeyboardDevice,\r
                   &UsbKeyboardDevice->DelayedRecoveryEvent\r
@@ -333,21 +333,21 @@ KeyboardHandler (
   IN  UINT32        Result\r
   )\r
 /*++\r
-  \r
+\r
   Routine Description:\r
     Handler function for USB Keyboard's asynchronous interrupt transfer.\r
-    \r
+\r
   Arguments:\r
     Data       A pointer to a buffer that is filled with key data which is\r
                retrieved via asynchronous interrupt transfer.\r
     DataLength Indicates the size of the data buffer.\r
     Context    Pointing to USB_KB_DEV instance.\r
     Result     Indicates the result of the asynchronous interrupt transfer.\r
-    \r
+\r
   Returns:\r
     EFI_SUCCESS      - Success\r
     EFI_DEVICE_ERROR - Hardware Error\r
---*/  \r
+--*/\r
 {\r
   USB_KB_DEV          *UsbKeyboardDevice;\r
   EFI_USB_IO_PROTOCOL *UsbIo;\r
@@ -402,11 +402,11 @@ KeyboardHandler (
         &UsbStatus\r
         );\r
     }\r
-    \r
+\r
     //\r
     // Delete & Submit this interrupt again\r
     //\r
-    \r
+\r
     UsbIo->UsbAsyncInterruptTransfer (\r
              UsbIo,\r
              UsbKeyboardDevice->IntEndpointDescriptor.EndpointAddress,\r
@@ -446,7 +446,7 @@ KeyboardHandler (
   if (Index == 8) {\r
     return EFI_SUCCESS;\r
   }\r
-  \r
+\r
   //\r
   // Parse the modifier key\r
   //\r
@@ -469,7 +469,7 @@ KeyboardHandler (
       InsertKeyCode (&(UsbKeyboardDevice->KeyboardBuffer), KB_Mod[Index].Key, Down);\r
     }\r
   }\r
-  \r
+\r
   //\r
   // handle normal key's releasing situation\r
   //\r
@@ -507,7 +507,7 @@ KeyboardHandler (
       }\r
     }\r
   }\r
-    \r
+\r
   //\r
   // original repeat key is released, cancel the repeat timer\r
   //\r
@@ -518,7 +518,7 @@ KeyboardHandler (
           USBKBD_REPEAT_RATE\r
           );\r
   }\r
-  \r
+\r
   //\r
   // handle normal key's pressing situation\r
   //\r
@@ -558,7 +558,7 @@ KeyboardHandler (
       }\r
     }\r
   }\r
-  \r
+\r
   //\r
   // Update LastKeycodeArray[] buffer in the\r
   // Usb Keyboard Device data structure.\r
@@ -566,7 +566,7 @@ KeyboardHandler (
   for (Index = 0; Index < 8; Index++) {\r
     UsbKeyboardDevice->LastKeyCodeArray[Index] = CurKeyCodeBuffer[Index];\r
   }\r
-  \r
+\r
   //\r
   // pre-process KeyboardBuffer, pop out the ctrl,alt,del key in sequence\r
   // and judge whether it will invoke reset event.\r
@@ -611,7 +611,7 @@ KeyboardHandler (
     default:\r
       break;\r
     }\r
-    \r
+\r
     //\r
     // insert the key back to the buffer.\r
     // so the key sequence will not be destroyed.\r
@@ -651,18 +651,18 @@ USBParseKey (
   OUT     UINT8       *KeyChar\r
   )\r
 /*++\r
-  \r
+\r
   Routine Description:\r
     Retrieves a key character after parsing the raw data in keyboard buffer.\r
-    \r
+\r
   Arguments:\r
     UsbKeyboardDevice    The USB_KB_DEV instance.\r
     KeyChar              Points to the Key character after key parsing.\r
-    \r
+\r
   Returns:\r
     EFI_SUCCESS   - Success\r
-    EFI_NOT_READY - Device is not ready \r
---*/  \r
+    EFI_NOT_READY - Device is not ready\r
+--*/\r
 {\r
   USB_KEY UsbKey;\r
 \r
@@ -698,7 +698,7 @@ USBParseKey (
 \r
       continue;\r
     }\r
-    \r
+\r
     //\r
     // Analyzes key pressing situation\r
     //\r
@@ -762,7 +762,7 @@ USBParseKey (
       UsbKeyboardDevice->ScrollOn ^= 1;\r
       SetKeyLED (UsbKeyboardDevice);\r
       continue;\r
-      break;    \r
+      break;\r
     case 0x48:\r
     //\r
     // fall through\r
@@ -775,7 +775,7 @@ USBParseKey (
     default:\r
       break;\r
     }\r
-    \r
+\r
     //\r
     // When encountered Del Key...\r
     //\r
@@ -801,15 +801,15 @@ USBKeyCodeToEFIScanCode (
   OUT EFI_INPUT_KEY   *Key\r
   )\r
 /*++\r
-  \r
+\r
   Routine Description:\r
     Converts USB Keyboard code to EFI Scan Code.\r
-    \r
-  Arguments:  \r
+\r
+  Arguments:\r
     UsbKeyboardDevice    The USB_KB_DEV instance.\r
-    KeyChar              Indicates the key code that will be interpreted.    \r
-    Key                  A pointer to a buffer that is filled in with \r
-                         the keystroke information for the key that \r
+    KeyChar              Indicates the key code that will be interpreted.\r
+    Key                  A pointer to a buffer that is filled in with\r
+                         the keystroke information for the key that\r
                          was pressed.\r
   Returns:\r
     EFI_NOT_READY - Device is not ready\r
@@ -821,7 +821,7 @@ USBKeyCodeToEFIScanCode (
   if (!USBKBD_VALID_KEYCODE (KeyChar)) {\r
     return EFI_NOT_READY;\r
   }\r
-  \r
+\r
   //\r
   // valid USB Key Code starts from 4\r
   //\r
@@ -881,16 +881,16 @@ InitUSBKeyBuffer (
   IN OUT  USB_KB_BUFFER   *KeyboardBuffer\r
   )\r
 /*++\r
-  \r
+\r
   Routine Description:\r
     Resets USB Keyboard Buffer.\r
-    \r
+\r
   Arguments:\r
     KeyboardBuffer - Points to the USB Keyboard Buffer.\r
-    \r
+\r
   Returns:\r
     EFI_SUCCESS - Success\r
---*/  \r
+--*/\r
 {\r
   ZeroMem (KeyboardBuffer, sizeof (USB_KB_BUFFER));\r
 \r
@@ -904,15 +904,15 @@ IsUSBKeyboardBufferEmpty (
   IN  USB_KB_BUFFER   *KeyboardBuffer\r
   )\r
 /*++\r
-  \r
+\r
   Routine Description:\r
     Check whether USB Keyboard buffer is empty.\r
-    \r
+\r
   Arguments:\r
     KeyboardBuffer - USB Keyboard Buffer.\r
-    \r
+\r
   Returns:\r
-  \r
+\r
 --*/\r
 {\r
   //\r
@@ -927,18 +927,18 @@ IsUSBKeyboardBufferFull (
   IN  USB_KB_BUFFER   *KeyboardBuffer\r
   )\r
 /*++\r
-  \r
+\r
   Routine Description:\r
     Check whether USB Keyboard buffer is full.\r
-    \r
+\r
   Arguments:\r
     KeyboardBuffer - USB Keyboard Buffer.\r
-    \r
+\r
   Returns:\r
-  \r
+\r
 --*/\r
 {\r
-  return (BOOLEAN)(((KeyboardBuffer->bTail + 1) % (MAX_KEY_ALLOWED + 1)) == \r
+  return (BOOLEAN)(((KeyboardBuffer->bTail + 1) % (MAX_KEY_ALLOWED + 1)) ==\r
                                                         KeyboardBuffer->bHead);\r
 }\r
 \r
@@ -950,10 +950,10 @@ InsertKeyCode (
   IN      UINT8         Down\r
   )\r
 /*++\r
-  \r
+\r
   Routine Description:\r
     Inserts a key code into keyboard buffer.\r
-    \r
+\r
   Arguments:\r
     KeyboardBuffer - Points to the USB Keyboard Buffer.\r
     Key            - Key code\r
@@ -989,18 +989,18 @@ RemoveKeyCode (
   OUT     USB_KEY       *UsbKey\r
   )\r
 /*++\r
-  \r
+\r
   Routine Description:\r
     Pops a key code off from keyboard buffer.\r
-    \r
+\r
   Arguments:\r
     KeyboardBuffer -  Points to the USB Keyboard Buffer.\r
     UsbKey         -  Points to the buffer that contains a usb key code.\r
-  \r
+\r
   Returns:\r
     EFI_SUCCESS      - Success\r
     EFI_DEVICE_ERROR - Hardware Error\r
---*/  \r
+--*/\r
 {\r
   if (IsUSBKeyboardBufferEmpty (KeyboardBuffer)) {\r
     return EFI_DEVICE_ERROR;\r
@@ -1022,16 +1022,16 @@ SetKeyLED (
   IN  USB_KB_DEV    *UsbKeyboardDevice\r
   )\r
 /*++\r
-  \r
+\r
   Routine Description:\r
     Sets USB Keyboard LED state.\r
-    \r
+\r
   Arguments:\r
     UsbKeyboardDevice - The USB_KB_DEV instance.\r
-  \r
+\r
   Returns:\r
     EFI_SUCCESS - Success\r
---*/  \r
+--*/\r
 {\r
   LED_MAP Led;\r
   UINT8   ReportId;\r
@@ -1041,7 +1041,7 @@ SetKeyLED (
   //\r
   Led.NumLock   = (UINT8) UsbKeyboardDevice->NumLockOn;\r
   Led.CapsLock  = (UINT8) UsbKeyboardDevice->CapsOn;\r
-  Led.ScrollLock = (UINT8) UsbKeyboardDevice->ScrollOn;  \r
+  Led.ScrollLock = (UINT8) UsbKeyboardDevice->ScrollOn;\r
   Led.Resrvd    = 0;\r
 \r
   ReportId      = 0;\r
@@ -1067,17 +1067,17 @@ USBKeyboardRepeatHandler (
   IN    VOID         *Context\r
   )\r
 /*++\r
-  \r
+\r
   Routine Description:\r
     Timer handler for Repeat Key timer.\r
-    \r
+\r
   Arguments:\r
     Event   - The Repeat Key event.\r
     Context - Points to the USB_KB_DEV instance.\r
-    \r
+\r
   Returns:\r
-  \r
---*/    \r
+\r
+--*/\r
 {\r
   USB_KB_DEV  *UsbKeyboardDevice;\r
 \r
@@ -1115,17 +1115,17 @@ USBKeyboardRecoveryHandler (
   IN    VOID         *Context\r
   )\r
 /*++\r
-  \r
+\r
   Routine Description:\r
     Timer handler for Delayed Recovery timer.\r
-    \r
+\r
   Arguments:\r
     Event   -  The Delayed Recovery event.\r
     Context -  Points to the USB_KB_DEV instance.\r
-    \r
+\r
   Returns:\r
-  \r
---*/    \r
+\r
+--*/\r
 {\r
 \r
   USB_KB_DEV          *UsbKeyboardDevice;\r
index 9caa006715feef8313ab104a531a0a54ed35dd2b..daaf3f8fe41d72d2449e608cd43b53d685e84d2c 100644 (file)
@@ -352,7 +352,7 @@ USBFloppyReset (
   EFI_STATUS              Status;\r
   EFI_TPL                 OldTpl;\r
 \r
-  OldTpl = gBS->RaiseTPL (EFI_TPL_CALLBACK);\r
+  OldTpl = gBS->RaiseTPL (TPL_CALLBACK);\r
 \r
   UsbFloppyDevice   = USB_FLOPPY_DEV_FROM_THIS (This);\r
 \r
@@ -426,7 +426,7 @@ USBFloppyReadBlocks (
     return EFI_SUCCESS;\r
   }\r
 \r
-  OldTpl = gBS->RaiseTPL (EFI_TPL_CALLBACK);\r
+  OldTpl = gBS->RaiseTPL (TPL_CALLBACK);\r
 \r
   UsbFloppyTestUnitReady (UsbFloppyDevice);\r
 \r
@@ -572,7 +572,7 @@ USBFloppyWriteBlocks (
     return EFI_SUCCESS;\r
   }\r
 \r
-  OldTpl = gBS->RaiseTPL (EFI_TPL_CALLBACK);\r
+  OldTpl = gBS->RaiseTPL (TPL_CALLBACK);\r
 \r
   UsbFloppyTestUnitReady (UsbFloppyDevice);\r
 \r
index f7449ebfc332619e57cd1d1f517d297745d30980..a3fc6c725f8d0377b6effd33edb587d3cdc93a21 100644 (file)
@@ -1,13 +1,13 @@
 /*++\r
 \r
-Copyright (c) 2006, Intel Corporation                                                         \r
-All rights reserved. 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
+Copyright (c) 2006, Intel Corporation\r
+All rights reserved. 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
 \r
@@ -127,7 +127,7 @@ USBMouseDriverBindingSupported (
   if (OpenStatus == EFI_ALREADY_STARTED) {\r
     return EFI_ALREADY_STARTED;\r
   }\r
-  \r
+\r
   //\r
   // Use the USB I/O protocol interface to see the Controller is\r
   // the Mouse controller that can be managed by this driver.\r
@@ -283,8 +283,8 @@ USBMouseDriverBindingStart (
   UsbMouseDevice->SimplePointerProtocol.Mode      = &UsbMouseDevice->Mode;\r
 \r
   Status = gBS->CreateEvent (\r
-                  EFI_EVENT_NOTIFY_WAIT,\r
-                  EFI_TPL_NOTIFY,\r
+                  EVT_NOTIFY_WAIT,\r
+                  TPL_NOTIFY,\r
                   UsbMouseWaitForInput,\r
                   UsbMouseDevice,\r
                   &((UsbMouseDevice->SimplePointerProtocol).WaitForInput)\r
@@ -304,13 +304,13 @@ USBMouseDriverBindingStart (
     Status = EFI_DEVICE_ERROR;\r
     goto ErrorExit;\r
   }\r
-  \r
+\r
   //\r
   // After Enabling Async Interrupt Transfer on this mouse Device\r
   // we will be able to get key data from it. Thus this is deemed as\r
   // the enable action of the mouse\r
   //\r
-  \r
+\r
   MouseReportStatusCode (\r
     UsbMouseDevice->DevicePath,\r
     EFI_PROGRESS_CODE,\r
@@ -677,8 +677,8 @@ InitializeUsbMouseDevice (
   }\r
 \r
   Status = gBS->CreateEvent (\r
-                  EFI_EVENT_TIMER | EFI_EVENT_NOTIFY_SIGNAL,\r
-                  EFI_TPL_NOTIFY,\r
+                  EVT_TIMER | EVT_NOTIFY_SIGNAL,\r
+                  TPL_NOTIFY,\r
                   USBMouseRecoveryHandler,\r
                   UsbMouseDev,\r
                   &UsbMouseDev->DelayedRecoveryEvent\r
@@ -805,11 +805,11 @@ GetMouseState (
 \r
   Routine Description:\r
     Get the mouse state, see SIMPLE POINTER PROTOCOL.\r
-    \r
+\r
   Arguments:\r
     This              - Protocol instance pointer.\r
     MouseState        - Current mouse state\r
-    \r
+\r
   Returns:\r
     EFI_SUCCESS\r
     EFI_DEVICE_ERROR\r
@@ -858,11 +858,11 @@ UsbMouseReset (
 \r
   Routine Description:\r
     Reset the mouse device, see SIMPLE POINTER PROTOCOL.\r
-    \r
+\r
   Arguments:\r
     This                  - Protocol instance pointer.\r
     ExtendedVerification  - Ignored here/\r
-    \r
+\r
   Returns:\r
     EFI_SUCCESS\r
 \r
@@ -928,17 +928,17 @@ USBMouseRecoveryHandler (
   IN    VOID         *Context\r
   )\r
 /*++\r
-  \r
+\r
   Routine Description:\r
     Timer handler for Delayed Recovery timer.\r
-    \r
+\r
   Arguments:\r
     Event   -  The Delayed Recovery event.\r
     Context -  Points to the USB_KB_DEV instance.\r
-    \r
+\r
   Returns:\r
-  \r
---*/    \r
+\r
+--*/\r
 {\r
   USB_MOUSE_DEV       *UsbMouseDev;\r
   EFI_USB_IO_PROTOCOL *UsbIo;\r
index e6e1e6c1bd19a05536562cff382afbbdc654f352..9792a16485c2a05a2a51884bf2e1302002c415a0 100644 (file)
@@ -66,7 +66,7 @@ LIST_ENTRY  mFvHandleList = INITIALIZE_LIST_HEAD_VARIABLE (mFvHandleList);
 //\r
 // Lock for mDiscoveredList, mScheduledQueue, gDispatcherRunning.\r
 //\r
-EFI_LOCK  mDispatcherLock = EFI_INITIALIZE_LOCK_VARIABLE (EFI_TPL_HIGH_LEVEL);\r
+EFI_LOCK  mDispatcherLock = EFI_INITIALIZE_LOCK_VARIABLE (TPL_HIGH_LEVEL);\r
 \r
 \r
 //\r
@@ -1126,7 +1126,7 @@ Returns:
 {\r
   mFwVolEvent = CoreCreateProtocolNotifyEvent (\r
                   &gEfiFirmwareVolumeProtocolGuid, \r
-                  EFI_TPL_CALLBACK,\r
+                  TPL_CALLBACK,\r
                   CoreFwVolEventProtocolNotify,\r
                   NULL,\r
                   &mFwVolEventRegistration,\r
index 8f389d02b49ce73738159129b6fe6f61ff21c39c..5c9a5b8e8972c99cebde1bf3c055f0ff7d30f9ba 100644 (file)
@@ -216,8 +216,8 @@ Returns:
     // Create the event\r
     //\r
     Status = CoreCreateEvent (\r
-              EFI_EVENT_NOTIFY_SIGNAL,\r
-              EFI_TPL_CALLBACK,\r
+              EVT_NOTIFY_SIGNAL,\r
+              TPL_CALLBACK,\r
               GenericArchProtocolNotify,\r
               NULL,\r
               &Entry->Event\r
index 8f2934e71118a487191e6036399b3125e03702f8..b3ba71de810bc1de2089c7c8466f130156c264ea 100644 (file)
@@ -30,30 +30,30 @@ UINT32 mEventTable[] = {
   // 0x80000200       Timer event with a notification function that is\r
   // queue when the event is signaled with SignalEvent()\r
   //\r
-  EFI_EVENT_TIMER | EFI_EVENT_NOTIFY_SIGNAL,\r
+  EVT_TIMER | EVT_NOTIFY_SIGNAL,\r
   //\r
   // 0x80000000       Timer event without a notification function. It can be\r
   // signaled with SignalEvent() and checked with CheckEvent() or WaitForEvent().\r
   //\r
-  EFI_EVENT_TIMER,\r
+  EVT_TIMER,\r
   //\r
   // 0x00000100       Generic event with a notification function that\r
   // can be waited on with CheckEvent() or WaitForEvent()\r
   //\r
-  EFI_EVENT_NOTIFY_WAIT,\r
+  EVT_NOTIFY_WAIT,\r
   //\r
   // 0x00000200       Generic event with a notification function that\r
   // is queue when the event is signaled with SignalEvent()\r
   //\r
-  EFI_EVENT_NOTIFY_SIGNAL,\r
+  EVT_NOTIFY_SIGNAL,\r
   //\r
   // 0x00000201       ExitBootServicesEvent.\r
   //\r
-  EFI_EVENT_SIGNAL_EXIT_BOOT_SERVICES,\r
+  EVT_SIGNAL_EXIT_BOOT_SERVICES,\r
   //\r
   // 0x60000202       SetVirtualAddressMapEvent.\r
   //\r
-  EFI_EVENT_SIGNAL_VIRTUAL_ADDRESS_CHANGE,\r
+  EVT_SIGNAL_VIRTUAL_ADDRESS_CHANGE,\r
 \r
   //\r
   // 0x00000000       Generic event without a notification function.\r
@@ -65,7 +65,7 @@ UINT32 mEventTable[] = {
   // 0x80000100       Timer event with a notification function that can be\r
   // waited on with CheckEvent() or WaitForEvent()\r
   //\r
-  EFI_EVENT_TIMER | EFI_EVENT_NOTIFY_WAIT,\r
+  EVT_TIMER | EVT_NOTIFY_WAIT,\r
 };\r
 \r
 STATIC\r
@@ -139,7 +139,7 @@ Returns:
 {\r
   UINTN        Index;\r
 \r
-  for (Index=0; Index <= EFI_TPL_HIGH_LEVEL; Index++) {\r
+  for (Index=0; Index <= TPL_HIGH_LEVEL; Index++) {\r
     InitializeListHead (&gEventQueue[Index]);\r
   }\r
 \r
@@ -190,7 +190,7 @@ Returns:
     // Only clear the SIGNAL status if it is a SIGNAL type event.\r
     // WAIT type events are only cleared in CheckEvent()\r
     //\r
-    if (Event->Type & EFI_EVENT_NOTIFY_SIGNAL) {\r
+    if (Event->Type & EVT_NOTIFY_SIGNAL) {\r
       Event->SignalCount = 0;\r
     }\r
 \r
@@ -332,9 +332,9 @@ Returns:
   //\r
   // Convert EFI 1.10 Events to thier UEFI 2.0 CreateEventEx mapping\r
   //\r
-  if (Type == EVENT_SIGNAL_EXIT_BOOT_SERVICES) {\r
+  if (Type == EVT_SIGNAL_EXIT_BOOT_SERVICES) {\r
     GuidPtr = &gEfiEventExitBootServicesGuid;\r
-  } else if (Type == EVENT_SIGNAL_VIRTUAL_ADDRESS_CHANGE) {\r
+  } else if (Type == EVT_SIGNAL_VIRTUAL_ADDRESS_CHANGE) {\r
     GuidPtr = &gEfiEventVirtualAddressChangeGuid;\r
   }\r
 \r
@@ -378,7 +378,7 @@ Returns:
   INTN            Index;\r
 \r
 \r
-  if ((Event == NULL) || (NotifyTpl == EFI_TPL_APPLICATION)) {\r
+  if ((Event == NULL) || (NotifyTpl == TPL_APPLICATION)) {\r
     return EFI_INVALID_PARAMETER;\r
   }\r
 \r
@@ -399,13 +399,13 @@ Returns:
   //\r
   // If it's a notify type of event, check its parameters\r
   //\r
-  if ((Type & (EFI_EVENT_NOTIFY_WAIT | EFI_EVENT_NOTIFY_SIGNAL))) {\r
+  if ((Type & (EVT_NOTIFY_WAIT | EVT_NOTIFY_SIGNAL))) {\r
     //\r
     // Check for an invalid NotifyFunction or NotifyTpl\r
     //\r
     if ((NotifyFunction == NULL) ||\r
-        (NotifyTpl < EFI_TPL_APPLICATION) ||\r
-       (NotifyTpl >= EFI_TPL_HIGH_LEVEL)) {\r
+        (NotifyTpl < TPL_APPLICATION) ||\r
+       (NotifyTpl >= TPL_HIGH_LEVEL)) {\r
       return EFI_INVALID_PARAMETER;\r
     }\r
 \r
@@ -422,7 +422,7 @@ Returns:
   // Allcoate and initialize a new event structure.\r
   //\r
   Status = CoreAllocatePool (\r
-             (Type & EFI_EVENT_RUNTIME) ? EfiRuntimeServicesData: EfiBootServicesData,\r
+             (Type & EVT_RUNTIME) ? EfiRuntimeServicesData: EfiBootServicesData,\r
              sizeof (IEVENT),\r
              (VOID **)&IEvent\r
              );\r
@@ -445,7 +445,7 @@ Returns:
 \r
   *Event = IEvent;\r
 \r
-  if (Type & EFI_EVENT_RUNTIME) {\r
+  if (Type & EVT_RUNTIME) {\r
     //\r
     // Keep a list of all RT events so we can tell the RT AP.\r
     //\r
@@ -459,7 +459,7 @@ Returns:
 \r
   CoreAcquireEventLock ();\r
 \r
-  if ((Type & EFI_EVENT_NOTIFY_SIGNAL) != 0x00000000) {\r
+  if ((Type & EVT_NOTIFY_SIGNAL) != 0x00000000) {\r
     //\r
     // The Event's NotifyFunction must be queued whenever the event is signaled\r
     //\r
@@ -523,7 +523,7 @@ Returns:
     //\r
     // If signalling type is a notify function, queue it\r
     //\r
-    if (Event->Type & EFI_EVENT_NOTIFY_SIGNAL) {\r
+    if (Event->Type & EVT_NOTIFY_SIGNAL) {\r
       if (Event->ExFlag) {\r
         //\r
         // The CreateEventEx() style requires all members of the Event Group\r
@@ -580,13 +580,13 @@ Returns:
     return EFI_INVALID_PARAMETER;\r
   }\r
 \r
-  if (Event->Type & EFI_EVENT_NOTIFY_SIGNAL) {\r
+  if (Event->Type & EVT_NOTIFY_SIGNAL) {\r
     return EFI_INVALID_PARAMETER;\r
   }\r
 \r
   Status = EFI_NOT_READY;\r
 \r
-  if (!Event->SignalCount && (Event->Type & EFI_EVENT_NOTIFY_WAIT)) {\r
+  if (!Event->SignalCount && (Event->Type & EVT_NOTIFY_WAIT)) {\r
 \r
     //\r
     // Queue the wait notify function\r
@@ -654,7 +654,7 @@ Returns:
   //\r
   // Can only WaitForEvent at TPL_APPLICATION\r
   //\r
-  if (gEfiCurrentTpl != EFI_TPL_APPLICATION) {\r
+  if (gEfiCurrentTpl != TPL_APPLICATION) {\r
     return EFI_UNSUPPORTED;\r
   }\r
 \r
@@ -721,7 +721,7 @@ Returns:
   //\r
   // If it's a timer event, make sure it's not pending\r
   //\r
-  if (Event->Type & EFI_EVENT_TIMER) {\r
+  if (Event->Type & EVT_TIMER) {\r
     CoreSetTimer (Event, TimerCancel, 0);\r
   }\r
 \r
index 6e9b68b8be821f1d835e840fb9b8d827e6a64e64..a6d388ac210cb2eb8eb57e8173868c72855791ea 100644 (file)
@@ -28,19 +28,19 @@ Revision History
 //\r
 // gTpl - Task priority level\r
 //\r
-EFI_TPL  gEfiCurrentTpl = EFI_TPL_APPLICATION;\r
+EFI_TPL  gEfiCurrentTpl = TPL_APPLICATION;\r
 \r
 \r
 //\r
 // gEventQueueLock - Protects the event queus\r
 //\r
-EFI_LOCK gEventQueueLock = EFI_INITIALIZE_LOCK_VARIABLE (EFI_TPL_HIGH_LEVEL);\r
+EFI_LOCK gEventQueueLock = EFI_INITIALIZE_LOCK_VARIABLE (TPL_HIGH_LEVEL);\r
 \r
 //\r
 // gEventQueue - A list of event's to notify for each priority level\r
 // gEventPending - A bitmask of the EventQueues that are pending\r
 //\r
-LIST_ENTRY      gEventQueue[EFI_TPL_HIGH_LEVEL + 1];\r
+LIST_ENTRY      gEventQueue[TPL_HIGH_LEVEL + 1];\r
 UINTN           gEventPending = 0;\r
 \r
 \r
index a49701519e4cfe8ccc26c75f0c33e658640ccc08..0f886f96d377542421152452211110818d0110f1 100644 (file)
@@ -1,16 +1,16 @@
 /*++\r
 \r
-Copyright (c) 2006, Intel Corporation                                                         \r
-All rights reserved. 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
+Copyright (c) 2006, Intel Corporation\r
+All rights reserved. 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
-  \r
+\r
   timer.c\r
 \r
 Abstract:\r
@@ -52,10 +52,10 @@ CoreInsertEventTimer (
 //\r
 \r
 static LIST_ENTRY       mEfiTimerList = INITIALIZE_LIST_HEAD_VARIABLE (mEfiTimerList);\r
-static EFI_LOCK         mEfiTimerLock = EFI_INITIALIZE_LOCK_VARIABLE (EFI_TPL_HIGH_LEVEL - 1);\r
+static EFI_LOCK         mEfiTimerLock = EFI_INITIALIZE_LOCK_VARIABLE (TPL_HIGH_LEVEL - 1);\r
 static EFI_EVENT        mEfiCheckTimerEvent;\r
 \r
-static EFI_LOCK         mEfiSystemTimeLock = EFI_INITIALIZE_LOCK_VARIABLE (EFI_TPL_HIGH_LEVEL);\r
+static EFI_LOCK         mEfiSystemTimeLock = EFI_INITIALIZE_LOCK_VARIABLE (TPL_HIGH_LEVEL);\r
 static UINT64           mEfiSystemTime = 0;\r
 \r
 //\r
@@ -75,7 +75,7 @@ Routine Description:
 Arguments:\r
 \r
   None\r
-    \r
+\r
 Returns:\r
 \r
   None\r
@@ -85,8 +85,8 @@ Returns:
   EFI_STATUS  Status;\r
 \r
   Status = CoreCreateEvent (\r
-              EFI_EVENT_NOTIFY_SIGNAL,\r
-              EFI_TPL_HIGH_LEVEL - 1,\r
+              EVT_NOTIFY_SIGNAL,\r
+              TPL_HIGH_LEVEL - 1,\r
               CoreCheckTimers,\r
               NULL,\r
               &mEfiCheckTimerEvent\r
@@ -108,7 +108,7 @@ Routine Description:
 Arguments:\r
 \r
   None\r
-    \r
+\r
 Returns:\r
 \r
   Returns the current system time\r
@@ -137,7 +137,7 @@ Routine Description:
 Arguments:\r
 \r
   Duration    - The number of 100ns elasped since the last call to TimerTick\r
-    \r
+\r
 Returns:\r
 \r
   None\r
@@ -331,16 +331,16 @@ Arguments:
   UserEvent   - The timer event that is to be signaled at the specified time\r
   Type        - The type of time that is specified in TriggerTime\r
   TriggerTime - The number of 100ns units until the timer expires\r
-  \r
+\r
 Returns:\r
 \r
   EFI_SUCCESS           - The event has been set to be signaled at the requested time\r
   EFI_INVALID_PARAMETER - Event or Type is not valid\r
 \r
---*/  \r
+--*/\r
 {\r
   IEVENT      *Event;\r
-  \r
+\r
   Event = UserEvent;\r
 \r
   if (Event == NULL) {\r
@@ -351,10 +351,10 @@ Returns:
     return EFI_INVALID_PARAMETER;\r
   }\r
 \r
-  if (Type < 0 || Type > TimerRelative  || !(Event->Type & EFI_EVENT_TIMER)) {\r
+  if (Type < 0 || Type > TimerRelative  || !(Event->Type & EVT_TIMER)) {\r
     return EFI_INVALID_PARAMETER;\r
   }\r
\r
+\r
   CoreAcquireLock (&mEfiTimerLock);\r
 \r
   //\r
index ae851638afacf3b5c1ff91bb8b6221bee6b9a0d2..437665faed5acd0a19469bb27e52f7aaf3b0e648 100644 (file)
@@ -118,7 +118,7 @@ Returns:
   //\r
   // If raising to high level, disable interrupts\r
   //\r
-  if (NewTpl >= EFI_TPL_HIGH_LEVEL  &&  OldTpl < EFI_TPL_HIGH_LEVEL) {\r
+  if (NewTpl >= TPL_HIGH_LEVEL  &&  OldTpl < TPL_HIGH_LEVEL) {\r
     CoreSetInterruptState (FALSE);\r
   }\r
 \r
@@ -165,8 +165,8 @@ Returns:
   // interrupts are enabled\r
   //\r
 \r
-  if (OldTpl >= EFI_TPL_HIGH_LEVEL  &&  NewTpl < EFI_TPL_HIGH_LEVEL) {\r
-    gEfiCurrentTpl = EFI_TPL_HIGH_LEVEL;  \r
+  if (OldTpl >= TPL_HIGH_LEVEL  &&  NewTpl < TPL_HIGH_LEVEL) {\r
+    gEfiCurrentTpl = TPL_HIGH_LEVEL;  \r
   }\r
 \r
   //\r
@@ -175,7 +175,7 @@ Returns:
 \r
   while ((-2 << NewTpl) & gEventPending) {\r
     gEfiCurrentTpl = CoreHighestSetBit (gEventPending);\r
-    if (gEfiCurrentTpl < EFI_TPL_HIGH_LEVEL) {\r
+    if (gEfiCurrentTpl < TPL_HIGH_LEVEL) {\r
       CoreSetInterruptState (TRUE);\r
     }\r
     CoreDispatchEventNotifies (gEfiCurrentTpl);\r
@@ -191,7 +191,7 @@ Returns:
   // If lowering below HIGH_LEVEL, make sure\r
   // interrupts are enabled\r
   //\r
-  if (gEfiCurrentTpl < EFI_TPL_HIGH_LEVEL) {\r
+  if (gEfiCurrentTpl < TPL_HIGH_LEVEL) {\r
     CoreSetInterruptState (TRUE);\r
   }\r
 \r
index 376c381459342f961468235256332c3b99b3c36c..5df700113db87bc78366d00128a2ae7433e1497f 100644 (file)
@@ -22,7 +22,7 @@ Abstract:
 #ifndef _EXEC_H_\r
 #define _EXEC_H_\r
 \r
-#define VALID_TPL(a)            ((a) <= EFI_TPL_HIGH_LEVEL)\r
+#define VALID_TPL(a)            ((a) <= TPL_HIGH_LEVEL)\r
 \r
 //\r
 // EFI_EVENT\r
index 2e92a8b92149578259bf83952ce5b6fe481bb179..a73a1251e4973f5fe50271e2cec3d192028eddff 100644 (file)
@@ -536,7 +536,7 @@ Returns:
 {\r
   gEfiFwVolBlockEvent = CoreCreateProtocolNotifyEvent (\r
                           &gEfiFirmwareVolumeBlockProtocolGuid,\r
-                          EFI_TPL_CALLBACK,\r
+                          TPL_CALLBACK,\r
                           NotifyFwVolBlock,\r
                           NULL,\r
                           &gEfiFwVolBlockNotifyReg,\r
index 181cb1a317b511ac8c44c79631c5526015d7c400..be3dbdd959a5dd560d5b6e7f6bb7b0298921daa8 100644 (file)
@@ -48,8 +48,8 @@ Abstract:
 //\r
 // Module Variables\r
 //\r
-EFI_LOCK           mGcdMemorySpaceLock = EFI_INITIALIZE_LOCK_VARIABLE (EFI_TPL_NOTIFY);\r
-EFI_LOCK           mGcdIoSpaceLock     = EFI_INITIALIZE_LOCK_VARIABLE (EFI_TPL_NOTIFY);\r
+EFI_LOCK           mGcdMemorySpaceLock = EFI_INITIALIZE_LOCK_VARIABLE (TPL_NOTIFY);\r
+EFI_LOCK           mGcdIoSpaceLock     = EFI_INITIALIZE_LOCK_VARIABLE (TPL_NOTIFY);\r
 LIST_ENTRY         mGcdMemorySpaceMap  = INITIALIZE_LIST_HEAD_VARIABLE (mGcdMemorySpaceMap);\r
 LIST_ENTRY         mGcdIoSpaceMap      = INITIALIZE_LIST_HEAD_VARIABLE (mGcdIoSpaceMap);\r
 \r
index dd0801a96f85658fdc8649f264ff331f5d9fd530..42d96ff465ebbf5f4151ff6ca848104eeccb9dba 100644 (file)
@@ -34,7 +34,7 @@ Revision History
 //\r
 static LIST_ENTRY      mProtocolDatabase     = INITIALIZE_LIST_HEAD_VARIABLE (mProtocolDatabase);\r
 LIST_ENTRY             gHandleList           = INITIALIZE_LIST_HEAD_VARIABLE (gHandleList);\r
-EFI_LOCK               gProtocolDatabaseLock = EFI_INITIALIZE_LOCK_VARIABLE (EFI_TPL_NOTIFY);\r
+EFI_LOCK               gProtocolDatabaseLock = EFI_INITIALIZE_LOCK_VARIABLE (TPL_NOTIFY);\r
 UINT64                 gHandleDatabaseKey    = 0;\r
 \r
 \r
@@ -632,7 +632,7 @@ Returns:
   //\r
   // Syncronize with notifcations. \r
   // \r
-  OldTpl = CoreRaiseTpl (EFI_TPL_NOTIFY);\r
+  OldTpl = CoreRaiseTpl (TPL_NOTIFY);\r
   OldHandle = *Handle;\r
 \r
   //\r
index 901182e5113b250452275973dbbb1e189d29c727..daf5fd180b7f815dce19a040757f8d63b65f2fe0 100644 (file)
@@ -576,7 +576,7 @@ Returns:
 \r
   SecurityStatus = EFI_SUCCESS;\r
 \r
-  ASSERT (gEfiCurrentTpl < EFI_TPL_NOTIFY);\r
+  ASSERT (gEfiCurrentTpl < TPL_NOTIFY);\r
   ParentImage = NULL;\r
 \r
   //\r
@@ -1224,7 +1224,7 @@ Returns:
   // Prevent possible reentrance to this function\r
   // for the same ImageHandle\r
   // \r
-  OldTpl = CoreRaiseTpl (EFI_TPL_NOTIFY); \r
+  OldTpl = CoreRaiseTpl (TPL_NOTIFY); \r
  \r
   Image = CoreLoadedImageInfo (ImageHandle);\r
   if (Image == NULL_HANDLE) {\r
@@ -1317,7 +1317,7 @@ Returns:
   // Prevent possible reentrance to this function\r
   // for the same ImageHandle\r
   // \r
-  OldTpl = CoreRaiseTpl (EFI_TPL_NOTIFY);\r
+  OldTpl = CoreRaiseTpl (TPL_NOTIFY);\r
  \r
   Image = CoreLoadedImageInfo (ImageHandle);\r
   if (Image == NULL ) {\r
index 74d873e3f864ca6bb2c7a3ffd41b8f4095b607c7..3d8a312cc22ffcec6538395e53e704b9ba697d79 100644 (file)
@@ -1,13 +1,13 @@
 /*++\r
 \r
-Copyright (c) 2006, Intel Corporation                                                         \r
-All rights reserved. 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
+Copyright (c) 2006, Intel Corporation\r
+All rights reserved. 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
 \r
@@ -41,16 +41,16 @@ CoreReportProgressCodeSpecific (
 \r
 Routine Description:\r
 \r
-  Report status code of type EFI_PROGRESS_CODE by caller ID gEfiDxeServicesTableGuid, \r
+  Report status code of type EFI_PROGRESS_CODE by caller ID gEfiDxeServicesTableGuid,\r
   with a handle as additional information.\r
-    \r
+\r
 Arguments:\r
 \r
-  Value    - Describes the class/subclass/operation of the hardware or software entity \r
-             that the Status Code relates to. \r
-             \r
+  Value    - Describes the class/subclass/operation of the hardware or software entity\r
+             that the Status Code relates to.\r
+\r
   Handle   - Additional information.\r
-   \r
+\r
 Returns:\r
 \r
   None\r
@@ -80,12 +80,12 @@ CoreReportProgressCode (
 Routine Description:\r
 \r
   Report status code of type EFI_PROGRESS_CODE by caller ID gEfiDxeServicesTableGuid.\r
-    \r
+\r
 Arguments:\r
 \r
-  Value    - Describes the class/subclass/operation of the hardware or software entity \r
-             that the Status Code relates to. \r
-   \r
+  Value    - Describes the class/subclass/operation of the hardware or software entity\r
+             that the Status Code relates to.\r
+\r
 Returns:\r
 \r
   None\r
@@ -113,11 +113,11 @@ CoreAllocateBootServicesPool (
 Routine Description:\r
 \r
   Allocate pool of type EfiBootServicesData, the size is specified with AllocationSize.\r
-    \r
+\r
 Arguments:\r
 \r
   AllocationSize    - Size to allocate.\r
-   \r
+\r
 Returns:\r
 \r
   Pointer of the allocated pool.\r
@@ -140,11 +140,11 @@ CoreAllocateZeroBootServicesPool (
 Routine Description:\r
 \r
   Allocate pool of type EfiBootServicesData and zero it, the size is specified with AllocationSize.\r
-    \r
+\r
 Arguments:\r
 \r
   AllocationSize    - Size to allocate.\r
-   \r
+\r
 Returns:\r
 \r
   Pointer of the allocated pool.\r
@@ -169,13 +169,13 @@ CoreAllocateCopyPool (
 Routine Description:\r
 \r
   Allocate pool of specified size with EfiBootServicesData type, and copy specified buffer to this pool.\r
-    \r
+\r
 Arguments:\r
 \r
   AllocationSize    - Size to allocate.\r
-  \r
+\r
   Buffer            - Specified buffer that will be copy to the allocated pool\r
-   \r
+\r
 Returns:\r
 \r
   Pointer of the allocated pool.\r
@@ -186,11 +186,11 @@ Returns:
 \r
   Memory = CoreAllocateBootServicesPool (AllocationSize);\r
   CopyMem (Memory, Buffer, (Memory == NULL) ? 0 : AllocationSize);\r
-  \r
+\r
   return Memory;\r
 }\r
 \r
\r
+\r
 \r
 VOID *\r
 CoreAllocateRuntimePool (\r
@@ -201,11 +201,11 @@ CoreAllocateRuntimePool (
 Routine Description:\r
 \r
   Allocate pool of type EfiRuntimeServicesData, the size is specified with AllocationSize.\r
-    \r
+\r
 Arguments:\r
 \r
   AllocationSize    - Size to allocate.\r
-   \r
+\r
 Returns:\r
 \r
   Pointer of the allocated pool.\r
@@ -228,13 +228,13 @@ CoreAllocateRuntimeCopyPool (
 Routine Description:\r
 \r
   Allocate pool of specified size with EfiRuntimeServicesData type, and copy specified buffer to this pool.\r
-    \r
+\r
 Arguments:\r
 \r
   AllocationSize    - Size to allocate.\r
-  \r
+\r
   Buffer            - Specified buffer that will be copy to the allocated pool\r
-   \r
+\r
 Returns:\r
 \r
   Pointer of the allocated pool.\r
@@ -246,7 +246,7 @@ Returns:
 \r
   Memory = CoreAllocateRuntimePool (AllocationSize);\r
   CopyMem (Memory, Buffer, (Memory == NULL) ? 0 : AllocationSize);\r
-  \r
+\r
   return Memory;\r
 }\r
 \r
@@ -271,11 +271,11 @@ Routine Description:
   level.  Since there is no-premption (at any TPL) or\r
   multiprocessor support, acquiring the lock only consists\r
   of raising to the locks TPL.\r
-    \r
+\r
 Arguments:\r
 \r
   Lock        - The EFI_LOCK structure to initialize\r
-   \r
+\r
 Returns:\r
 \r
   EFI_SUCCESS       - Lock Owned.\r
@@ -310,11 +310,11 @@ Routine Description:
 \r
   Raising to the task priority level of the mutual exclusion\r
   lock, and then acquires ownership of the lock.\r
-    \r
+\r
 Arguments:\r
 \r
   Lock - The lock to acquire\r
-    \r
+\r
 Returns:\r
 \r
   Lock owned\r
@@ -339,11 +339,11 @@ Routine Description:
 \r
     Releases ownership of the mutual exclusion lock, and\r
     restores the previous task priority level.\r
-    \r
+\r
 Arguments:\r
 \r
     Lock - The lock to release\r
-    \r
+\r
 Returns:\r
 \r
     Lock unowned\r
@@ -356,7 +356,7 @@ Returns:
   ASSERT (Lock->Lock == EfiLockAcquired);\r
 \r
   Tpl = Lock->OwnerTpl;\r
-  \r
+\r
   Lock->Lock = EfiLockReleased;\r
 \r
   CoreRestoreTpl (Tpl);\r
@@ -371,12 +371,12 @@ CoreDevicePathSize (
 \r
 Routine Description:\r
 \r
-  Calculate the size of a whole device path.    \r
-    \r
+  Calculate the size of a whole device path.\r
+\r
 Arguments:\r
 \r
   DevicePath - The pointer to the device path data.\r
-    \r
+\r
 Returns:\r
 \r
   Size of device path data structure..\r
@@ -513,7 +513,7 @@ Returns:
   if (Src1 == NULL && Src2 == NULL) {\r
     return NULL;\r
   }\r
-  \r
+\r
   //\r
   // Allocate space for the combined device path. It only has one end node of\r
   // length EFI_DEVICE_PATH_PROTOCOL\r
@@ -564,7 +564,7 @@ Arguments:
 \r
   Registration    - Registration key returned from RegisterProtocolNotify().\r
 \r
-  SignalFlag      -  Boolean value to decide whether kick the event after register or not. \r
+  SignalFlag      -  Boolean value to decide whether kick the event after register or not.\r
 \r
 Returns:\r
 \r
@@ -581,11 +581,11 @@ Returns:
   //\r
 \r
   Status = CoreCreateEvent (\r
-            EFI_EVENT_NOTIFY_SIGNAL,\r
+            EVT_NOTIFY_SIGNAL,\r
             NotifyTpl,\r
             NotifyFunction,\r
             NotifyContext,\r
-            &Event\r
+           &Event\r
             );\r
   ASSERT_EFI_ERROR (Status);\r
 \r
index 2fa4843102507c59e329ad46fcafad3b3a8e5875..83a130dee39dc4c98f7d6d7f8a7ace775c67a204 100644 (file)
@@ -28,7 +28,7 @@ Revision History
 //\r
 // MemoryLock - synchronizes access to the memory map and pool lists\r
 //\r
-EFI_LOCK          gMemoryLock = EFI_INITIALIZE_LOCK_VARIABLE (EFI_TPL_NOTIFY);\r
+EFI_LOCK          gMemoryLock = EFI_INITIALIZE_LOCK_VARIABLE (TPL_NOTIFY);\r
 \r
 //\r
 // MemoryMap - the current memory map\r
index a3e20e69e846f30496facbbf8fc611a14f9b79e3..817dbd8fb8cfa3b3bf73b53aa327a3f0e04302dc 100644 (file)
@@ -383,7 +383,7 @@ Returns:
   UINTN                                                 SectionSize;\r
   \r
 \r
-  OldTpl = CoreRaiseTpl (EFI_TPL_NOTIFY);\r
+  OldTpl = CoreRaiseTpl (TPL_NOTIFY);\r
   Instance = SectionInstance + 1;\r
   \r
   //\r
@@ -484,7 +484,7 @@ Returns:
   LIST_ENTRY                                    *Link;\r
   CORE_SECTION_CHILD_NODE                       *ChildNode;\r
   \r
-  OldTpl = CoreRaiseTpl (EFI_TPL_NOTIFY);\r
+  OldTpl = CoreRaiseTpl (TPL_NOTIFY);\r
   \r
   //\r
   // Locate target stream\r
@@ -1025,7 +1025,7 @@ Returns:
  \r
   Context->Event = CoreCreateProtocolNotifyEvent (\r
                     Context->ChildNode->EncapsulationGuid,\r
-                    EFI_TPL_NOTIFY,\r
+                    TPL_NOTIFY,\r
                     NotifyGuidedExtraction,\r
                     Context,\r
                     &Context->Registration,\r
@@ -1234,7 +1234,7 @@ OpenSectionStreamEx (
   //\r
   // Add new stream to stream list\r
   //\r
-  OldTpl = CoreRaiseTpl (EFI_TPL_NOTIFY);\r
+  OldTpl = CoreRaiseTpl (TPL_NOTIFY);\r
   InsertTailList (&mStreamRoot, &NewStream->Link);\r
   CoreRestoreTpl (OldTpl);\r
 \r
index c94c8242ac1419bb8666ce582c7888eecf76dd1d..12a55c97d3799e3f1166d69af3428fd603713e3c 100644 (file)
@@ -2,21 +2,21 @@
 \r
   Firmware Volume Block Protocol Runtime Abstraction\r
 \r
-  mFvbEntry is an array of Handle Fvb pairs. The Fvb Lib Instance matches the \r
+  mFvbEntry is an array of Handle Fvb pairs. The Fvb Lib Instance matches the\r
   index in the mFvbEntry array. This should be the same sequence as the FVB's\r
-  were described in the HOB. We have to remember the handle so we can tell if \r
+  were described in the HOB. We have to remember the handle so we can tell if\r
   the protocol has been reinstalled and it needs updateing.\r
 \r
   If you are using any of these lib functions.you must first call FvbInitialize ().\r
-  \r
-Copyright (c) 2006, Intel Corporation                                                         \r
-All rights reserved. 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
+Copyright (c) 2006, Intel Corporation\r
+All rights reserved. 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
 \r
@@ -32,9 +32,9 @@ STATIC UINTN              mFvbCount;
 \r
 /**\r
   Check whether an address is runtime memory or not.\r
\r
+\r
   @param    Address   The Address being checked.\r
-  \r
+\r
   @retval   TRUE      The address is runtime memory.\r
   @retval   FALSE     The address is not runtime memory.\r
 **/\r
@@ -124,10 +124,10 @@ IsRuntimeMemory (
 /**\r
   Update mFvbEntry. Add new entry, or update existing entry if Fvb protocol is\r
   reinstalled.\r
\r
+\r
   @param Event      The Event that is being processed\r
   @param Context    Event Context\r
-  \r
+\r
 **/\r
 STATIC\r
 VOID\r
@@ -190,15 +190,15 @@ FvbNotificationEvent (
     //  Get the interface pointer and if it's ours, skip it\r
     //\r
     Status = gBS->HandleProtocol (\r
-                    Handle, \r
-                    &gEfiFirmwareVolumeBlockProtocolGuid, \r
+                    Handle,\r
+                    &gEfiFirmwareVolumeBlockProtocolGuid,\r
                     (VOID **) &mFvbEntry[UpdateIndex].Fvb\r
                     );\r
     ASSERT_EFI_ERROR (Status);\r
 \r
     Status = gBS->HandleProtocol (\r
-                    Handle, \r
-                    &gEfiFvbExtensionProtocolGuid, \r
+                    Handle,\r
+                    &gEfiFvbExtensionProtocolGuid,\r
                     (VOID **) &mFvbEntry[UpdateIndex].FvbExtension\r
                     );\r
     if (Status != EFI_SUCCESS) {\r
@@ -209,14 +209,14 @@ FvbNotificationEvent (
     // Check the FVB can be accessed in RUNTIME, The FVBs in FVB handle list comes\r
     // from two way:\r
     // 1) Dxe Core. (FVB information is transferred from FV HOB).\r
-    // 2) FVB driver. \r
+    // 2) FVB driver.\r
     // The FVB produced Dxe core is used for discoverying DXE driver and dispatch. These\r
-    // FVBs can only be accessed in boot time. \r
+    // FVBs can only be accessed in boot time.\r
     // FVB driver will discovery all FV in FLASH and these FVBs can be accessed in runtime.\r
-    // The FVB itself produced by FVB driver is allocated in runtime memory. So we can \r
+    // The FVB itself produced by FVB driver is allocated in runtime memory. So we can\r
     // determine the what FVB can be accessed in RUNTIME by judging whether FVB itself is allocated\r
     // in RUNTIME memory.\r
-    // \r
+    //\r
     mFvbEntry[UpdateIndex].IsRuntimeAccess = IsRuntimeMemory (mFvbEntry[UpdateIndex].Fvb);\r
   }\r
 }\r
@@ -226,7 +226,7 @@ FvbNotificationEvent (
 \r
   @param Event      The Event that is being processed\r
   @param Context    Event Context\r
-  \r
+\r
 **/\r
 VOID\r
 EFIAPI\r
@@ -265,10 +265,10 @@ FvbVirtualAddressChangeNotifyEvent (
 \r
 /**\r
   Library constructor function entry.\r
\r
+\r
   @param ImageHandle    The handle of image who call this libary.\r
   @param SystemTable    The point of System Table.\r
-  \r
+\r
   @retval EFI_SUCESS    Sucess construct this library.\r
   @retval Others        Fail to contruct this libary.\r
 **/\r
@@ -296,7 +296,7 @@ FvbLibInitialize (
 \r
   EfiCreateProtocolNotifyEvent (\r
     &gEfiFirmwareVolumeBlockProtocolGuid,\r
-    EFI_TPL_CALLBACK,\r
+    TPL_CALLBACK,\r
     FvbNotificationEvent,\r
     NULL,\r
     &mFvbRegistration\r
@@ -306,8 +306,8 @@ FvbLibInitialize (
   // Register SetVirtualAddressMap () notify function\r
   //\r
   //  Status = gBS->CreateEvent (\r
-  //                EFI_EVENT_SIGNAL_VIRTUAL_ADDRESS_CHANGE,\r
-  //                EFI_TPL_NOTIFY,\r
+  //                EVT_SIGNAL_VIRTUAL_ADDRESS_CHANGE,\r
+  //                TPL_NOTIFY,\r
   //                EfiRuntimeLibFvbVirtualNotifyEvent,\r
   //                NULL,\r
   //                &mEfiFvbVirtualNotifyEvent\r
@@ -326,7 +326,7 @@ FvbLibInitialize (
   return EFI_SUCCESS;\r
 }\r
 \r
-// \r
+//\r
 // =============================================================================\r
 // The following functions wrap Fvb protocol in the Runtime Lib functions.\r
 // The Instance translates into Fvb instance. The Fvb order defined by HOBs and\r
@@ -335,7 +335,7 @@ FvbLibInitialize (
 // EfiFvbInitialize () must be called before any of the following functions\r
 // must be called.\r
 // =============================================================================\r
-// \r
+//\r
 \r
 /**\r
   Reads specified number of bytes into a buffer from the specified block\r
@@ -348,7 +348,7 @@ FvbLibInitialize (
                       of bytes read\r
   @param Buffer       Pointer to a caller allocated buffer that will be\r
                       used to hold the data read\r
-  \r
+\r
   @retval EFI_INVALID_PARAMETER  Invalid parameter\r
   @retval EFI_SUCESS             Sucess to Read block\r
   @retval Others                 Fail to read block\r
@@ -375,7 +375,7 @@ EfiFvbReadBlock (
 \r
 /**\r
    Writes specified number of bytes from the input buffer to the block\r
\r
+\r
   @param Instance         The FV instance to be written to\r
   @param Lba              The starting logical block index to write to\r
   @param Offset           Offset into the block at which to begin writing\r
@@ -384,7 +384,7 @@ EfiFvbReadBlock (
                           of bytes actually written\r
   @param Buffer           Pointer to a caller allocated buffer that contains\r
                           the source for the write\r
-  \r
+\r
   @retval EFI_INVALID_PARAMETER  Invalid parameter\r
   @retval EFI_SUCESS             Sucess to write block\r
   @retval Others                 Fail to write block\r
@@ -414,7 +414,7 @@ EfiFvbWriteBlock (
 \r
    @param Instance      The FV instance to be erased\r
    @param Lba           The logical block index to be erased\r
-   \r
+\r
    @retval EFI_INVALID_PARAMETER  Invalid parameter\r
    @retval EFI_SUCESS             Sucess to erase block\r
    @retval Others                 Fail to erase block\r
@@ -439,10 +439,10 @@ EfiFvbEraseBlock (
 /**\r
   Retrieves attributes, insures positive polarity of attribute bits, returns\r
   resulting attributes in output parameter\r
\r
+\r
   @param Instance       The FV instance whose attributes is going to be returned\r
   @param Attributes     Output buffer which contains attributes\r
-  \r
+\r
   @retval EFI_INVALID_PARAMETER  Invalid parameter\r
   @retval EFI_SUCESS             Sucess to get Fv attribute\r
   @retval Others                 Fail to get Fv attribute\r
@@ -465,16 +465,16 @@ EfiFvbGetVolumeAttributes (
 }\r
 \r
 /**\r
-   Modifies the current settings of the firmware volume according to the \r
+   Modifies the current settings of the firmware volume according to the\r
    input parameter, and returns the new setting of the volume\r
 \r
-   @param Instance        The FV instance whose attributes is going to be \r
+   @param Instance        The FV instance whose attributes is going to be\r
                           modified\r
-   @param Attributes      On input, it is a pointer to EFI_FVB_ATTRIBUTES \r
+   @param Attributes      On input, it is a pointer to EFI_FVB_ATTRIBUTES\r
                           containing the desired firmware volume settings.\r
                           On successful return, it contains the new settings\r
                           of the firmware volume\r
-   \r
+\r
   @retval EFI_INVALID_PARAMETER  Invalid parameter\r
   @retval EFI_SUCESS             Sucess to set Fv attribute\r
   @retval Others                 Fail to set Fv attribute\r
@@ -501,10 +501,10 @@ EfiFvbSetVolumeAttributes (
 \r
    @param Instance      The FV instance whose base address is going to be\r
                         returned\r
-   @param BaseAddress   Pointer to a caller allocated EFI_PHYSICAL_ADDRESS \r
+   @param BaseAddress   Pointer to a caller allocated EFI_PHYSICAL_ADDRESS\r
                         that on successful return, contains the base address\r
                         of the firmware volume.\r
-   \r
+\r
   @retval EFI_INVALID_PARAMETER  Invalid parameter\r
   @retval EFI_SUCESS             Sucess to get physical address\r
   @retval Others                 Fail to get physical address\r
@@ -538,7 +538,7 @@ EfiFvbGetPhysicalAddress (
                               number of consecutive blocks starting with Lba is\r
                               returned. All blocks in this range have a size of\r
                               BlockSize\r
-   \r
+\r
   @retval EFI_INVALID_PARAMETER  Invalid parameter\r
   @retval EFI_SUCESS             Sucess to get block size\r
   @retval Others                 Fail to get block size\r
@@ -567,11 +567,11 @@ EfiFvbGetBlockSize (
 \r
    @param Instance          The FV instance to be erased\r
    @param StartLba          The starting logical block index to be erased\r
-   @param OffsetStartLba    Offset into the starting block at which to \r
+   @param OffsetStartLba    Offset into the starting block at which to\r
                             begin erasing\r
    @param LastLba           The last logical block index to be erased\r
    @param OffsetLastLba     Offset into the last block at which to end erasing\r
-   \r
+\r
   @retval EFI_INVALID_PARAMETER  Invalid parameter\r
   @retval EFI_SUCESS             Sucess to erase custom block range\r
   @retval Others                 Fail to erase custom block range\r
index c94c8242ac1419bb8666ce582c7888eecf76dd1d..12a55c97d3799e3f1166d69af3428fd603713e3c 100644 (file)
@@ -2,21 +2,21 @@
 \r
   Firmware Volume Block Protocol Runtime Abstraction\r
 \r
-  mFvbEntry is an array of Handle Fvb pairs. The Fvb Lib Instance matches the \r
+  mFvbEntry is an array of Handle Fvb pairs. The Fvb Lib Instance matches the\r
   index in the mFvbEntry array. This should be the same sequence as the FVB's\r
-  were described in the HOB. We have to remember the handle so we can tell if \r
+  were described in the HOB. We have to remember the handle so we can tell if\r
   the protocol has been reinstalled and it needs updateing.\r
 \r
   If you are using any of these lib functions.you must first call FvbInitialize ().\r
-  \r
-Copyright (c) 2006, Intel Corporation                                                         \r
-All rights reserved. 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
+Copyright (c) 2006, Intel Corporation\r
+All rights reserved. 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
 \r
@@ -32,9 +32,9 @@ STATIC UINTN              mFvbCount;
 \r
 /**\r
   Check whether an address is runtime memory or not.\r
\r
+\r
   @param    Address   The Address being checked.\r
-  \r
+\r
   @retval   TRUE      The address is runtime memory.\r
   @retval   FALSE     The address is not runtime memory.\r
 **/\r
@@ -124,10 +124,10 @@ IsRuntimeMemory (
 /**\r
   Update mFvbEntry. Add new entry, or update existing entry if Fvb protocol is\r
   reinstalled.\r
\r
+\r
   @param Event      The Event that is being processed\r
   @param Context    Event Context\r
-  \r
+\r
 **/\r
 STATIC\r
 VOID\r
@@ -190,15 +190,15 @@ FvbNotificationEvent (
     //  Get the interface pointer and if it's ours, skip it\r
     //\r
     Status = gBS->HandleProtocol (\r
-                    Handle, \r
-                    &gEfiFirmwareVolumeBlockProtocolGuid, \r
+                    Handle,\r
+                    &gEfiFirmwareVolumeBlockProtocolGuid,\r
                     (VOID **) &mFvbEntry[UpdateIndex].Fvb\r
                     );\r
     ASSERT_EFI_ERROR (Status);\r
 \r
     Status = gBS->HandleProtocol (\r
-                    Handle, \r
-                    &gEfiFvbExtensionProtocolGuid, \r
+                    Handle,\r
+                    &gEfiFvbExtensionProtocolGuid,\r
                     (VOID **) &mFvbEntry[UpdateIndex].FvbExtension\r
                     );\r
     if (Status != EFI_SUCCESS) {\r
@@ -209,14 +209,14 @@ FvbNotificationEvent (
     // Check the FVB can be accessed in RUNTIME, The FVBs in FVB handle list comes\r
     // from two way:\r
     // 1) Dxe Core. (FVB information is transferred from FV HOB).\r
-    // 2) FVB driver. \r
+    // 2) FVB driver.\r
     // The FVB produced Dxe core is used for discoverying DXE driver and dispatch. These\r
-    // FVBs can only be accessed in boot time. \r
+    // FVBs can only be accessed in boot time.\r
     // FVB driver will discovery all FV in FLASH and these FVBs can be accessed in runtime.\r
-    // The FVB itself produced by FVB driver is allocated in runtime memory. So we can \r
+    // The FVB itself produced by FVB driver is allocated in runtime memory. So we can\r
     // determine the what FVB can be accessed in RUNTIME by judging whether FVB itself is allocated\r
     // in RUNTIME memory.\r
-    // \r
+    //\r
     mFvbEntry[UpdateIndex].IsRuntimeAccess = IsRuntimeMemory (mFvbEntry[UpdateIndex].Fvb);\r
   }\r
 }\r
@@ -226,7 +226,7 @@ FvbNotificationEvent (
 \r
   @param Event      The Event that is being processed\r
   @param Context    Event Context\r
-  \r
+\r
 **/\r
 VOID\r
 EFIAPI\r
@@ -265,10 +265,10 @@ FvbVirtualAddressChangeNotifyEvent (
 \r
 /**\r
   Library constructor function entry.\r
\r
+\r
   @param ImageHandle    The handle of image who call this libary.\r
   @param SystemTable    The point of System Table.\r
-  \r
+\r
   @retval EFI_SUCESS    Sucess construct this library.\r
   @retval Others        Fail to contruct this libary.\r
 **/\r
@@ -296,7 +296,7 @@ FvbLibInitialize (
 \r
   EfiCreateProtocolNotifyEvent (\r
     &gEfiFirmwareVolumeBlockProtocolGuid,\r
-    EFI_TPL_CALLBACK,\r
+    TPL_CALLBACK,\r
     FvbNotificationEvent,\r
     NULL,\r
     &mFvbRegistration\r
@@ -306,8 +306,8 @@ FvbLibInitialize (
   // Register SetVirtualAddressMap () notify function\r
   //\r
   //  Status = gBS->CreateEvent (\r
-  //                EFI_EVENT_SIGNAL_VIRTUAL_ADDRESS_CHANGE,\r
-  //                EFI_TPL_NOTIFY,\r
+  //                EVT_SIGNAL_VIRTUAL_ADDRESS_CHANGE,\r
+  //                TPL_NOTIFY,\r
   //                EfiRuntimeLibFvbVirtualNotifyEvent,\r
   //                NULL,\r
   //                &mEfiFvbVirtualNotifyEvent\r
@@ -326,7 +326,7 @@ FvbLibInitialize (
   return EFI_SUCCESS;\r
 }\r
 \r
-// \r
+//\r
 // =============================================================================\r
 // The following functions wrap Fvb protocol in the Runtime Lib functions.\r
 // The Instance translates into Fvb instance. The Fvb order defined by HOBs and\r
@@ -335,7 +335,7 @@ FvbLibInitialize (
 // EfiFvbInitialize () must be called before any of the following functions\r
 // must be called.\r
 // =============================================================================\r
-// \r
+//\r
 \r
 /**\r
   Reads specified number of bytes into a buffer from the specified block\r
@@ -348,7 +348,7 @@ FvbLibInitialize (
                       of bytes read\r
   @param Buffer       Pointer to a caller allocated buffer that will be\r
                       used to hold the data read\r
-  \r
+\r
   @retval EFI_INVALID_PARAMETER  Invalid parameter\r
   @retval EFI_SUCESS             Sucess to Read block\r
   @retval Others                 Fail to read block\r
@@ -375,7 +375,7 @@ EfiFvbReadBlock (
 \r
 /**\r
    Writes specified number of bytes from the input buffer to the block\r
\r
+\r
   @param Instance         The FV instance to be written to\r
   @param Lba              The starting logical block index to write to\r
   @param Offset           Offset into the block at which to begin writing\r
@@ -384,7 +384,7 @@ EfiFvbReadBlock (
                           of bytes actually written\r
   @param Buffer           Pointer to a caller allocated buffer that contains\r
                           the source for the write\r
-  \r
+\r
   @retval EFI_INVALID_PARAMETER  Invalid parameter\r
   @retval EFI_SUCESS             Sucess to write block\r
   @retval Others                 Fail to write block\r
@@ -414,7 +414,7 @@ EfiFvbWriteBlock (
 \r
    @param Instance      The FV instance to be erased\r
    @param Lba           The logical block index to be erased\r
-   \r
+\r
    @retval EFI_INVALID_PARAMETER  Invalid parameter\r
    @retval EFI_SUCESS             Sucess to erase block\r
    @retval Others                 Fail to erase block\r
@@ -439,10 +439,10 @@ EfiFvbEraseBlock (
 /**\r
   Retrieves attributes, insures positive polarity of attribute bits, returns\r
   resulting attributes in output parameter\r
\r
+\r
   @param Instance       The FV instance whose attributes is going to be returned\r
   @param Attributes     Output buffer which contains attributes\r
-  \r
+\r
   @retval EFI_INVALID_PARAMETER  Invalid parameter\r
   @retval EFI_SUCESS             Sucess to get Fv attribute\r
   @retval Others                 Fail to get Fv attribute\r
@@ -465,16 +465,16 @@ EfiFvbGetVolumeAttributes (
 }\r
 \r
 /**\r
-   Modifies the current settings of the firmware volume according to the \r
+   Modifies the current settings of the firmware volume according to the\r
    input parameter, and returns the new setting of the volume\r
 \r
-   @param Instance        The FV instance whose attributes is going to be \r
+   @param Instance        The FV instance whose attributes is going to be\r
                           modified\r
-   @param Attributes      On input, it is a pointer to EFI_FVB_ATTRIBUTES \r
+   @param Attributes      On input, it is a pointer to EFI_FVB_ATTRIBUTES\r
                           containing the desired firmware volume settings.\r
                           On successful return, it contains the new settings\r
                           of the firmware volume\r
-   \r
+\r
   @retval EFI_INVALID_PARAMETER  Invalid parameter\r
   @retval EFI_SUCESS             Sucess to set Fv attribute\r
   @retval Others                 Fail to set Fv attribute\r
@@ -501,10 +501,10 @@ EfiFvbSetVolumeAttributes (
 \r
    @param Instance      The FV instance whose base address is going to be\r
                         returned\r
-   @param BaseAddress   Pointer to a caller allocated EFI_PHYSICAL_ADDRESS \r
+   @param BaseAddress   Pointer to a caller allocated EFI_PHYSICAL_ADDRESS\r
                         that on successful return, contains the base address\r
                         of the firmware volume.\r
-   \r
+\r
   @retval EFI_INVALID_PARAMETER  Invalid parameter\r
   @retval EFI_SUCESS             Sucess to get physical address\r
   @retval Others                 Fail to get physical address\r
@@ -538,7 +538,7 @@ EfiFvbGetPhysicalAddress (
                               number of consecutive blocks starting with Lba is\r
                               returned. All blocks in this range have a size of\r
                               BlockSize\r
-   \r
+\r
   @retval EFI_INVALID_PARAMETER  Invalid parameter\r
   @retval EFI_SUCESS             Sucess to get block size\r
   @retval Others                 Fail to get block size\r
@@ -567,11 +567,11 @@ EfiFvbGetBlockSize (
 \r
    @param Instance          The FV instance to be erased\r
    @param StartLba          The starting logical block index to be erased\r
-   @param OffsetStartLba    Offset into the starting block at which to \r
+   @param OffsetStartLba    Offset into the starting block at which to\r
                             begin erasing\r
    @param LastLba           The last logical block index to be erased\r
    @param OffsetLastLba     Offset into the last block at which to end erasing\r
-   \r
+\r
   @retval EFI_INVALID_PARAMETER  Invalid parameter\r
   @retval EFI_SUCESS             Sucess to erase custom block range\r
   @retval Others                 Fail to erase custom block range\r
index ce4efffbd73626b1734b0db707605d85b5343668..3cb11d89243864ee13124d57f1eaca1d0a8b7814 100644 (file)
@@ -1,14 +1,14 @@
 /**@file\r
   Library utility functions for Runtime driver.\r
-  \r
+\r
 Copyright (c) 2006 Intel Corporation. <BR>\r
-All rights reserved. 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
+All rights reserved. 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
 \r
@@ -25,7 +25,7 @@ EFI_RUNTIME_SERVICES          *mRT;
 \r
 /**\r
   Set AtRuntime flag as TRUE after ExitBootServices\r
-  \r
+\r
   @param[in]  Event   The Event that is being processed\r
   @param[in]  Context Event Context\r
 **/\r
@@ -46,9 +46,9 @@ RuntimeDriverExitBootServices (
 \r
 /**\r
   Fixup internal data so that EFI can be call in virtual mode.\r
-  Call the passed in Child Notify event and convert any pointers in \r
+  Call the passed in Child Notify event and convert any pointers in\r
   lib to virtual mode.\r
-  \r
+\r
   @param[in]    Event   The Event that is being processed\r
   @param[in]    Context Event Context\r
 **/\r
@@ -63,7 +63,7 @@ RuntimeLibVirtualNotifyEvent (
   UINTN Index;\r
   EFI_EVENT_NOTIFY  ChildNotifyEventHandler;\r
 \r
-  for (Index = 0; \r
+  for (Index = 0;\r
        _gDriverSetVirtualAddressMapEvent[Index] != NULL;\r
        Index++) {\r
     ChildNotifyEventHandler = _gDriverSetVirtualAddressMapEvent[Index];\r
@@ -79,11 +79,11 @@ RuntimeLibVirtualNotifyEvent (
 }\r
 \r
 /**\r
-  Intialize runtime Driver Lib if it has not yet been initialized. \r
-  \r
+  Intialize runtime Driver Lib if it has not yet been initialized.\r
+\r
   @param[in]  ImageHandle   The firmware allocated handle for the EFI image.\r
   @param[in]  SystemTable   A pointer to the EFI System Table.\r
-  \r
+\r
   @return     EFI_STATUS    always returns EFI_SUCCESS except EFI_ALREADY_STARTED if already started.\r
 **/\r
 EFI_STATUS\r
@@ -101,11 +101,11 @@ RuntimeDriverLibConstruct (
   \r
   //\r
   // Register SetVirtualAddressMap () notify function\r
-  // \r
+  //\r
   ASSERT (gBS != NULL);\r
   Status = gBS->CreateEvent (\r
-                  EFI_EVENT_SIGNAL_VIRTUAL_ADDRESS_CHANGE,\r
-                  EFI_TPL_NOTIFY,\r
+                  EVT_SIGNAL_VIRTUAL_ADDRESS_CHANGE,\r
+                  TPL_NOTIFY,\r
                   RuntimeLibVirtualNotifyEvent,\r
                   NULL,\r
                   &mEfiVirtualNotifyEvent\r
@@ -118,7 +118,7 @@ RuntimeDriverLibConstruct (
 \r
 /**\r
   This routine will free some resources which have been allocated in\r
-  EfiInitializeRuntimeDriverLib(). If a runtime driver exits with an error, \r
+  EfiInitializeRuntimeDriverLib(). If a runtime driver exits with an error,\r
   it must call this routine to free the allocated resource before the exiting.\r
 \r
   @retval     EFI_SUCCESS       Shutdown the Runtime Driver Lib successfully\r
@@ -139,13 +139,13 @@ RuntimeDriverLibDeconstruct (
   ASSERT (gBS != NULL);\r
   Status = gBS->CloseEvent (mEfiVirtualNotifyEvent);\r
   ASSERT_EFI_ERROR (Status);\r
-  \r
+\r
   return Status;\r
 }\r
 \r
 /**\r
   Return TRUE if ExitBootServices () has been called\r
-  \r
+\r
   @retval TRUE If ExitBootServices () has been called\r
 **/\r
 BOOLEAN\r
@@ -159,7 +159,7 @@ EfiAtRuntime (
 \r
 /**\r
   Return TRUE if SetVirtualAddressMap () has been called\r
-  \r
+\r
   @retval TRUE  If SetVirtualAddressMap () has been called\r
 **/\r
 BOOLEAN\r
index f6a19041433b1d1d3d89a54c873d3154df474b61..71a7bf9b6c908c2a88bc3b76f755a0e38379e74d 100644 (file)
@@ -1,13 +1,13 @@
 /*++\r
 \r
-Copyright (c) 2006, Intel Corporation                                                         \r
-All rights reserved. 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
+Copyright (c) 2006, Intel Corporation\r
+All rights reserved. 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
 \r
@@ -38,10 +38,10 @@ Routine Description:
 Arguments:\r
 \r
   Event   - The Event that is being processed\r
-  \r
+\r
   Context - Event Context\r
 \r
-Returns: \r
+Returns:\r
 \r
   None\r
 \r
@@ -64,16 +64,16 @@ RuntimeLibVirtualNotifyEvent (
 Routine Description:\r
 \r
   Fixup internal data so that EFI can be call in virtual mode.\r
-  Call the passed in Child Notify event and convert any pointers in \r
+  Call the passed in Child Notify event and convert any pointers in\r
   lib to virtual mode.\r
 \r
 Arguments:\r
 \r
   Event   - The Event that is being processed\r
-  \r
+\r
   Context - Event Context\r
 \r
-Returns: \r
+Returns:\r
 \r
   None\r
 \r
@@ -103,12 +103,12 @@ RuntimeDriverLibConstruct (
 \r
 Routine Description:\r
 \r
-  Intialize runtime Driver Lib if it has not yet been initialized. \r
+  Intialize runtime Driver Lib if it has not yet been initialized.\r
 \r
 Arguments:\r
 \r
   ImageHandle     - The firmware allocated handle for the EFI image.\r
-  \r
+\r
   SystemTable     - A pointer to the EFI System Table.\r
 \r
   GoVirtualChildEvent - Caller can register a virtual notification event.\r
@@ -128,8 +128,8 @@ Returns:
   //\r
   if (_gDriverSetVirtualAddressMapEvent[0] != NULL) {\r
     Status = gBS->CreateEvent (\r
-                    EFI_EVENT_SIGNAL_VIRTUAL_ADDRESS_CHANGE,\r
-                    EFI_TPL_NOTIFY,\r
+                    EVT_SIGNAL_VIRTUAL_ADDRESS_CHANGE,\r
+                    TPL_NOTIFY,\r
                     RuntimeLibVirtualNotifyEvent,\r
                     NULL,\r
                     &mEfiVirtualNotifyEvent\r
@@ -151,14 +151,14 @@ RuntimeDriverLibDeconstruct (
 Routine Description:\r
 \r
   This routine will free some resources which have been allocated in\r
-  EfiInitializeRuntimeDriverLib(). If a runtime driver exits with an error, \r
+  EfiInitializeRuntimeDriverLib(). If a runtime driver exits with an error,\r
   it must call this routine to free the allocated resource before the exiting.\r
 \r
 Arguments:\r
 \r
   None\r
 \r
-Returns: \r
+Returns:\r
 \r
   EFI_SUCCESS     - Shotdown the Runtime Driver Lib successfully\r
   EFI_UNSUPPORTED - Runtime Driver lib was not initialized at all\r
@@ -191,7 +191,7 @@ Routine Description:
 Arguments:\r
   NONE\r
 \r
-Returns: \r
+Returns:\r
   TRUE - If ExitBootService () has been called\r
 \r
 --*/\r
@@ -220,7 +220,7 @@ Routine Description:
 Arguments:\r
   NONE\r
 \r
-Returns: \r
+Returns:\r
   TRUE - If SetVirtualAddressMap () has been called\r
 \r
 --*/\r
index bd18e2562179336a429d42b73aca6b0f276317f9..30ee71f7639107ce23a940cc227e5735b8be10ac 100644 (file)
@@ -366,8 +366,8 @@ Returns:
   // Create Event to support locking StdIn Device\r
   //\r
   Status = gBS->CreateEvent (\r
-                  EFI_EVENT_TIMER | EFI_EVENT_NOTIFY_SIGNAL,\r
-                  EFI_TPL_CALLBACK,\r
+                  EVT_TIMER | EVT_NOTIFY_SIGNAL,\r
+                  TPL_CALLBACK,\r
                   ConSpliterConsoleControlLockStdInEvent,\r
                   NULL,\r
                   &ConInPrivate->LockEvent\r
@@ -375,8 +375,8 @@ Returns:
   ASSERT_EFI_ERROR (Status);\r
 \r
   Status = gBS->CreateEvent (\r
-                  EFI_EVENT_NOTIFY_WAIT,\r
-                  EFI_TPL_NOTIFY,\r
+                  EVT_NOTIFY_WAIT,\r
+                  TPL_NOTIFY,\r
                   ConSplitterTextInWaitForKey,\r
                   ConInPrivate,\r
                   &ConInPrivate->TextIn.WaitForKey\r
@@ -395,8 +395,8 @@ Returns:
   }\r
 \r
   Status = gBS->CreateEvent (\r
-                  EFI_EVENT_NOTIFY_WAIT,\r
-                  EFI_TPL_NOTIFY,\r
+                  EVT_NOTIFY_WAIT,\r
+                  TPL_NOTIFY,\r
                   ConSplitterSimplePointerWaitForInput,\r
                   ConInPrivate,\r
                   &ConInPrivate->SimplePointer.WaitForInput\r
index 9de82ccf116397441ab8c8147a982e69cee539de..21cf9db54bc3a60ceb33d3593430253bb0fe5d22 100644 (file)
@@ -727,7 +727,7 @@ GraphicsConsoleConOutOutputString (
 \r
   Status = EFI_SUCCESS;\r
 \r
-  OldTpl = gBS->RaiseTPL (EFI_TPL_NOTIFY);\r
+  OldTpl = gBS->RaiseTPL (TPL_NOTIFY);\r
   //\r
   // Current mode\r
   //\r
@@ -1078,7 +1078,7 @@ GraphicsConsoleConOutQueryMode (
     return EFI_UNSUPPORTED;\r
   }\r
 \r
-  OldTpl = gBS->RaiseTPL (EFI_TPL_NOTIFY);\r
+  OldTpl = gBS->RaiseTPL (TPL_NOTIFY);\r
   Status = EFI_SUCCESS;\r
   \r
   Private   = GRAPHICS_CONSOLE_CON_OUT_DEV_FROM_THIS (This);\r
@@ -1141,7 +1141,7 @@ GraphicsConsoleConOutSetMode (
   UINT32                          RefreshRate;\r
   EFI_TPL                         OldTpl;\r
 \r
-  OldTpl = gBS->RaiseTPL (EFI_TPL_NOTIFY);\r
+  OldTpl = gBS->RaiseTPL (TPL_NOTIFY);\r
 \r
   Private   = GRAPHICS_CONSOLE_CON_OUT_DEV_FROM_THIS (This);\r
   GraphicsOutput = Private->GraphicsOutput;\r
@@ -1343,7 +1343,7 @@ GraphicsConsoleConOutSetAttribute (
     return EFI_SUCCESS;\r
   }\r
 \r
-  OldTpl = gBS->RaiseTPL (EFI_TPL_NOTIFY);\r
+  OldTpl = gBS->RaiseTPL (TPL_NOTIFY);\r
 \r
   EraseCursor (This);\r
 \r
@@ -1395,7 +1395,7 @@ GraphicsConsoleConOutClearScreen (
   EFI_GRAPHICS_OUTPUT_BLT_PIXEL Background;\r
   EFI_TPL                       OldTpl;\r
 \r
-  OldTpl = gBS->RaiseTPL (EFI_TPL_NOTIFY);\r
+  OldTpl = gBS->RaiseTPL (TPL_NOTIFY);\r
 \r
   Private   = GRAPHICS_CONSOLE_CON_OUT_DEV_FROM_THIS (This);\r
   GraphicsOutput = Private->GraphicsOutput;\r
@@ -1482,7 +1482,7 @@ GraphicsConsoleConOutSetCursorPosition (
 \r
   Status = EFI_SUCCESS;\r
 \r
-  OldTpl = gBS->RaiseTPL (EFI_TPL_NOTIFY);\r
+  OldTpl = gBS->RaiseTPL (TPL_NOTIFY);\r
 \r
   Private   = GRAPHICS_CONSOLE_CON_OUT_DEV_FROM_THIS (This);\r
   ModeData  = &(Private->ModeData[This->Mode->Mode]);\r
@@ -1541,7 +1541,7 @@ GraphicsConsoleConOutEnableCursor (
 {\r
   EFI_TPL               OldTpl;\r
   \r
-  OldTpl = gBS->RaiseTPL (EFI_TPL_NOTIFY);\r
+  OldTpl = gBS->RaiseTPL (TPL_NOTIFY);\r
     \r
   EraseCursor (This);\r
 \r
index ba113c27ad4919a8e77e22b5a8d4686743475f70..958516db6126a51a9641997da393249865cba8bd 100644 (file)
@@ -1,19 +1,19 @@
 /*++\r
 \r
-Copyright (c) 2006, Intel Corporation                                                         \r
-All rights reserved. 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
+Copyright (c) 2006, Intel Corporation\r
+All rights reserved. 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
 \r
     Terminal.c\r
-    \r
-Abstract: \r
+\r
+Abstract:\r
 \r
 Revision History:\r
 \r
@@ -289,10 +289,10 @@ TerminalDriverBindingStart (
       Status = EFI_OUT_OF_RESOURCES;\r
       goto Error;\r
     }\r
-    \r
+\r
     CopyMem (&DefaultNode->Guid, &gEfiPcAnsiGuid, sizeof (EFI_GUID));\r
     RemainingDevicePath = (EFI_DEVICE_PATH_PROTOCOL*) DefaultNode;\r
-  }  \r
+  }\r
   //\r
   // Use the RemainingDevicePath to determine the terminal type\r
   //\r
@@ -341,8 +341,8 @@ TerminalDriverBindingStart (
   TerminalDevice->SimpleInput.ReadKeyStroke = TerminalConInReadKeyStroke;\r
 \r
   Status = gBS->CreateEvent (\r
-                  EFI_EVENT_NOTIFY_WAIT,\r
-                  EFI_TPL_NOTIFY,\r
+                  EVT_NOTIFY_WAIT,\r
+                  TPL_NOTIFY,\r
                   TerminalConInWaitForKey,\r
                   &TerminalDevice->SimpleInput,\r
                   &TerminalDevice->SimpleInput.WaitForKey\r
@@ -465,8 +465,8 @@ TerminalDriverBindingStart (
   TerminalDevice->ResetState  = RESET_STATE_DEFAULT;\r
 \r
   Status = gBS->CreateEvent (\r
-                  EFI_EVENT_TIMER,\r
-                  EFI_TPL_CALLBACK,\r
+                  EVT_TIMER,\r
+                  TPL_CALLBACK,\r
                   NULL,\r
                   NULL,\r
                   &TerminalDevice->TwoSecondTimeOut\r
@@ -568,7 +568,7 @@ TerminalDriverBindingStart (
   if (DefaultNode != NULL) {\r
     FreePool (DefaultNode);\r
   }\r
-  \r
+\r
   return EFI_SUCCESS;\r
 \r
 ReportError:\r
@@ -614,7 +614,7 @@ Error:
   if (DefaultNode != NULL) {\r
     FreePool (DefaultNode);\r
   }\r
-  \r
+\r
   This->Stop (This, Controller, 0, NULL);\r
 \r
   return Status;\r
@@ -883,9 +883,9 @@ TerminalRemoveConsoleDevVariable (
 /*++\r
 \r
   Routine Description:\r
-  \r
+\r
     Remove console device variable.\r
-    \r
+\r
   Arguments:\r
 \r
     VariableName     - A pointer to the variable name.\r
@@ -1022,7 +1022,7 @@ Returns:
   Caller is repsoncible freeing the buffer.\r
 \r
   NULL - Variable was not read\r
-  \r
+\r
 --*/\r
 {\r
   EFI_STATUS  Status;\r
index dd4a5a6b5195ad5a85411cfde48a2c254d73dfc9..aa0cced530b3046dab32e71252897bf5c3b735ee 100644 (file)
@@ -632,7 +632,7 @@ Returns:
   InitializeListHead (&mPrivateData.DataListHead);\r
   InitializeListHead (&mPrivateData.FilterDriverListHead);\r
 \r
-  EfiInitializeLock (&mPrivateData.DataLock, EFI_TPL_NOTIFY);\r
+  EfiInitializeLock (&mPrivateData.DataLock, TPL_NOTIFY);\r
 \r
   //\r
   // Make sure we get a bigger MTC number on every boot!\r
index 1a392ab7034076b6306ea2cdd72f55040862b10a..ac703fd09c7119e41b37e61c53188174399f904f 100644 (file)
@@ -1,13 +1,13 @@
 /*++\r
 \r
-Copyright (c) 2006, Intel Corporation                                                         \r
-All rights reserved. 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
+Copyright (c) 2006, Intel Corporation\r
+All rights reserved. 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
 \r
@@ -15,7 +15,7 @@ Module Name:
 \r
 Abstract:\r
 \r
-  Data Hub filter driver that takes DEBUG () info from Data Hub and writes it \r
+  Data Hub filter driver that takes DEBUG () info from Data Hub and writes it\r
   to StdErr if it exists.\r
 \r
 --*/\r
@@ -42,7 +42,7 @@ Routine Description:
 Arguments:\r
   Event    - The event that occured, not used\r
   Context  - DataHub Protocol Pointer\r
-  \r
+\r
 Returns:\r
   None.\r
 \r
@@ -119,9 +119,9 @@ Arguments:
 Returns:\r
 \r
   EFI_SUCCESS             - The event handler was registered.\r
-  EFI_OUT_OF_RESOURCES    - The event hadler was not registered due to lack of \r
+  EFI_OUT_OF_RESOURCES    - The event hadler was not registered due to lack of\r
                             system resources.\r
-  \r
+\r
 --*/\r
 {\r
   EFI_STATUS  Status;\r
@@ -137,8 +137,8 @@ Returns:
   // Create an event and register it with the filter driver\r
   //\r
   Status = gBS->CreateEvent (\r
-                  EFI_EVENT_NOTIFY_SIGNAL,\r
-                  EFI_TPL_CALLBACK,\r
+                  EVT_NOTIFY_SIGNAL,\r
+                  TPL_CALLBACK,\r
                   DataHubStdErrEventHandler,\r
                   mDataHub,\r
                   &mDataHubStdErrEvent\r
@@ -151,7 +151,7 @@ Returns:
   Status = mDataHub->RegisterFilterDriver (\r
                       mDataHub,\r
                       mDataHubStdErrEvent,\r
-                      EFI_TPL_CALLBACK,\r
+                      TPL_CALLBACK,\r
                       DataClass,\r
                       NULL\r
                       );\r
index ca2a1e83d2930082db034f5c73ebaea739dc4591..33233d68e526d254528f9d012cb7aea669cbc281 100644 (file)
@@ -285,7 +285,7 @@ Returns:
       //\r
       // else remove the previously installed handler\r
       //\r
-      OldTpl          = gBS->RaiseTPL (EFI_TPL_HIGH_LEVEL);\r
+      OldTpl          = gBS->RaiseTPL (TPL_HIGH_LEVEL);\r
       InterruptFlags  = ProgramInterruptFlags (DISABLE_INTERRUPTS);\r
       if (ExceptionType == EXCEPT_IPF_EXTERNAL_INTERRUPT) {\r
         UnchainExternalInterrupt ();\r
@@ -305,7 +305,7 @@ Returns:
     // no user handler installed on this vector\r
     //\r
     if (NewCallback != NULL) {\r
-      OldTpl          = gBS->RaiseTPL (EFI_TPL_HIGH_LEVEL);\r
+      OldTpl          = gBS->RaiseTPL (TPL_HIGH_LEVEL);\r
       InterruptFlags  = ProgramInterruptFlags (DISABLE_INTERRUPTS);\r
       if (ExceptionType == EXCEPT_IPF_EXTERNAL_INTERRUPT) {\r
         ChainExternalInterrupt (NewCallback);\r
index b42ff170560992b05d32ce7b7981334ddf1baa08..2b647d9bae3792c8a0d29b590d0f95db85bdb88f 100644 (file)
@@ -1,24 +1,24 @@
 /*++\r
 \r
-Copyright (c) 2006, Intel Corporation                                                         \r
-All rights reserved. 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
+Copyright (c) 2006, Intel Corporation\r
+All rights reserved. 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
-Module Name:  \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
 \r
   EbcInt.c\r
-  \r
+\r
 Abstract:\r
 \r
   Top level module for the EBC virtual machine implementation.\r
   Provides auxilliary support routines for the VM. That is, routines\r
   that are not particularly related to VM execution of EBC instructions.\r
-  \r
+\r
 --*/\r
 \r
 #include "EbcInt.h"\r
@@ -196,17 +196,17 @@ InitializeEbcDriver (
   )\r
 /*++\r
 \r
-Routine Description: \r
+Routine Description:\r
 \r
-  Initializes the VM EFI interface.  Allocates memory for the VM interface \r
+  Initializes the VM EFI interface.  Allocates memory for the VM interface\r
   and registers the VM protocol.\r
 \r
-Arguments:  \r
+Arguments:\r
 \r
   ImageHandle - EFI image handle.\r
   SystemTable - Pointer to the EFI system table.\r
 \r
-Returns:  \r
+Returns:\r
   Standard EFI status code.\r
 \r
 --*/\r
@@ -396,9 +396,9 @@ EbcCreateThunk (
 /*++\r
 \r
 Routine Description:\r
-  \r
+\r
   This is the top-level routine plugged into the EBC protocol. Since thunks\r
-  are very processor-specific, from here we dispatch directly to the very \r
+  are very processor-specific, from here we dispatch directly to the very\r
   processor-specific routine EbcCreateThunks().\r
 \r
 Arguments:\r
@@ -438,7 +438,7 @@ EbcDebugGetMaximumProcessorIndex (
 /*++\r
 \r
 Routine Description:\r
-  \r
+\r
   This EBC debugger protocol service is called by the debug agent\r
 \r
 Arguments:\r
@@ -446,7 +446,7 @@ Arguments:
   This              - pointer to the caller's debug support protocol interface\r
   MaxProcessorIndex - pointer to a caller allocated UINTN in which the maximum\r
                       processor index is returned.\r
-                                               \r
+\r
 Returns:\r
 \r
   Standard EFI_STATUS\r
@@ -468,10 +468,10 @@ EbcDebugRegisterPeriodicCallback (
 /*++\r
 \r
 Routine Description:\r
-  \r
+\r
   This protocol service is called by the debug agent to register a function\r
   for us to call on a periodic basis.\r
-  \r
+\r
 \r
 Arguments:\r
 \r
@@ -490,7 +490,7 @@ Returns:
   if ((mDebugPeriodicCallback != NULL) && (PeriodicCallback != NULL)) {\r
     return EFI_ALREADY_STARTED;\r
   }\r
-       \r
+\r
   mDebugPeriodicCallback = PeriodicCallback;\r
   return EFI_SUCCESS;\r
 }\r
@@ -507,10 +507,10 @@ EbcDebugRegisterExceptionCallback (
 /*++\r
 \r
 Routine Description:\r
-  \r
+\r
   This protocol service is called by the debug agent to register a function\r
   for us to call when we detect an exception.\r
-  \r
+\r
 \r
 Arguments:\r
 \r
@@ -548,12 +548,12 @@ EbcDebugInvalidateInstructionCache (
 /*++\r
 \r
 Routine Description:\r
-  \r
+\r
   This EBC debugger protocol service is called by the debug agent.  Required\r
   for DebugSupport compliance but is only stubbed out for EBC.\r
 \r
 Arguments:\r
-                                               \r
+\r
 Returns:\r
 \r
   EFI_SUCCESS\r
@@ -574,7 +574,7 @@ EbcDebugSignalException (
 Routine Description:\r
 \r
   The VM interpreter calls this function when an exception is detected.\r
-  \r
+\r
 Arguments:\r
 \r
   VmPtr - pointer to a VM context for passing info to the EFI debugger.\r
@@ -582,7 +582,7 @@ Arguments:
 Returns:\r
 \r
   EFI_SUCCESS if it returns at all\r
-  \r
+\r
 --*/\r
 {\r
   EFI_SYSTEM_CONTEXT_EBC  EbcContext;\r
@@ -641,7 +641,7 @@ Returns:
     VmPtr->Ip    = (VMIP)(UINTN)EbcContext.Ip;\r
     VmPtr->Flags = EbcContext.Flags;\r
   }\r
-  \r
+\r
   return EFI_SUCCESS;\r
 }\r
 \r
@@ -655,7 +655,7 @@ InitializeEbcCallback (
 Routine Description:\r
 \r
   To install default Callback function for the VM interpreter.\r
-  \r
+\r
 Arguments:\r
 \r
   This - pointer to the instance of DebugSupport protocol\r
@@ -663,7 +663,7 @@ Arguments:
 Returns:\r
 \r
   None\r
-  \r
+\r
 --*/\r
 {\r
   INTN       Index;\r
@@ -685,8 +685,8 @@ Returns:
   // For PeriodicCallback\r
   //\r
   Status = gBS->CreateEvent (\r
-                  EFI_EVENT_TIMER | EFI_EVENT_NOTIFY_SIGNAL,\r
-                  EFI_TPL_NOTIFY,\r
+                  EVT_TIMER | EVT_NOTIFY_SIGNAL,\r
+                  TPL_NOTIFY,\r
                   EbcPeriodicNotifyFunction,\r
                   &mVmPtr,\r
                   &mEbcPeriodicEvent\r
@@ -720,7 +720,7 @@ Routine Description:
   The default Exception Callback for the VM interpreter.\r
   In this function, we report status code, and print debug information\r
   about EBC_CONTEXT, then dead loop.\r
-  \r
+\r
 Arguments:\r
 \r
   InterruptType - Interrupt type.\r
@@ -729,7 +729,7 @@ Arguments:
 Returns:\r
 \r
   None\r
-  \r
+\r
 --*/\r
 {\r
   //\r
@@ -753,7 +753,7 @@ Routine Description:
 \r
   The periodic callback function for EBC VM interpreter, which is used\r
   to support the EFI debug support protocol.\r
-  \r
+\r
 Arguments:\r
 \r
   Event   - The Periodic Callback Event.\r
@@ -762,7 +762,7 @@ Arguments:
 Returns:\r
 \r
   None.\r
-  \r
+\r
 --*/\r
 {\r
   VM_CONTEXT *VmPtr;\r
@@ -787,7 +787,7 @@ Routine Description:
 \r
   The VM interpreter calls this function on a periodic basis to support\r
   the EFI debug support protocol.\r
-  \r
+\r
 Arguments:\r
 \r
   VmPtr - pointer to a VM context for passing info to the debugger.\r
@@ -795,12 +795,12 @@ Arguments:
 Returns:\r
 \r
   Standard EFI status.\r
-  \r
+\r
 --*/\r
 {\r
   EFI_SYSTEM_CONTEXT_EBC   EbcContext;\r
   EFI_SYSTEM_CONTEXT       SystemContext;\r
-  \r
+\r
   //\r
   // If someone's registered for periodic callbacks, then call them.\r
   //\r
@@ -838,7 +838,7 @@ Returns:
     VmPtr->Ip    = (VMIP)(UINTN)EbcContext.Ip;\r
     VmPtr->Flags = EbcContext.Flags;\r
   }\r
-  \r
+\r
   return EFI_SUCCESS;\r
 }\r
 \r
@@ -852,8 +852,8 @@ EbcUnloadImage (
 /*++\r
 \r
 Routine Description:\r
-  \r
-  This routine is called by the core when an image is being unloaded from \r
+\r
+  This routine is called by the core when an image is being unloaded from\r
   memory. Basically we now have the opportunity to do any necessary cleanup.\r
   Typically this will include freeing any memory allocated for thunk-creation.\r
 \r
@@ -931,8 +931,8 @@ EbcAddImageThunk (
 /*++\r
 \r
 Routine Description:\r
-  \r
-  Add a thunk to our list of thunks for a given image handle. \r
+\r
+  Add a thunk to our list of thunks for a given image handle.\r
   Also flush the instruction cache since we've written thunk code\r
   to memory that will be executed eventually.\r
 \r
@@ -943,7 +943,7 @@ Arguments:
   ThunkSize    - the size of the thunk memory allocated\r
 \r
 Returns:\r
\r
+\r
   EFI_OUT_OF_RESOURCES    - memory allocation failed\r
   EFI_SUCCESS             - successful completion\r
 \r
@@ -1041,7 +1041,7 @@ GetEBCStack(
 {\r
   UINTN   Index;\r
   EFI_TPL OldTpl;\r
-  OldTpl = gBS->RaiseTPL(EFI_TPL_HIGH_LEVEL);\r
+  OldTpl = gBS->RaiseTPL(TPL_HIGH_LEVEL);\r
   for (Index = 0; Index < mStackNum; Index ++) {\r
     if (mStackBufferIndex[Index] == NULL) {\r
       mStackBufferIndex[Index] = Handle;\r
@@ -1121,7 +1121,7 @@ InitEbcVmTestProtocol (
 /*++\r
 \r
 Routine Description:\r
-  \r
+\r
   Produce an EBC VM test protocol that can be used for regression tests.\r
 \r
 Arguments:\r
index 741116ae3f99cc5154ef1d9fac8684655fd92ca9..f56cf04215501fed3401edf07bca331a49798ec6 100644 (file)
@@ -824,7 +824,7 @@ Returns:
     return EFI_OUT_OF_RESOURCES;\r
   }\r
 \r
-  EfiInitializeLock(&mVariableModuleGlobal->VariableGlobal[Physical].VariableServicesLock, EFI_TPL_NOTIFY);\r
+  EfiInitializeLock(&mVariableModuleGlobal->VariableGlobal[Physical].VariableServicesLock, TPL_NOTIFY);\r
 \r
   //\r
   // Intialize volatile variable store\r
index da76b55e459807b0b84e2b5189d7d327f2dd57cb..31efab323ace8afdb975bb70a71dd3abcc40135b 100644 (file)
@@ -1,13 +1,13 @@
 /*++\r
 \r
-Copyright (c) 2006 - 2007, Intel Corporation                                                         \r
-All rights reserved. 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
+Copyright (c) 2006 - 2007, Intel Corporation\r
+All rights reserved. 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
 \r
@@ -84,7 +84,7 @@ Returns:
   //\r
   // Update the monotonic counter with a lock\r
   //\r
-  OldTpl  = gBS->RaiseTPL (EFI_TPL_HIGH_LEVEL);\r
+  OldTpl  = gBS->RaiseTPL (TPL_HIGH_LEVEL);\r
   *Count  = mEfiMtc;\r
   mEfiMtc++;\r
   gBS->RestoreTPL (OldTpl);\r
@@ -104,22 +104,22 @@ Returns:
 /**\r
   Returns the next high 32 bits of the platform's monotonic counter.\r
 \r
-  The GetNextHighMonotonicCount() function returns the next high 32 bits \r
-  of the platform's monotonic counter. The platform's monotonic counter is \r
-  comprised of two 32 bit quantities:  the high 32 bits and the low 32 bits.  \r
-  During boot service time the low 32 bit value is volatile:  it is reset to \r
+  The GetNextHighMonotonicCount() function returns the next high 32 bits\r
+  of the platform's monotonic counter. The platform's monotonic counter is\r
+  comprised of two 32 bit quantities:  the high 32 bits and the low 32 bits.\r
+  During boot service time the low 32 bit value is volatile:  it is reset to\r
   zero on every system reset and is increased by 1 on every call to GetNextMonotonicCount().\r
-  The high 32 bit value is non-volatile and is increased by 1 whenever the system resets \r
+  The high 32 bit value is non-volatile and is increased by 1 whenever the system resets\r
   or whenever the low 32 bit count [returned by GetNextMonoticCount()] overflows.\r
-  The GetNextMonotonicCount() function is only available at boot services time.  \r
-  If the operating system wishes to extend the platform monotonic counter to runtime, \r
-  it may do so by utilizing GetNextHighMonotonicCount().  To do this, before calling \r
-  ExitBootServices() the operating system would call GetNextMonotonicCount() to obtain \r
-  the current platform monotonic count.  The operating system would then provide an \r
-  interface that returns the next count by:  \r
+  The GetNextMonotonicCount() function is only available at boot services time.\r
+  If the operating system wishes to extend the platform monotonic counter to runtime,\r
+  it may do so by utilizing GetNextHighMonotonicCount().  To do this, before calling\r
+  ExitBootServices() the operating system would call GetNextMonotonicCount() to obtain\r
+  the current platform monotonic count.  The operating system would then provide an\r
+  interface that returns the next count by:\r
     Adding 1 to the last count.\r
-    Before the lower 32 bits of the count overflows, call GetNextHighMonotonicCount().  \r
-    This will increase the high 32 bits of the platform's non-volatile portion of the monotonic \r
+    Before the lower 32 bits of the count overflows, call GetNextHighMonotonicCount().\r
+    This will increase the high 32 bits of the platform's non-volatile portion of the monotonic\r
     count by 1.\r
 \r
   This function may only be called at Runtime.\r
@@ -128,7 +128,7 @@ Returns:
 \r
   @retval EFI_INVALID_PARAMETER If HighCount is NULL.\r
   @retval EFI_SUCCESS           Operation is successful.\r
-  @retval EFI_OUT_OF_RESOURCES  If variable service reports that not enough storage \r
+  @retval EFI_OUT_OF_RESOURCES  If variable service reports that not enough storage\r
                                 is available to hold the variable and its data.\r
   @retval EFI_DEVICE_ERROR      The variable could not be saved due to a hardware failure.\r
 \r
@@ -162,7 +162,7 @@ Returns:
     //\r
     // Use a lock if called before ExitBootServices()\r
     //\r
-    OldTpl      = gBS->RaiseTPL (EFI_TPL_HIGH_LEVEL);\r
+    OldTpl      = gBS->RaiseTPL (TPL_HIGH_LEVEL);\r
     *HighCount  = (UINT32) RShiftU64 (mEfiMtc, 32) + 1;\r
     mEfiMtc     = LShiftU64 (*HighCount, 32);\r
     gBS->RestoreTPL (OldTpl);\r
@@ -203,7 +203,7 @@ Arguments:
 \r
 Returns:\r
 \r
-  EFI_SUCCESS       The event has been handled properly \r
+  EFI_SUCCESS       The event has been handled properly\r
   EFI_NOT_FOUND     An error occurred updating the variable.\r
 \r
 --*/\r
@@ -243,8 +243,8 @@ Returns:
   // Initialize event to handle overflows\r
   //\r
   Status = gBS->CreateEvent (\r
-                  EFI_EVENT_NOTIFY_SIGNAL,\r
-                  EFI_TPL_CALLBACK,\r
+                  EVT_NOTIFY_SIGNAL,\r
+                  TPL_CALLBACK,\r
                   EfiMtcEventHandler,\r
                   NULL,\r
                   &mEfiMtcEvent\r
index 251690205a91873b879919f6b9a028d654dd0e6c..0eceddf26100424f8e1820d654d035207ff7e969 100644 (file)
@@ -417,8 +417,8 @@ WaitForReceive (
   // Create callback event and set timer\r
   //\r
   StatCode = gBS->CreateEvent (\r
-                    EFI_EVENT_TIMER,\r
-                    EFI_TPL_CALLBACK,\r
+                    EVT_TIMER,\r
+                    TPL_CALLBACK,\r
                     NULL,\r
                     NULL,\r
                     &CallbackEvent\r
@@ -622,8 +622,8 @@ SendPacket (
   // headersize should be zero if not filled in\r
   //\r
   StatCode = gBS->CreateEvent (\r
-                    EFI_EVENT_TIMER,\r
-                    EFI_TPL_CALLBACK,\r
+                    EVT_TIMER,\r
+                    TPL_CALLBACK,\r
                     NULL,\r
                     NULL,\r
                     &TimeoutEvent\r
@@ -695,8 +695,8 @@ SendPacket (
   // immediately\r
   //\r
   StatCode = gBS->CreateEvent (\r
-                    EFI_EVENT_TIMER,\r
-                    EFI_TPL_CALLBACK,\r
+                    EVT_TIMER,\r
+                    TPL_CALLBACK,\r
                     NULL,\r
                     NULL,\r
                     &TimeoutEvent\r
@@ -2009,7 +2009,7 @@ BcSetStationIP (
     StationIpPtr = &PxebcMode->StationIp;\r
   }\r
 \r
-  if (!IS_INADDR_UNICAST (StationIpPtr) || \r
+  if (!IS_INADDR_UNICAST (StationIpPtr) ||\r
       ((StationIpPtr->Addr[0] | SubnetMask) == BROADCAST_IPv4)) {\r
     //\r
     // The station IP is not a unicast address.\r
@@ -2159,10 +2159,10 @@ PxeBcDriverStart (
   //\r
   // Lock access, just in case\r
   //\r
-  EfiInitializeLock (&Private->Lock, EFI_TPL_CALLBACK);\r
+  EfiInitializeLock (&Private->Lock, TPL_CALLBACK);\r
   EfiAcquireLock (&Private->Lock);\r
 \r
-  EfiInitializeLock (&pLF->Lock, EFI_TPL_CALLBACK);\r
+  EfiInitializeLock (&pLF->Lock, TPL_CALLBACK);\r
   EfiAcquireLock (&pLF->Lock);\r
 \r
   //\r
index b7edbe69a87a6fdcd6f5f0c03273958d72132e04..747d243f1f0d7e36d7b67f6cdf52b7ad16099e28 100644 (file)
@@ -1,13 +1,13 @@
 /*++\r
 \r
-Copyright (c) 2006 - 2007, Intel Corporation                                                         \r
-All rights reserved. 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
+Copyright (c) 2006 - 2007, Intel Corporation\r
+All rights reserved. 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
   pxe_bc_arp.c\r
@@ -405,7 +405,7 @@ Returns:
 // not how it would be done in a full system\r
 //\r
 #define ARP_REQUEST_TIMEOUT_MS  500 // try for half a second\r
-  \r
+\r
   ////////////////////////////////////////////////////////////\r
 //\r
 //  BC Arp Routine\r
@@ -543,8 +543,8 @@ Returns:
   //\r
   //\r
   StatCode = gBS->CreateEvent (\r
-                    EFI_EVENT_TIMER,\r
-                    EFI_TPL_CALLBACK,\r
+                    EVT_TIMER,\r
+                    TPL_CALLBACK,\r
                     NULL,\r
                     NULL,\r
                     &TimeoutEvent\r
index a1f4715cd04ecb0ff419bb7e99635f76e270285f..b557f4cae3abc1c3edd2f90f7b41999727785454 100644 (file)
@@ -587,8 +587,8 @@ SetStationIP (
   }\r
 \r
   EfiStatus = gBS->CreateEvent (\r
-                    EFI_EVENT_TIMER,\r
-                    EFI_TPL_CALLBACK,\r
+                    EVT_TIMER,\r
+                    TPL_CALLBACK,\r
                     NULL,\r
                     NULL,\r
                     &Private->Igmpv1TimeoutEvent\r
@@ -1283,8 +1283,8 @@ GetOffers (
   //\r
   Private->GotProxy[DHCP_ONLY_IX] = 1;\r
   StatCode = gBS->CreateEvent (\r
-                    EFI_EVENT_TIMER,\r
-                    EFI_TPL_CALLBACK,\r
+                    EVT_TIMER,\r
+                    TPL_CALLBACK,\r
                     NULL,\r
                     NULL,\r
                     &TimeoutEvent\r
@@ -1522,8 +1522,8 @@ GetBINLAck (
   //\r
   //\r
   StatCode = gBS->CreateEvent (\r
-                    EFI_EVENT_TIMER,\r
-                    EFI_TPL_CALLBACK,\r
+                    EVT_TIMER,\r
+                    TPL_CALLBACK,\r
                     NULL,\r
                     NULL,\r
                     &TimeoutEvent\r
@@ -1770,8 +1770,8 @@ TryFinishDORA (
   //\r
   //\r
   StatCode = gBS->CreateEvent (\r
-                    EFI_EVENT_TIMER,\r
-                    EFI_TPL_CALLBACK,\r
+                    EVT_TIMER,\r
+                    TPL_CALLBACK,\r
                     NULL,\r
                     NULL,\r
                     &TimeoutEvent\r
@@ -2599,8 +2599,8 @@ Returns:
     //\r
     //\r
     StatCode = gBS->CreateEvent (\r
-                      EFI_EVENT_TIMER,\r
-                      EFI_TPL_CALLBACK,\r
+                      EVT_TIMER,\r
+                      TPL_CALLBACK,\r
                       NULL,\r
                       NULL,\r
                       &TimeoutEvent\r
index 83ca20b292b236a2c9d944d15e9b4c72f35621d6..22dcf25524eff886dc47352209f9c5dec95fa7a2 100644 (file)
@@ -83,8 +83,8 @@ Returns:
   }\r
 \r
   EfiStatus = gBS->CreateEvent (\r
-                    EFI_EVENT_TIMER,\r
-                    EFI_TPL_CALLBACK,\r
+                    EVT_TIMER,\r
+                    TPL_CALLBACK,\r
                     NULL,\r
                     NULL,\r
                     &Private->IgmpGroupEvent[TimerId]\r
@@ -405,8 +405,8 @@ Returns:
       }\r
 \r
       EfiStatus = gBS->CreateEvent (\r
-                        EFI_EVENT_TIMER,\r
-                        EFI_TPL_CALLBACK,\r
+                        EVT_TIMER,\r
+                        TPL_CALLBACK,\r
                         NULL,\r
                         NULL,\r
                         &Private->Igmpv1TimeoutEvent\r
index 941076aed027eadbed4e60743f56e8bae7ca8903..e2afbffa89bfcd1046a0e9a1306f53aaeca1af2c 100644 (file)
@@ -117,8 +117,8 @@ Returns:
   //\r
   //\r
   Status = gBS->CreateEvent (\r
-                  EFI_EVENT_TIMER,\r
-                  EFI_TPL_CALLBACK,\r
+                  EVT_TIMER,\r
+                  TPL_CALLBACK,\r
                   NULL,\r
                   NULL,\r
                   &TimeoutEvent\r
index 85bb8bb2bf5ec1733fd0eb92d011c36c215aeb58..20ae95d981f4d38ff7c5b9f74c6c5ea8e23ca14f 100644 (file)
@@ -1,17 +1,17 @@
 /*++\r
 \r
-Copyright (c) 2006 - 2007, Intel Corporation                                                         \r
-All rights reserved. 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
+Copyright (c) 2006 - 2007, Intel Corporation\r
+All rights reserved. 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
   pxe_loadfile.c\r
-  \r
+\r
 Abstract:\r
   An implementation of the load file protocol for network devices.\r
 \r
@@ -65,9 +65,9 @@ Arguments:
 \r
 Returns:\r
 \r
-  EFI_PXE_BASE_CODE_CALLBACK_STATUS_CONTINUE - \r
+  EFI_PXE_BASE_CODE_CALLBACK_STATUS_CONTINUE -\r
   EFI_PXE_BASE_CODE_CALLBACK_STATUS_ABORT -\r
-  \r
+\r
 --*/\r
 {\r
   STATIC UINTN  Propeller;\r
@@ -173,7 +173,7 @@ Arguments:
 Returns:\r
 \r
   None\r
-  \r
+\r
 --*/\r
 {\r
   if (Ptr != NULL) {\r
@@ -199,7 +199,7 @@ Arguments:
 Returns:\r
 \r
   None\r
-  \r
+\r
 --*/\r
 {\r
   EFI_PXE_BASE_CODE_MODE  *PxeBcMode;\r
@@ -276,11 +276,11 @@ Arguments:
 \r
 Returns:\r
 \r
-  AUTO_SELECT - \r
+  AUTO_SELECT -\r
   DO_MENU -\r
-  NO_MENU - \r
-  LOCAL_BOOT - \r
-  \r
+  NO_MENU -\r
+  LOCAL_BOOT -\r
+\r
 --*/\r
 {\r
   EFI_STATUS  Status;\r
@@ -307,8 +307,8 @@ Returns:
   //\r
   //\r
   Status = gBS->CreateEvent (\r
-                  EFI_EVENT_TIMER,\r
-                  EFI_TPL_CALLBACK,\r
+                  EVT_TIMER,\r
+                  TPL_CALLBACK,\r
                   NULL,\r
                   NULL,\r
                   &TimeoutEvent\r
@@ -332,8 +332,8 @@ Returns:
   //\r
   //\r
   Status = gBS->CreateEvent (\r
-                  EFI_EVENT_TIMER,\r
-                  EFI_TPL_CALLBACK,\r
+                  EVT_TIMER,\r
+                  TPL_CALLBACK,\r
                   NULL,\r
                   NULL,\r
                   &SecondsEvent\r
@@ -375,7 +375,7 @@ Returns:
 \r
   gST->ConOut->SetCursorPosition (gST->ConOut, SecColumn, SecRow);\r
   AsciiPrint ("(%d) ", SecsLeft);\r
-  \r
+\r
   //\r
   // set the default action to be AUTO_SELECT\r
   //\r
@@ -507,9 +507,9 @@ Arguments:
 \r
 Returns:\r
 \r
-  NO_MENU - \r
-  LOCAL_BOOT - \r
-  \r
+  NO_MENU -\r
+  LOCAL_BOOT -\r
+\r
 --*/\r
 {\r
   PXE_OP_DISCOVERY_CONTROL  *DiscoveryControlPtr;\r
@@ -804,7 +804,7 @@ Arguments:
 Returns:\r
 \r
   Value from DHCP option\r
-  \r
+\r
 --*/\r
 {\r
   if (OpPtr->Header.Length == 1) {\r
@@ -836,7 +836,7 @@ Arguments:
 Returns:\r
 \r
   Pointer to opcode, may be NULL\r
-  \r
+\r
 --*/\r
 {\r
   if (BufferPtr == NULL) {\r
@@ -889,7 +889,7 @@ Arguments:
 Returns:\r
 \r
   Pointer to option in packet\r
-  \r
+\r
 --*/\r
 {\r
   UINTN PacketLen;\r
@@ -1234,9 +1234,9 @@ Arguments:
 \r
 Returns:\r
 \r
-  EFI_SUCCESS - \r
-  EFI_NOT_READY - \r
-  \r
+  EFI_SUCCESS -\r
+  EFI_NOT_READY -\r
+\r
 --*/\r
 {\r
   EFI_PXE_BASE_CODE_MODE      *PxeBcMode;\r
@@ -1363,7 +1363,7 @@ Arguments:
   This -  Pointer to Loadfile interface\r
   FilePath - Not used and not checked\r
   BootPolicy - Must be TRUE\r
-  BufferSize - Pointer to buffer size \r
+  BufferSize - Pointer to buffer size\r
   Buffer - Pointer to download buffer or NULL\r
 \r
 Returns:\r
index 503d5a6038f8c4be8bb142b98f054201725fde42..b6667ca4edf7326e4c96354001c0e28a9d43eb65 100644 (file)
@@ -558,8 +558,8 @@ Returns:
   // Setup timeout event and start timer.\r
   //\r
   efi_status = gBS->CreateEvent (\r
-                      EFI_EVENT_TIMER | EFI_EVENT_NOTIFY_SIGNAL,\r
-                      EFI_TPL_NOTIFY,\r
+                      EVT_TIMER | EVT_NOTIFY_SIGNAL,\r
+                      TPL_NOTIFY,\r
                       &timeout_notify,\r
                       Private,\r
                       &Private->TimeoutEvent\r
@@ -588,8 +588,8 @@ Returns:
   // Setup periodic event for callbacks\r
   //\r
   efi_status = gBS->CreateEvent (\r
-                      EFI_EVENT_TIMER | EFI_EVENT_NOTIFY_SIGNAL,\r
-                      EFI_TPL_NOTIFY,\r
+                      EVT_TIMER | EVT_NOTIFY_SIGNAL,\r
+                      TPL_NOTIFY,\r
                       &periodic_notify,\r
                       Private,\r
                       &Private->PeriodicEvent\r
index 2821e650f0463471d7d252730d44617bcbbca5c9..6f6ac81d5998a9100d13e6ef867d72cec305831c 100644 (file)
@@ -112,7 +112,7 @@ Returns:
   // created at a lower level (TPL_CALLBACK) it gives an assert!\r
   //\r
   if (mInitializeLock) {\r
-    EfiInitializeLock (&mLock, EFI_TPL_NOTIFY);\r
+    EfiInitializeLock (&mLock, TPL_NOTIFY);\r
     mInitializeLock = FALSE;\r
   }\r
 \r
index 80e6033ff76f565eae1462e74c1815acb1797364..9e0ecca7090f008741c6996649d1b6b6ec3c3027 100644 (file)
@@ -1,12 +1,12 @@
 /*++\r
-Copyright (c) 2006, Intel Corporation                                                         \r
-All rights reserved. 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
+Copyright (c) 2006, Intel Corporation\r
+All rights reserved. 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
   initialize.c\r
@@ -190,8 +190,8 @@ Returns:
   //\r
   //\r
   EfiStatus = gBS->CreateEvent (\r
-                    EFI_EVENT_NOTIFY_WAIT,\r
-                    EFI_TPL_NOTIFY,\r
+                    EVT_NOTIFY_WAIT,\r
+                    TPL_NOTIFY,\r
                     &SnpWaitForPacketNotify,\r
                     snp,\r
                     &snp->snp.WaitForPacket\r
index a32812a01a6b0c5a318a5e3aa4c192241a5f5c8c..4b8d6f8107e75204321397f132a988998a9cf8cd 100644 (file)
@@ -453,7 +453,7 @@ Arguments:
 \r
   snp->Signature  = SNP_DRIVER_SIGNATURE;\r
 \r
-  EfiInitializeLock (&snp->lock, EFI_TPL_NOTIFY);\r
+  EfiInitializeLock (&snp->lock, TPL_NOTIFY);\r
 \r
   snp->snp.Revision       = EFI_SIMPLE_NETWORK_PROTOCOL_REVISION;\r
   snp->snp.Start          = snp_undi32_start;\r
index 2fd9cab52398ca4b3f1b5f97503c6ff12a611979..01a26bb0bf5ed957ae4a064b3a0fb8b5d8c3b414 100644 (file)
@@ -17,7 +17,7 @@ Module Name: Pcd.c
 \r
 #include "Service.h"\r
 \r
-EFI_LOCK mPcdDatabaseLock = EFI_INITIALIZE_LOCK_VARIABLE(EFI_TPL_CALLBACK);\r
+EFI_LOCK mPcdDatabaseLock = EFI_INITIALIZE_LOCK_VARIABLE(TPL_CALLBACK);\r
 \r
 PCD_PROTOCOL mPcdInstance = {\r
   DxePcdSetSku,\r
index 17cafea187bd3878927721edd1b843bed22bb7d0..f8c4cb0e3e7b742d8571cc2ff34c55cd89ed648f 100644 (file)
@@ -342,7 +342,7 @@ Returns:
   //\r
   for (Link = mRuntime.EventHead.ForwardLink; Link != &mRuntime.EventHead; Link = Link->ForwardLink) {\r
     RuntimeEvent = _CR (Link, EFI_RUNTIME_EVENT_ENTRY, Link);\r
-    if ((RuntimeEvent->Type & EFI_EVENT_SIGNAL_VIRTUAL_ADDRESS_CHANGE) == EFI_EVENT_SIGNAL_VIRTUAL_ADDRESS_CHANGE) {\r
+    if ((RuntimeEvent->Type & EVT_SIGNAL_VIRTUAL_ADDRESS_CHANGE) == EVT_SIGNAL_VIRTUAL_ADDRESS_CHANGE) {\r
       RuntimeEvent->NotifyFunction (\r
                       RuntimeEvent->Event,\r
                       RuntimeEvent->NotifyContext\r
index 85e552bac0433924fd5cb39db6de3b21f5670905..72d699df44ba4f01701cc462c7637e0d1864c475 100644 (file)
@@ -1,14 +1,14 @@
 /** @file\r
   Data Hub status code worker in DXE.\r
 \r
-  Copyright (c) 2006, Intel Corporation                                                         \r
-  All rights reserved. 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
+  Copyright (c) 2006, Intel Corporation\r
+  All rights reserved. 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:  DataHubStatusCodeWorker.c\r
 \r
@@ -33,9 +33,9 @@ EFI_DATA_HUB_PROTOCOL     *mDataHubProtocol;
 \r
 /**\r
   Return one DATAHUB_STATUSCODE_RECORD space.\r
-  The size of free record pool would be extend, if the pool is empty. \r
+  The size of free record pool would be extend, if the pool is empty.\r
+\r
 \r
\r
   @retval  NULL   Can not allocate free memeory for record.\r
   @retval  !NULL  Point to buffer of record.\r
 \r
@@ -51,7 +51,7 @@ AcquireRecordBuffer (
   LIST_ENTRY                *Node;\r
   UINT32                    Index;\r
 \r
-  CurrentTpl = gBS->RaiseTPL (EFI_TPL_HIGH_LEVEL);\r
+  CurrentTpl = gBS->RaiseTPL (TPL_HIGH_LEVEL);\r
 \r
   if (!IsListEmpty (&mRecordsBuffer)) {\r
     Node = GetFirstNode (&mRecordsBuffer);\r
@@ -59,7 +59,7 @@ AcquireRecordBuffer (
 \r
     Record = _CR (Node, DATAHUB_STATUSCODE_RECORD, Node);\r
   } else {\r
-    if (CurrentTpl > EFI_TPL_NOTIFY) {\r
+    if (CurrentTpl > TPL_NOTIFY) {\r
       gBS->RestoreTPL (CurrentTpl);\r
       return NULL;\r
     }\r
@@ -70,7 +70,7 @@ AcquireRecordBuffer (
       return NULL;\r
     }\r
 \r
-    CurrentTpl = gBS->RaiseTPL (EFI_TPL_HIGH_LEVEL);\r
+    CurrentTpl = gBS->RaiseTPL (TPL_HIGH_LEVEL);\r
     for (Index = 1; Index < 16; Index++) {\r
       InsertTailList (&mRecordsBuffer, &Record[Index].Node);\r
     }\r
@@ -86,12 +86,12 @@ AcquireRecordBuffer (
 \r
 \r
 /**\r
-  Retrieve one record from Records FIFO. The record would be removed from FIFO and \r
+  Retrieve one record from Records FIFO. The record would be removed from FIFO and\r
   release to free record buffer.\r
 \r
   @return   !NULL   Point to record, which is ready to be logged.\r
   @return   NULL    the FIFO of record is empty.\r
\r
+\r
 **/\r
 STATIC\r
 DATAHUB_STATUSCODE_RECORD *\r
@@ -103,7 +103,7 @@ RetrieveRecord (
   LIST_ENTRY                  *Node;\r
   EFI_TPL                     CurrentTpl;\r
 \r
-  CurrentTpl = gBS->RaiseTPL (EFI_TPL_HIGH_LEVEL);\r
+  CurrentTpl = gBS->RaiseTPL (TPL_HIGH_LEVEL);\r
 \r
   if (!IsListEmpty (&mRecordsFifo)) {\r
     Node = GetFirstNode (&mRecordsFifo);\r
@@ -122,29 +122,29 @@ RetrieveRecord (
 \r
 /**\r
   Report status code into DataHub.\r
\r
+\r
   @param  CodeType      Indicates the type of status code being reported.  Type EFI_STATUS_CODE_TYPE is defined in "Related Definitions" below.\r
\r
-  @param  Value         Describes the current status of a hardware or software entity.  \r
-                        This included information about the class and subclass that is used to classify the entity \r
-                        as well as an operation.  For progress codes, the operation is the current activity. \r
-                        For error codes, it is the exception.  For debug codes, it is not defined at this time. \r
-                        Type EFI_STATUS_CODE_VALUE is defined in "Related Definitions" below.  \r
+\r
+  @param  Value         Describes the current status of a hardware or software entity.\r
+                        This included information about the class and subclass that is used to classify the entity\r
+                        as well as an operation.  For progress codes, the operation is the current activity.\r
+                        For error codes, it is the exception.  For debug codes, it is not defined at this time.\r
+                        Type EFI_STATUS_CODE_VALUE is defined in "Related Definitions" below.\r
                         Specific values are discussed in the Intel? Platform Innovation Framework for EFI Status Code Specification.\r
\r
-  @param  Instance      The enumeration of a hardware or software entity within the system.  \r
-                        A system may contain multiple entities that match a class/subclass pairing. \r
-                        The instance differentiates between them.  An instance of 0 indicates that instance information is unavailable, \r
+\r
+  @param  Instance      The enumeration of a hardware or software entity within the system.\r
+                        A system may contain multiple entities that match a class/subclass pairing.\r
+                        The instance differentiates between them.  An instance of 0 indicates that instance information is unavailable,\r
                         not meaningful, or not relevant.  Valid instance numbers start with 1.\r
 \r
 \r
-  @param  CallerId      This optional parameter may be used to identify the caller. \r
-                        This parameter allows the status code driver to apply different rules to different callers. \r
+  @param  CallerId      This optional parameter may be used to identify the caller.\r
+                        This parameter allows the status code driver to apply different rules to different callers.\r
                         Type EFI_GUID is defined in InstallProtocolInterface() in the EFI 1.10 Specification.\r
 \r
 \r
   @param  Data          This optional parameter may be used to pass additional data\r
\r
+\r
   @retval EFI_OUT_OF_RESOURCES   Can not acquire record buffer.\r
   @retval EFI_DEVICE_ERROR       EFI serial device can not work after ExitBootService() is called .\r
   @retval EFI_SUCCESS            Success to cache status code and signal log data event.\r
@@ -212,7 +212,7 @@ DataHubStatusCodeReportWorker (
 \r
       if (Data->Size > EFI_STATUS_CODE_DATA_MAX_SIZE) {\r
         Record->Data.Size = EFI_STATUS_CODE_DATA_MAX_SIZE;\r
-      } \r
+      }\r
       CopyMem (Record->ExtendData, Data + 1, Record->Data.Size);\r
     }\r
   }\r
@@ -276,7 +276,7 @@ LogDataHubEventCallBack (
     //\r
     // Log DataRecord in Data Hub\r
     //\r
-    \r
+\r
     mDataHubProtocol->LogData (\r
                         mDataHubProtocol,\r
                         &gEfiStatusCodeGuid,\r
@@ -293,7 +293,7 @@ LogDataHubEventCallBack (
 /**\r
   Initialize data hubstatus code.\r
   Create a data hub listener.\r
\r
+\r
   @return  The function always return EFI_SUCCESS\r
 \r
 **/\r
@@ -315,8 +315,8 @@ DataHubStatusCodeInitializeWorker (
   // Create a Notify Event to log data in Data Hub\r
   //\r
   Status = gBS->CreateEvent (\r
-                  EFI_EVENT_NOTIFY_SIGNAL,\r
-                  EFI_TPL_CALLBACK,\r
+                  EVT_NOTIFY_SIGNAL,\r
+                  TPL_CALLBACK,\r
                   LogDataHubEventCallBack,\r
                   NULL,\r
                   &mLogDataHubEvent\r
index a9dff1defdb761592738c82d8c1e9ce02d4fcae7..ed9fd5980ff71bc66198945dc95aa1b9295d3d13 100644 (file)
@@ -99,10 +99,10 @@ SerialStatusCodeReportWorker (
     if (EfiAtRuntime ()) {\r
       return EFI_DEVICE_ERROR;\r
     }\r
-    CurrentTpl = gBS->RaiseTPL (EFI_TPL_HIGH_LEVEL);\r
+    CurrentTpl = gBS->RaiseTPL (TPL_HIGH_LEVEL);\r
     gBS->RestoreTPL (CurrentTpl);\r
 \r
-    if (CurrentTpl > EFI_TPL_CALLBACK ) {\r
+    if (CurrentTpl > TPL_CALLBACK ) {\r
       return EFI_DEVICE_ERROR;\r
     }\r
   }\r
index 40bd826023612da0a4d4d0c3108f9b7bdd2ab5ae..3d30c1bd2def0396919ddb2e124467b01d9e95c8 100644 (file)
@@ -291,7 +291,7 @@ Returns:
     //\r
     // Create a timer event\r
     //\r
-    Status = gBS->CreateEvent (EFI_EVENT_TIMER, 0, NULL, NULL, &TimerEvent);\r
+    Status = gBS->CreateEvent (EVT_TIMER, 0, NULL, NULL, &TimerEvent);\r
     if (!EFI_ERROR (Status)) {\r
       //\r
       // Set the timer event\r
@@ -324,7 +324,7 @@ Returns:
     Timeout = ONE_SECOND;\r
 \r
     do {\r
-      Status = gBS->CreateEvent (EFI_EVENT_TIMER, 0, NULL, NULL, &TimerEvent);\r
+      Status = gBS->CreateEvent (EVT_TIMER, 0, NULL, NULL, &TimerEvent);\r
 \r
       //\r
       // Set the timer event\r
index 589217a992c3a88e28ce9b362159b994e9485f9e..79c23ce7b32cbca8ded678ab3fecbbbd453a6b90 100644 (file)
@@ -1309,7 +1309,7 @@ Returns:
     return EFI_OUT_OF_RESOURCES;\r
   }\r
 \r
-  EfiInitializeLock(&mVariableModuleGlobal->VariableGlobal[Physical].VariableServicesLock, EFI_TPL_NOTIFY);\r
+  EfiInitializeLock(&mVariableModuleGlobal->VariableGlobal[Physical].VariableServicesLock, TPL_NOTIFY);\r
 \r
   //\r
   // Allocate memory for volatile variable store\r
index 2f8866711d61555080d6f34273bcc0a2405865c9..e38def3b05c84f8e04bc8d026dbf37778a19c2b6 100644 (file)
@@ -1,13 +1,13 @@
 /*++\r
 \r
-Copyright (c) 2006, Intel Corporation                                                         \r
-All rights reserved. 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
+Copyright (c) 2006, Intel Corporation\r
+All rights reserved. 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
 \r
@@ -66,15 +66,15 @@ WatchdogTimerDriverExpires (
 \r
   Routine Description:\r
 \r
-    Notification function that is called if the watchdog timer is fired.  If a \r
+    Notification function that is called if the watchdog timer is fired.  If a\r
     handler has been registered with the Watchdog Timer Architectural Protocol,\r
     then that handler is called passing in the time period that has passed that\r
-    cause the watchdog timer to fire.  Then, a call to the Runtime Service \r
+    cause the watchdog timer to fire.  Then, a call to the Runtime Service\r
     ResetSystem() is made to reset the platform.\r
-    \r
+\r
   Arguments:\r
 \r
-    Timer   - The one-shot timer event that was signaled when the watchdog timer \r
+    Timer   - The one-shot timer event that was signaled when the watchdog timer\r
               expired.\r
 \r
     Context - The context that was registered when the event Timer was created.\r
@@ -115,15 +115,15 @@ WatchdogTimerDriverRegisterHandler (
 \r
 Routine Description:\r
 \r
-  This function registers a handler that is to be invoked when the watchdog \r
-  timer fires.  By default, the EFI_WATCHDOG_TIMER protocol will call the \r
-  Runtime Service ResetSystem() when the watchdog timer fires.  If a \r
-  NotifyFunction is registered, then the NotifyFunction will be called before \r
-  the Runtime Service ResetSystem() is called.  If NotifyFunction is NULL, then \r
-  the watchdog handler is unregistered.  If a watchdog handler is registered, \r
-  then EFI_SUCCESS is returned.  If an attempt is made to register a handler \r
-  when a handler is already registered, then EFI_ALREADY_STARTED is returned.  \r
-  If an attempt is made to uninstall a handler when a handler is not installed, \r
+  This function registers a handler that is to be invoked when the watchdog\r
+  timer fires.  By default, the EFI_WATCHDOG_TIMER protocol will call the\r
+  Runtime Service ResetSystem() when the watchdog timer fires.  If a\r
+  NotifyFunction is registered, then the NotifyFunction will be called before\r
+  the Runtime Service ResetSystem() is called.  If NotifyFunction is NULL, then\r
+  the watchdog handler is unregistered.  If a watchdog handler is registered,\r
+  then EFI_SUCCESS is returned.  If an attempt is made to register a handler\r
+  when a handler is already registered, then EFI_ALREADY_STARTED is returned.\r
+  If an attempt is made to uninstall a handler when a handler is not installed,\r
   then return EFI_INVALID_PARAMETER.\r
 \r
 Arguments:\r
@@ -133,15 +133,15 @@ Arguments:
   NotifyFunction - The function to call when the watchdog timer fires.  If this\r
                    is NULL, then the handler will be unregistered.\r
 \r
-Returns: \r
+Returns:\r
 \r
-  EFI_SUCCESS           - The watchdog timer handler was registered or \r
+  EFI_SUCCESS           - The watchdog timer handler was registered or\r
                           unregistered.\r
 \r
-  EFI_ALREADY_STARTED   - NotifyFunction is not NULL, and a handler is already \r
+  EFI_ALREADY_STARTED   - NotifyFunction is not NULL, and a handler is already\r
                           registered.\r
 \r
-  EFI_INVALID_PARAMETER - NotifyFunction is NULL, and a handler was not \r
+  EFI_INVALID_PARAMETER - NotifyFunction is NULL, and a handler was not\r
                           previously registered.\r
 \r
 --*/\r
@@ -169,24 +169,24 @@ WatchdogTimerDriverSetTimerPeriod (
 \r
 Routine Description:\r
 \r
-  This function sets the amount of time to wait before firing the watchdog \r
-  timer to TimerPeriod 100 nS units.  If TimerPeriod is 0, then the watchdog \r
+  This function sets the amount of time to wait before firing the watchdog\r
+  timer to TimerPeriod 100 nS units.  If TimerPeriod is 0, then the watchdog\r
   timer is disabled.\r
 \r
 Arguments:\r
 \r
   This        - The EFI_WATCHDOG_TIMER_ARCH_PROTOCOL instance.\r
 \r
-  TimerPeriod - The amount of time in 100 nS units to wait before the watchdog \r
-                timer is fired.  If TimerPeriod is zero, then the watchdog \r
+  TimerPeriod - The amount of time in 100 nS units to wait before the watchdog\r
+                timer is fired.  If TimerPeriod is zero, then the watchdog\r
                 timer is disabled.\r
-  \r
-Returns: \r
 \r
-  EFI_SUCCESS      - The watchdog timer has been programmed to fire in Time \r
+Returns:\r
+\r
+  EFI_SUCCESS      - The watchdog timer has been programmed to fire in Time\r
                      100 nS units.\r
 \r
-  EFI_DEVICE_ERROR - A watchdog timer could not be programmed due to a device \r
+  EFI_DEVICE_ERROR - A watchdog timer could not be programmed due to a device\r
                      error.\r
 \r
 --*/\r
@@ -210,21 +210,21 @@ WatchdogTimerDriverGetTimerPeriod (
 \r
 Routine Description:\r
 \r
-  This function retrieves the amount of time the system will wait before firing \r
-  the watchdog timer.  This period is returned in TimerPeriod, and EFI_SUCCESS \r
+  This function retrieves the amount of time the system will wait before firing\r
+  the watchdog timer.  This period is returned in TimerPeriod, and EFI_SUCCESS\r
   is returned.  If TimerPeriod is NULL, then EFI_INVALID_PARAMETER is returned.\r
 \r
 Arguments:\r
 \r
   This        - The EFI_WATCHDOG_TIMER_ARCH_PROTOCOL instance.\r
 \r
-  TimerPeriod - A pointer to the amount of time in 100 nS units that the system \r
+  TimerPeriod - A pointer to the amount of time in 100 nS units that the system\r
                 will wait before the watchdog timer is fired.  If TimerPeriod of\r
                 zero is returned, then the watchdog timer is disabled.\r
-  \r
-Returns: \r
 \r
-  EFI_SUCCESS           - The amount of time that the system will wait before \r
+Returns:\r
+\r
+  EFI_SUCCESS           - The amount of time that the system will wait before\r
                           firing the watchdog timer was returned in TimerPeriod.\r
 \r
   EFI_INVALID_PARAMETER - TimerPeriod is NULL.\r
@@ -263,7 +263,7 @@ Returns:
   EFI_SUCCESS           - Timer Architectural Protocol created\r
 \r
   EFI_OUT_OF_RESOURCES  - Not enough resources available to initialize driver.\r
-  \r
+\r
   EFI_DEVICE_ERROR      - A device error occured attempting to initialize the driver.\r
 \r
 --*/\r
@@ -283,8 +283,8 @@ Returns:
   // Create the timer event used to implement a simple watchdog timer\r
   //\r
   Status = gBS->CreateEvent (\r
-                  EFI_EVENT_TIMER | EFI_EVENT_NOTIFY_SIGNAL,\r
-                  EFI_TPL_NOTIFY,\r
+                  EVT_TIMER | EVT_NOTIFY_SIGNAL,\r
+                  TPL_NOTIFY,\r
                   WatchdogTimerDriverExpires,\r
                   NULL,\r
                   &mWatchdogTimerEvent\r
index 240a24e0b88a74623c902f6c5ecaa71b7dc44e32..03eb74f9f908b3dc7340cc278ec66f29ae8a6946 100644 (file)
@@ -321,8 +321,8 @@ Returns:
   // Install notify function to fetch memory data through WinNtIo protocol and store to data hub.\r
   //\r
   EfiStatus = gBS->CreateEvent (\r
-                    EFI_EVENT_NOTIFY_SIGNAL,\r
-                    EFI_TPL_CALLBACK,\r
+                    EVT_NOTIFY_SIGNAL,\r
+                    TPL_CALLBACK,\r
                     WinNtIoProtocolNotifyFunction,\r
                     ImageHandle,\r
                     &Event\r
index 5666ec28ec3c90d06814c5b3de3020b52db9ad76..effc8fa81b9d7f98b8d27766faee96e0f7a5ad89 100644 (file)
@@ -433,7 +433,7 @@ Returns:
   Private = AllocatePool (sizeof (WIN_NT_BLOCK_IO_PRIVATE));\r
   ASSERT (Private != NULL);\r
 \r
-  EfiInitializeLock (&Private->Lock, EFI_TPL_NOTIFY);\r
+  EfiInitializeLock (&Private->Lock, TPL_NOTIFY);\r
 \r
   Private->WinNtThunk = WinNtIo->WinNtThunk;\r
 \r
@@ -849,7 +849,7 @@ WinNtBlockIoReadBlocks (
   DWORD                   BytesRead;\r
   EFI_TPL                 OldTpl;\r
 \r
-  OldTpl = gBS->RaiseTPL (EFI_TPL_CALLBACK);\r
+  OldTpl = gBS->RaiseTPL (TPL_CALLBACK);\r
 \r
   Private = WIN_NT_BLOCK_IO_PRIVATE_DATA_FROM_THIS (This);\r
 \r
@@ -917,7 +917,7 @@ WinNtBlockIoWriteBlocks (
   EFI_STATUS              Status;\r
   EFI_TPL                 OldTpl;\r
 \r
-  OldTpl = gBS->RaiseTPL (EFI_TPL_CALLBACK);\r
+  OldTpl = gBS->RaiseTPL (TPL_CALLBACK);\r
 \r
   Private = WIN_NT_BLOCK_IO_PRIVATE_DATA_FROM_THIS (This);\r
 \r
@@ -996,7 +996,7 @@ WinNtBlockIoResetBlock (
   WIN_NT_BLOCK_IO_PRIVATE *Private;\r
   EFI_TPL                 OldTpl;\r
 \r
-  OldTpl = gBS->RaiseTPL (EFI_TPL_CALLBACK);\r
+  OldTpl = gBS->RaiseTPL (TPL_CALLBACK);\r
 \r
   Private = WIN_NT_BLOCK_IO_PRIVATE_DATA_FROM_THIS (This);\r
 \r
index a4e2b3fece7114203ae1bbdb3601c412ac5df8e5..eaee537baffdbcde36e7d0f68b258096082a2d01 100644 (file)
@@ -345,8 +345,8 @@ Returns:
   Private->SimpleTextIn.ReadKeyStroke = WinNtSimpleTextInReadKeyStroke;\r
 \r
   Status = gBS->CreateEvent (\r
-                  EFI_EVENT_NOTIFY_WAIT,\r
-                  EFI_TPL_NOTIFY,\r
+                  EVT_NOTIFY_WAIT,\r
+                  TPL_NOTIFY,\r
                   WinNtSimpleTextInWaitForKey,\r
                   Private,\r
                   &Private->SimpleTextIn.WaitForKey\r
index 77006af74ef05e71e3139579e834c775feacc92c..385e32f4a25ae84e6970a0c7926808b8ae75af6b 100644 (file)
@@ -323,7 +323,7 @@ WinNtGopInitializeSimpleTextInForWindow (
   Private->SimpleTextIn.ReadKeyStroke = WinNtGopSimpleTextInReadKeyStroke;
 
   Status = gBS->CreateEvent (
-                  EVENT_NOTIFY_WAIT,
+                  EVT_NOTIFY_WAIT,
                   TPL_NOTIFY,
                   WinNtGopSimpleTextInWaitForKey,
                   Private,
index 89a5e4d29817861a457b9ec4c9013f21ed31e3a6..017b4f3ac02e7d7525ee33ef5db3e5499d6972e4 100644 (file)
@@ -835,7 +835,7 @@ WinNtGopStartWindow (
   // Register to be notified on exit boot services so we can destroy the window.
   //
   Status = gBS->CreateEvent (
-                  EVENT_SIGNAL_EXIT_BOOT_SERVICES,
+                  EVT_SIGNAL_EXIT_BOOT_SERVICES,
                   TPL_CALLBACK,
                   KillNtGopThread,
                   Private,
index 3de4a86128f559970b478f568e8ecfa437bc9339..954c0e179c3bf4b43792873ca23a3be68760137d 100644 (file)
@@ -637,7 +637,7 @@ Returns:
   WIN_NT_SERIAL_IO_PRIVATE_DATA *Private;\r
   EFI_TPL                       Tpl;\r
 \r
-  Tpl     = gBS->RaiseTPL (EFI_TPL_NOTIFY);\r
+  Tpl     = gBS->RaiseTPL (TPL_NOTIFY);\r
 \r
   Private = WIN_NT_SERIAL_IO_PRIVATE_DATA_FROM_THIS (This);\r
 \r
@@ -709,7 +709,7 @@ Returns:
   EFI_DEVICE_PATH_PROTOCOL      *NewDevicePath;\r
   EFI_TPL                       Tpl;\r
 \r
-  Tpl     = gBS->RaiseTPL (EFI_TPL_NOTIFY);\r
+  Tpl     = gBS->RaiseTPL (TPL_NOTIFY);\r
 \r
   Private = WIN_NT_SERIAL_IO_PRIVATE_DATA_FROM_THIS (This);\r
 \r
@@ -906,7 +906,7 @@ Returns:
   DCB                           Dcb;\r
   EFI_TPL                       Tpl;\r
 \r
-  Tpl     = gBS->RaiseTPL (EFI_TPL_NOTIFY);\r
+  Tpl     = gBS->RaiseTPL (TPL_NOTIFY);\r
 \r
   Private = WIN_NT_SERIAL_IO_PRIVATE_DATA_FROM_THIS (This);\r
 \r
@@ -996,7 +996,7 @@ Returns:
   DCB                           Dcb;\r
   EFI_TPL                       Tpl;\r
 \r
-  Tpl     = gBS->RaiseTPL (EFI_TPL_NOTIFY);\r
+  Tpl     = gBS->RaiseTPL (TPL_NOTIFY);\r
 \r
   Private = WIN_NT_SERIAL_IO_PRIVATE_DATA_FROM_THIS (This);\r
 \r
@@ -1114,7 +1114,7 @@ Returns:
   UINT32                        Control;\r
   EFI_TPL                       Tpl;\r
 \r
-  Tpl               = gBS->RaiseTPL (EFI_TPL_NOTIFY);\r
+  Tpl               = gBS->RaiseTPL (TPL_NOTIFY);\r
 \r
   Private           = WIN_NT_SERIAL_IO_PRIVATE_DATA_FROM_THIS (This);\r
 \r
@@ -1216,7 +1216,7 @@ Returns:
   UINT32                        Control;\r
   EFI_TPL                       Tpl;\r
 \r
-  Tpl     = gBS->RaiseTPL (EFI_TPL_NOTIFY);\r
+  Tpl     = gBS->RaiseTPL (TPL_NOTIFY);\r
 \r
   Private = WIN_NT_SERIAL_IO_PRIVATE_DATA_FROM_THIS (This);\r
 \r
index eb7b4346f71d3ef2a563e7d46f0feb4a9f54d942..475dff622413fa67221839b2a0d64bd8aede47a5 100644 (file)
@@ -478,7 +478,7 @@ Returns:
     return EFI_INVALID_PARAMETER;\r
   }\r
 \r
-  OldTpl = gBS->RaiseTPL (EFI_TPL_CALLBACK);\r
+  OldTpl = gBS->RaiseTPL (TPL_CALLBACK);\r
 \r
   Private     = WIN_NT_SIMPLE_FILE_SYSTEM_PRIVATE_DATA_FROM_THIS (This);\r
 \r
@@ -1081,7 +1081,7 @@ Returns:
     return EFI_INVALID_PARAMETER;\r
   }\r
 \r
-  OldTpl = gBS->RaiseTPL (EFI_TPL_CALLBACK);\r
+  OldTpl = gBS->RaiseTPL (TPL_CALLBACK);\r
 \r
   PrivateFile = WIN_NT_EFI_FILE_PRIVATE_DATA_FROM_THIS (This);\r
 \r
@@ -1143,7 +1143,7 @@ Returns:
     return EFI_INVALID_PARAMETER;\r
   }\r
 \r
-  OldTpl = gBS->RaiseTPL (EFI_TPL_CALLBACK);\r
+  OldTpl = gBS->RaiseTPL (TPL_CALLBACK);\r
 \r
   PrivateFile = WIN_NT_EFI_FILE_PRIVATE_DATA_FROM_THIS (This);\r
 \r
@@ -1277,7 +1277,7 @@ Returns:
     return EFI_INVALID_PARAMETER;\r
   }\r
 \r
-  OldTpl = gBS->RaiseTPL (EFI_TPL_CALLBACK);\r
+  OldTpl = gBS->RaiseTPL (TPL_CALLBACK);\r
 \r
   PrivateFile = WIN_NT_EFI_FILE_PRIVATE_DATA_FROM_THIS (This);\r
 \r
@@ -1486,7 +1486,7 @@ Returns:
     return EFI_INVALID_PARAMETER;\r
   }\r
 \r
-  OldTpl = gBS->RaiseTPL (EFI_TPL_CALLBACK);\r
+  OldTpl = gBS->RaiseTPL (TPL_CALLBACK);\r
 \r
   PrivateFile = WIN_NT_EFI_FILE_PRIVATE_DATA_FROM_THIS (This);\r
 \r
@@ -1560,7 +1560,7 @@ Returns:
     return EFI_INVALID_PARAMETER;\r
   }\r
 \r
-  OldTpl = gBS->RaiseTPL (EFI_TPL_CALLBACK);\r
+  OldTpl = gBS->RaiseTPL (TPL_CALLBACK);\r
 \r
   PrivateFile = WIN_NT_EFI_FILE_PRIVATE_DATA_FROM_THIS (This);\r
 \r
@@ -1648,7 +1648,7 @@ Returns:
     return EFI_INVALID_PARAMETER;\r
   }\r
 \r
-  OldTpl = gBS->RaiseTPL (EFI_TPL_CALLBACK);\r
+  OldTpl = gBS->RaiseTPL (TPL_CALLBACK);\r
   PrivateFile   = WIN_NT_EFI_FILE_PRIVATE_DATA_FROM_THIS (This);\r
 \r
   PositionHigh  = 0;\r
@@ -1913,7 +1913,7 @@ Returns:
     return EFI_INVALID_PARAMETER;\r
   }\r
 \r
-  OldTpl = gBS->RaiseTPL (EFI_TPL_CALLBACK);\r
+  OldTpl = gBS->RaiseTPL (TPL_CALLBACK);\r
 \r
   PrivateFile = WIN_NT_EFI_FILE_PRIVATE_DATA_FROM_THIS (This);\r
   PrivateRoot = WIN_NT_SIMPLE_FILE_SYSTEM_PRIVATE_DATA_FROM_THIS (PrivateFile->SimpleFileSystem);\r
@@ -2115,7 +2115,7 @@ Returns:
     return EFI_INVALID_PARAMETER;\r
   }\r
 \r
-  OldTpl = gBS->RaiseTPL (EFI_TPL_CALLBACK);\r
+  OldTpl = gBS->RaiseTPL (TPL_CALLBACK);\r
 \r
   //\r
   // Initialise locals.\r
@@ -2643,7 +2643,7 @@ Returns:
     return EFI_INVALID_PARAMETER;\r
   }\r
 \r
-  OldTpl = gBS->RaiseTPL (EFI_TPL_CALLBACK);\r
+  OldTpl = gBS->RaiseTPL (TPL_CALLBACK);\r
 \r
   PrivateFile = WIN_NT_EFI_FILE_PRIVATE_DATA_FROM_THIS (This);\r
 \r
index 19bca36359018823e09e1d8a34c860b64c7b1413..2c715c663d08d0243ff75e411f3bb26f3ca853b3 100644 (file)
@@ -1,13 +1,13 @@
 /*++\r
 \r
-Copyright (c) 2006, Intel Corporation                                                         \r
-All rights reserved. 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
+Copyright (c) 2006, Intel Corporation\r
+All rights reserved. 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
 \r
@@ -15,13 +15,13 @@ Module Name:
 \r
 Abstract:\r
 \r
-  This file produces the Simple Text In for an Uga window. \r
+  This file produces the Simple Text In for an Uga window.\r
 \r
   This stuff is linked at the hip to the Window, since the window\r
   processing is done in a thread kicked off in WinNtUgaImplementation.c\r
 \r
   Since the window information is processed in an other thread we need\r
-  a keyboard Queue to pass data about. The Simple Text In code just \r
+  a keyboard Queue to pass data about. The Simple Text In code just\r
   takes data off the Queue. The WinProc message loop takes keyboard input\r
   and places it in the Queue.\r
 \r
@@ -222,7 +222,7 @@ Returns:
   //\r
   // Enter critical section\r
   //\r
-  OldTpl = gBS->RaiseTPL (EFI_TPL_NOTIFY);\r
+  OldTpl = gBS->RaiseTPL (TPL_NOTIFY);\r
 \r
   //\r
   // A reset is draining the Queue\r
@@ -270,7 +270,7 @@ Returns:
   //\r
   // Enter critical section\r
   //\r
-  OldTpl  = gBS->RaiseTPL (EFI_TPL_NOTIFY);\r
+  OldTpl  = gBS->RaiseTPL (TPL_NOTIFY);\r
 \r
   Status  = UgaPrivateCheckQ (Private);\r
   if (!EFI_ERROR (Status)) {\r
@@ -321,7 +321,7 @@ Returns:
   //\r
   // Enter critical section\r
   //\r
-  OldTpl  = gBS->RaiseTPL (EFI_TPL_NOTIFY);\r
+  OldTpl  = gBS->RaiseTPL (TPL_NOTIFY);\r
 \r
   Status  = UgaPrivateCheckQ (Private);\r
   if (!EFI_ERROR (Status)) {\r
@@ -376,8 +376,8 @@ Returns:
   Private->SimpleTextIn.ReadKeyStroke = WinNtUgaSimpleTextInReadKeyStroke;\r
 \r
   Status = gBS->CreateEvent (\r
-                  EFI_EVENT_NOTIFY_WAIT,\r
-                  EFI_TPL_NOTIFY,\r
+                  EVT_NOTIFY_WAIT,\r
+                  TPL_NOTIFY,\r
                   WinNtUgaSimpleTextInWaitForKey,\r
                   Private,\r
                   &Private->SimpleTextIn.WaitForKey\r
index b6c1ce26b83e0068eedabd8afbf7cc21cf4ee6b5..ebaf0b3a8008915b205b983ce3303602eef6a509 100644 (file)
@@ -362,7 +362,7 @@ WinNtUgaBlt (
     // We would not want a timer based event (Cursor, ...) to come in while we are\r
     // doing this operation.\r
     //\r
-    OriginalTPL = gBS->RaiseTPL (EFI_TPL_NOTIFY);\r
+    OriginalTPL = gBS->RaiseTPL (TPL_NOTIFY);\r
 \r
     for (SrcY = SourceY, DstY = DestinationY; DstY < (Height + DestinationY); SrcY++, DstY++) {\r
       Blt = (EFI_UGA_PIXEL *) ((UINT8 *) BltBuffer + (DstY * Delta) + DestinationX * sizeof (EFI_UGA_PIXEL));\r
@@ -386,7 +386,7 @@ WinNtUgaBlt (
     // We would not want a timer based event (Cursor, ...) to come in while we are\r
     // doing this operation.\r
     //\r
-    OriginalTPL = gBS->RaiseTPL (EFI_TPL_NOTIFY);\r
+    OriginalTPL = gBS->RaiseTPL (TPL_NOTIFY);\r
 \r
     if (BltOperation == EfiUgaVideoFill) {\r
       FillPixel = BltBuffer;\r
@@ -851,8 +851,8 @@ Returns:
   // Register to be notified on exit boot services so we can destroy the window.\r
   //\r
   Status = gBS->CreateEvent (\r
-                  EFI_EVENT_SIGNAL_EXIT_BOOT_SERVICES,\r
-                  EFI_TPL_CALLBACK,\r
+                  EVT_SIGNAL_EXIT_BOOT_SERVICES,\r
+                  TPL_CALLBACK,\r
                   KillNtUgaThread,\r
                   Private,\r
                   &mUgaScreenExitBootServicesEvent\r
index 18779a6b5e74719d457a9d5e789355c114baa679..3997c5f913f5291e8d23bdebbe080bb18623cb5b 100644 (file)
@@ -167,7 +167,7 @@ Returns:
     //\r
     if (Delta < 1000) {\r
 \r
-      OriginalTPL = gBS->RaiseTPL (EFI_TPL_HIGH_LEVEL);\r
+      OriginalTPL = gBS->RaiseTPL (TPL_HIGH_LEVEL);\r
 \r
       //\r
       //  Inform the firmware of an "timer interrupt".  The time\r
index c777ec7c33094a5396c23b418c5c59ac0c5851c9..d732a5ca5d44c0f89fa3904571425cba5aec68c0 100644 (file)
@@ -454,8 +454,8 @@ Returns:
   // Install notify function to store processor data to HII database and data hub.\r
   //\r
   Status = gBS->CreateEvent (\r
-                  EFI_EVENT_NOTIFY_SIGNAL,\r
-                  EFI_TPL_CALLBACK,\r
+                  EVT_NOTIFY_SIGNAL,\r
+                  TPL_CALLBACK,\r
                   WinNtIoProtocolNotifyFunction,\r
                   ImageHandle,\r
                   &Event\r
index e71fadaa1c44a4120988f02875a7008ad143aa6e..531194ed3dd56cee9fc1d7503e34ecc05304294e 100644 (file)
@@ -1360,7 +1360,7 @@ Returns:
 \r
     CopyMem ((UINTN *) &(FwhInstance->VolumeHeader), (UINTN *) FwVolHeader, FwVolHeader->HeaderLength);\r
     FwVolHeader = &(FwhInstance->VolumeHeader);\r
-    EfiInitializeLock (&(FwhInstance->FvbDevLock), EFI_TPL_HIGH_LEVEL);\r
+    EfiInitializeLock (&(FwhInstance->FvbDevLock), TPL_HIGH_LEVEL);\r
 \r
     NumOfBlocks = 0;\r
 \r
index 910564d365b63d16e8a1d4e70313699c6f6c9236..0feb1372f6e74e563e1fdcbf50f69d3c004f7e26 100644 (file)
@@ -1,19 +1,19 @@
 /*++\r
 \r
-Copyright (c) 2006, Intel Corporation                                                         \r
-All rights reserved. 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
+Copyright (c) 2006, Intel Corporation\r
+All rights reserved. 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
 \r
   MiscSubclassDriverEntryPoint.c\r
-  \r
-Abstract: \r
+\r
+Abstract:\r
 \r
   This driver parses the mMiscSubclassDataTable structure and reports\r
   any generated data to the DataHub.\r
@@ -321,8 +321,8 @@ Returns:
   // Install notify function to fetch memory data through UnixIo protocol and store to data hub.\r
   //\r
   EfiStatus = gBS->CreateEvent (\r
-                    EFI_EVENT_NOTIFY_SIGNAL,\r
-                    EFI_TPL_CALLBACK,\r
+                    EVT_NOTIFY_SIGNAL,\r
+                    TPL_CALLBACK,\r
                     UnixIoProtocolNotifyFunction,\r
                     ImageHandle,\r
                     &Event\r
@@ -351,8 +351,8 @@ Routine Description:
 Arguments:\r
   String - Unicode string.\r
 \r
-Returns: \r
-  UINTN of the number represented by String.  \r
+Returns:\r
+  UINTN of the number represented by String.\r
 \r
 --*/\r
 {\r
index 016722047037ee17486a14d737a5df09be8f5294..2ddc9e5babf39bef8dd8f46a39a2929166d0f295 100644 (file)
@@ -679,7 +679,7 @@ Returns:
                   );\r
   ASSERT_EFI_ERROR (Status);\r
 \r
-  EfiInitializeLock (&Private->Lock, EFI_TPL_NOTIFY);\r
+  EfiInitializeLock (&Private->Lock, TPL_NOTIFY);\r
 \r
   Private->UnixThunk = UnixIo->UnixThunk;\r
 \r
@@ -1066,7 +1066,7 @@ UnixBlockIoReadBlocks (
   EFI_STATUS              Status;\r
   EFI_TPL                 OldTpl;\r
 \r
-  OldTpl = gBS->RaiseTPL (EFI_TPL_CALLBACK);\r
+  OldTpl = gBS->RaiseTPL (TPL_CALLBACK);\r
 \r
   Private = UNIX_BLOCK_IO_PRIVATE_DATA_FROM_THIS (This);\r
 \r
@@ -1133,7 +1133,7 @@ UnixBlockIoWriteBlocks (
   EFI_STATUS              Status;\r
   EFI_TPL                 OldTpl;\r
 \r
-  OldTpl = gBS->RaiseTPL (EFI_TPL_CALLBACK);\r
+  OldTpl = gBS->RaiseTPL (TPL_CALLBACK);\r
 \r
   Private = UNIX_BLOCK_IO_PRIVATE_DATA_FROM_THIS (This);\r
 \r
@@ -1211,7 +1211,7 @@ UnixBlockIoResetBlock (
   UNIX_BLOCK_IO_PRIVATE *Private;\r
   EFI_TPL               OldTpl;\r
 \r
-  OldTpl = gBS->RaiseTPL (EFI_TPL_CALLBACK);\r
+  OldTpl = gBS->RaiseTPL (TPL_CALLBACK);\r
   \r
   Private = UNIX_BLOCK_IO_PRIVATE_DATA_FROM_THIS (This);\r
 \r
index 0a7503fe6e266eef1929759b58284607e202287a..316794966905b8716aaa6b6c51b71d4b6ebdf70b 100644 (file)
@@ -1,13 +1,13 @@
 /*++\r
 \r
-Copyright (c) 2004, Intel Corporation                                                         \r
-All rights reserved. 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
+Copyright (c) 2004, Intel Corporation\r
+All rights reserved. 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
 \r
@@ -15,15 +15,15 @@ Module Name:
 \r
 Abstract:\r
 \r
-  Console based on Posix APIs. \r
+  Console based on Posix APIs.\r
 \r
   This file attaches a SimpleTextIn protocol to a previously open window.\r
-  \r
+\r
   The constructor for this protocol depends on an open window. Currently\r
   the SimpleTextOut protocol creates a window when it's constructor is called.\r
-  Thus this code must run after the constructor for the SimpleTextOut \r
+  Thus this code must run after the constructor for the SimpleTextOut\r
   protocol\r
-  \r
+\r
 --*/\r
 \r
 #include "Console.h"\r
@@ -234,8 +234,8 @@ Returns:
   Private->SimpleTextIn.ReadKeyStroke = UnixSimpleTextInReadKeyStroke;\r
 \r
   Status = gBS->CreateEvent (\r
-                  EFI_EVENT_NOTIFY_WAIT,\r
-                  EFI_TPL_NOTIFY,\r
+                  EVT_NOTIFY_WAIT,\r
+                  TPL_NOTIFY,\r
                   UnixSimpleTextInWaitForKey,\r
                   Private,\r
                   &Private->SimpleTextIn.WaitForKey\r
index e3fd034ab31c4ab4031af58388ed48a0b4f49992..9f550f25c0ed23ac296c23e3f029f886c8224e05 100644 (file)
@@ -770,7 +770,7 @@ Returns:
   EFI_TPL                      Tpl;\r
   UINTN                        UnixStatus;\r
 \r
-  Tpl         = gBS->RaiseTPL (EFI_TPL_NOTIFY);\r
+  Tpl         = gBS->RaiseTPL (TPL_NOTIFY);\r
 \r
   Private     = UNIX_SERIAL_IO_PRIVATE_DATA_FROM_THIS (This);\r
 \r
@@ -844,7 +844,7 @@ Returns:
   EFI_TPL                       Tpl;\r
   EFI_DEVICE_PATH_PROTOCOL      *NewDevicePath;\r
 \r
-  Tpl     = gBS->RaiseTPL (EFI_TPL_NOTIFY);\r
+  Tpl     = gBS->RaiseTPL (TPL_NOTIFY);\r
   Private = UNIX_SERIAL_IO_PRIVATE_DATA_FROM_THIS (This);\r
 \r
   //\r
@@ -1037,7 +1037,7 @@ Returns:
   struct termios              Options;\r
   EFI_TPL                     Tpl;\r
 \r
-  Tpl     = gBS->RaiseTPL (EFI_TPL_NOTIFY);\r
+  Tpl     = gBS->RaiseTPL (TPL_NOTIFY);\r
 \r
   Private = UNIX_SERIAL_IO_PRIVATE_DATA_FROM_THIS (This);\r
 \r
@@ -1119,7 +1119,7 @@ Returns:
   EFI_TPL                     Tpl;\r
   UINTN                       Bytes;\r
 \r
-  Tpl     = gBS->RaiseTPL (EFI_TPL_NOTIFY);\r
+  Tpl     = gBS->RaiseTPL (TPL_NOTIFY);\r
 \r
   Private = UNIX_SERIAL_IO_PRIVATE_DATA_FROM_THIS (This);\r
   Result  = Private->UnixThunk->IoCtl (Private->UnixHandle, TIOCMGET, &Status);\r
@@ -1218,7 +1218,7 @@ Returns:
   UINT32                        Control;\r
   EFI_TPL                       Tpl;\r
 \r
-  Tpl               = gBS->RaiseTPL (EFI_TPL_NOTIFY);\r
+  Tpl               = gBS->RaiseTPL (TPL_NOTIFY);\r
 \r
   Private           = UNIX_SERIAL_IO_PRIVATE_DATA_FROM_THIS (This); \r
 \r
@@ -1309,7 +1309,7 @@ Returns:
   UINT32                        Control;\r
   EFI_TPL                       Tpl;\r
 \r
-  Tpl     = gBS->RaiseTPL (EFI_TPL_NOTIFY);\r
+  Tpl     = gBS->RaiseTPL (TPL_NOTIFY);\r
 \r
   Private = UNIX_SERIAL_IO_PRIVATE_DATA_FROM_THIS (This);\r
 \r
index b8030edce6d91cb9e4cb27c6e96911bd7aba030c..58cfefb0f341a59df7d79b0dddffb8d22245973d 100644 (file)
@@ -500,7 +500,7 @@ Returns:
   if (This == NULL || Root == NULL) {\r
     return EFI_INVALID_PARAMETER;\r
   }\r
-  OldTpl = gBS->RaiseTPL (EFI_TPL_CALLBACK);\r
+  OldTpl = gBS->RaiseTPL (TPL_CALLBACK);\r
 \r
   Private     = UNIX_SIMPLE_FILE_SYSTEM_PRIVATE_DATA_FROM_THIS (This);\r
 \r
@@ -989,7 +989,7 @@ Returns:
 \r
   PrivateFile = UNIX_EFI_FILE_PRIVATE_DATA_FROM_THIS (This);\r
 \r
-  OldTpl = gBS->RaiseTPL (EFI_TPL_CALLBACK);\r
+  OldTpl = gBS->RaiseTPL (TPL_CALLBACK);\r
 \r
   if (PrivateFile->fd >= 0) {\r
     PrivateFile->UnixThunk->Close (PrivateFile->fd);\r
@@ -1044,7 +1044,7 @@ Returns:
     return EFI_INVALID_PARAMETER;\r
   }\r
 \r
-  OldTpl = gBS->RaiseTPL (EFI_TPL_CALLBACK);\r
+  OldTpl = gBS->RaiseTPL (TPL_CALLBACK);\r
   \r
   PrivateFile = UNIX_EFI_FILE_PRIVATE_DATA_FROM_THIS (This);\r
 \r
@@ -1268,7 +1268,7 @@ Returns:
     return EFI_INVALID_PARAMETER;\r
   }\r
 \r
-  OldTpl = gBS->RaiseTPL (EFI_TPL_CALLBACK);\r
+  OldTpl = gBS->RaiseTPL (TPL_CALLBACK);\r
   \r
   PrivateFile = UNIX_EFI_FILE_PRIVATE_DATA_FROM_THIS (This);\r
 \r
@@ -1401,7 +1401,7 @@ Returns:
     return EFI_INVALID_PARAMETER;\r
   }\r
 \r
-  OldTpl = gBS->RaiseTPL (EFI_TPL_CALLBACK);\r
+  OldTpl = gBS->RaiseTPL (TPL_CALLBACK);\r
 \r
   PrivateFile = UNIX_EFI_FILE_PRIVATE_DATA_FROM_THIS (This);\r
 \r
@@ -1473,7 +1473,7 @@ Returns:
     return EFI_INVALID_PARAMETER;\r
   }\r
 \r
-  OldTpl = gBS->RaiseTPL (EFI_TPL_CALLBACK);\r
+  OldTpl = gBS->RaiseTPL (TPL_CALLBACK);\r
   \r
   PrivateFile = UNIX_EFI_FILE_PRIVATE_DATA_FROM_THIS (This);\r
 \r
@@ -1539,7 +1539,7 @@ Returns:
     return EFI_INVALID_PARAMETER;\r
   }\r
 \r
-  OldTpl = gBS->RaiseTPL (EFI_TPL_CALLBACK);\r
+  OldTpl = gBS->RaiseTPL (TPL_CALLBACK);\r
   \r
   PrivateFile   = UNIX_EFI_FILE_PRIVATE_DATA_FROM_THIS (This);\r
 \r
@@ -1609,7 +1609,7 @@ Returns:
     return EFI_INVALID_PARAMETER;\r
   }\r
 \r
-  OldTpl = gBS->RaiseTPL (EFI_TPL_CALLBACK);\r
+  OldTpl = gBS->RaiseTPL (TPL_CALLBACK);\r
     \r
   PrivateFile = UNIX_EFI_FILE_PRIVATE_DATA_FROM_THIS (This);\r
   PrivateRoot = UNIX_SIMPLE_FILE_SYSTEM_PRIVATE_DATA_FROM_THIS (PrivateFile->SimpleFileSystem);\r
@@ -1741,7 +1741,7 @@ Returns:
     return EFI_INVALID_PARAMETER;\r
   }\r
 \r
-  OldTpl = gBS->RaiseTPL (EFI_TPL_CALLBACK);\r
+  OldTpl = gBS->RaiseTPL (TPL_CALLBACK);\r
   \r
   //\r
   // Initialise locals.\r
@@ -2152,7 +2152,7 @@ Returns:
   }\r
 \r
   Status = EFI_SUCCESS;\r
-  OldTpl = gBS->RaiseTPL (EFI_TPL_CALLBACK);\r
+  OldTpl = gBS->RaiseTPL (TPL_CALLBACK);\r
   \r
   PrivateFile = UNIX_EFI_FILE_PRIVATE_DATA_FROM_THIS (This);\r
 \r
index babfa4bdac90b7674492deb8e0ae4c3eb6dd8d79..9158a45c2e9286620dd1052179487dafbbdf120c 100644 (file)
@@ -1,13 +1,13 @@
 /*++\r
 \r
-Copyright (c) 2006, Intel Corporation                                                         \r
-All rights reserved. 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
+Copyright (c) 2006, Intel Corporation\r
+All rights reserved. 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
 \r
@@ -15,13 +15,13 @@ Module Name:
 \r
 Abstract:\r
 \r
-  This file produces the Simple Text In for an Uga window. \r
+  This file produces the Simple Text In for an Uga window.\r
 \r
   This stuff is linked at the hip to the Window, since the window\r
   processing is done in a thread kicked off in UnixUgaImplementation.c\r
 \r
   Since the window information is processed in an other thread we need\r
-  a keyboard Queue to pass data about. The Simple Text In code just \r
+  a keyboard Queue to pass data about. The Simple Text In code just\r
   takes data off the Queue. The WinProc message loop takes keyboard input\r
   and places it in the Queue.\r
 \r
@@ -68,7 +68,7 @@ Returns:
   //\r
   // Enter critical section\r
   //\r
-  OldTpl = gBS->RaiseTPL (EFI_TPL_NOTIFY);\r
+  OldTpl = gBS->RaiseTPL (TPL_NOTIFY);\r
 \r
   //\r
   // A reset is draining the Queue\r
@@ -119,7 +119,7 @@ Returns:
   //\r
   // Enter critical section\r
   //\r
-  OldTpl  = gBS->RaiseTPL (EFI_TPL_NOTIFY);\r
+  OldTpl  = gBS->RaiseTPL (TPL_NOTIFY);\r
 \r
   Status  = Private->UgaIo->UgaGetKey(Private->UgaIo, Key);
   //\r
@@ -166,7 +166,7 @@ Returns:
   //\r
   // Enter critical section\r
   //\r
-  OldTpl  = gBS->RaiseTPL (EFI_TPL_NOTIFY);\r
+  OldTpl  = gBS->RaiseTPL (TPL_NOTIFY);\r
 \r
   Status  = Private->UgaIo->UgaCheckKey(Private->UgaIo);
   if (!EFI_ERROR (Status)) {\r
@@ -210,8 +210,8 @@ Returns:
   Private->SimpleTextIn.ReadKeyStroke = UnixUgaSimpleTextInReadKeyStroke;\r
 \r
   Status = gBS->CreateEvent (\r
-                  EFI_EVENT_NOTIFY_WAIT,\r
-                  EFI_TPL_NOTIFY,\r
+                  EVT_NOTIFY_WAIT,\r
+                  TPL_NOTIFY,\r
                   UnixUgaSimpleTextInWaitForKey,\r
                   Private,\r
                   &Private->SimpleTextIn.WaitForKey\r
index 85c23f0d8ff2ee4ab172e5d65ec56440df59e5a7..10efc5e3d616ad7204fde780902c6f41b2229bae 100644 (file)
@@ -1,22 +1,22 @@
 /*++\r
 \r
-Copyright (c) 2006, Intel Corporation                                                         \r
-All rights reserved. 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
+Copyright (c) 2006, Intel Corporation\r
+All rights reserved. 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
-  \r
+\r
     UnixUgaScreen.c\r
 \r
 Abstract:\r
 \r
-  This file produces the graphics abstration of UGA. It is called by \r
-  UnixUgaDriver.c file which deals with the EFI 1.1 driver model. \r
+  This file produces the graphics abstration of UGA. It is called by\r
+  UnixUgaDriver.c file which deals with the EFI 1.1 driver model.\r
   This file just does graphics.\r
 \r
 --*/\r
@@ -71,7 +71,7 @@ UnixUgaGetMode (
 \r
   Returns:\r
     EFI_SUCCESS     - Mode information returned.\r
-    EFI_NOT_STARTED - Video display is not initialized. Call SetMode () \r
+    EFI_NOT_STARTED - Video display is not initialized. Call SetMode ()\r
     EFI_INVALID_PARAMETER - One of the input args was NULL.\r
 \r
 --*/\r
@@ -122,7 +122,7 @@ UnixUgaSetMode (
 \r
   Returns:\r
     EFI_SUCCESS     - Mode information returned.\r
-    EFI_NOT_STARTED - Video display is not initialized. Call SetMode () \r
+    EFI_NOT_STARTED - Video display is not initialized. Call SetMode ()\r
     EFI_INVALID_PARAMETER - One of the input args was NULL.\r
 \r
 --*/\r
@@ -196,19 +196,19 @@ UnixUgaBlt (
   Routine Description:\r
     Blt pixels from the rectangle (Width X Height) formed by the BltBuffer\r
     onto the graphics screen starting a location (X, Y). (0, 0) is defined as\r
-    the upper left hand side of the screen. (X, Y) can be outside of the \r
-    current screen geometry and the BltBuffer will be cliped when it is \r
-    displayed. X and Y can be negative or positive. If Width or Height is \r
+    the upper left hand side of the screen. (X, Y) can be outside of the\r
+    current screen geometry and the BltBuffer will be cliped when it is\r
+    displayed. X and Y can be negative or positive. If Width or Height is\r
     bigger than the current video screen the image will be clipped.\r
 \r
   Arguments:\r
     This          - Protocol instance pointer.\r
-    X             - X location on graphics screen. \r
+    X             - X location on graphics screen.\r
     Y             - Y location on the graphics screen.\r
     Width         - Width of BltBuffer.\r
     Height        - Hight of BltBuffer\r
     BltOperation  - Operation to perform on BltBuffer and video memory\r
-    BltBuffer     - Buffer containing data to blt into video buffer. This \r
+    BltBuffer     - Buffer containing data to blt into video buffer. This\r
                     buffer has a size of Width*Height*sizeof(EFI_UGA_PIXEL)\r
     SourceX       - If the BltOperation is a EfiCopyBlt this is the source\r
                     of the copy. For other BLT operations this argument is not\r
@@ -216,11 +216,11 @@ UnixUgaBlt (
     SourceX       - If the BltOperation is a EfiCopyBlt this is the source\r
                     of the copy. For other BLT operations this argument is not\r
                     used.\r
-      \r
+\r
   Returns:\r
     EFI_SUCCESS           - The palette is updated with PaletteArray.\r
     EFI_INVALID_PARAMETER - BltOperation is not valid.\r
-    EFI_DEVICE_ERROR      - A hardware error occured writting to the video \r
+    EFI_DEVICE_ERROR      - A hardware error occured writting to the video\r
                              buffer.\r
 \r
 --*/\r
@@ -256,7 +256,7 @@ UnixUgaBlt (
   // We would not want a timer based event (Cursor, ...) to come in while we are\r
   // doing this operation.\r
   //\r
-  OriginalTPL = gBS->RaiseTPL (EFI_TPL_NOTIFY);\r
+  OriginalTPL = gBS->RaiseTPL (TPL_NOTIFY);\r
 \r
   Status = Private->UgaIo->UgaBlt (Private->UgaIo,
                                   BltBuffer,
@@ -348,8 +348,8 @@ Returns:
   // Register to be notified on exit boot services so we can destroy the window.\r
   //\r
   Status = gBS->CreateEvent (\r
-                  EFI_EVENT_SIGNAL_EXIT_BOOT_SERVICES,\r
-                  EFI_TPL_CALLBACK,\r
+                  EVT_SIGNAL_EXIT_BOOT_SERVICES,\r
+                  TPL_CALLBACK,\r
                   KillNtUgaThread,\r
                   Private,\r
                   &mUgaScreenExitBootServicesEvent\r
@@ -426,8 +426,8 @@ KillNtUgaThread (
 /*++\r
 \r
 Routine Description:\r
-  \r
-  This is the UGA screen's callback notification function for exit-boot-services. \r
+\r
+  This is the UGA screen's callback notification function for exit-boot-services.\r
   All we do here is call UnixUgaDestructor().\r
 \r
 Arguments:\r
index 37fdde5ed3628435ef35a0b5e519781dc983c763..652594d277d673410c7cda39dd2e8eb84925a4d0 100644 (file)
@@ -77,9 +77,9 @@ Returns:
   EFI_TIMER_NOTIFY  CallbackFunction;
 
 \r
-  OriginalTPL = gBS->RaiseTPL (EFI_TPL_HIGH_LEVEL);\r
+  OriginalTPL = gBS->RaiseTPL (TPL_HIGH_LEVEL);\r
 \r
-  if (OriginalTPL < EFI_TPL_HIGH_LEVEL) {
+  if (OriginalTPL < TPL_HIGH_LEVEL) {
     CallbackFunction = mTimerNotifyFunction;\r
 \r
     //\r
index af27d7baa1c592c742a40df47276d7de85c8a4c6..af207567d022590d9f0092a9a3b884eb68fafd94 100644 (file)
@@ -1,13 +1,13 @@
 /*++\r
 \r
-Copyright (c) 2006, Intel Corporation                                                         \r
-All rights reserved. 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
+Copyright (c) 2006, Intel Corporation\r
+All rights reserved. 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
 \r
@@ -114,7 +114,7 @@ UnixEnableInterrupt (
 Routine Description:\r
 \r
   This routine provides support for emulation of the interrupt enable of the\r
-  the system.  For our purposes, CPU enable is just a BOOLEAN that the Timer \r
+  the system.  For our purposes, CPU enable is just a BOOLEAN that the Timer\r
   Architectural Protocol observes in order to defer behaviour while in its\r
   emulated interrupt, or timer tick.\r
 \r
@@ -148,7 +148,7 @@ UnixDisableInterrupt (
 Routine Description:\r
 \r
   This routine provides support for emulation of the interrupt disable of the\r
-  the system.  For our purposes, CPU enable is just a BOOLEAN that the Timer \r
+  the system.  For our purposes, CPU enable is just a BOOLEAN that the Timer\r
   Architectural Protocol observes in order to defer behaviour while in its\r
   emulated interrupt, or timer tick.\r
 \r
@@ -183,7 +183,7 @@ UnixGetInterruptState (
 Routine Description:\r
 \r
   This routine provides support for emulation of the interrupt disable of the\r
-  the system.  For our purposes, CPU enable is just a BOOLEAN that the Timer \r
+  the system.  For our purposes, CPU enable is just a BOOLEAN that the Timer\r
   Architectural Protocol observes in order to defer behaviour while in its\r
   emulated interrupt, or timer tick.\r
 \r
@@ -223,8 +223,8 @@ UnixInit (
 \r
 Routine Description:\r
 \r
-  This routine would support generation of a CPU INIT.  At \r
-  present, this code does not provide emulation.  \r
+  This routine would support generation of a CPU INIT.  At\r
+  present, this code does not provide emulation.\r
 \r
 Arguments:\r
 \r
@@ -258,8 +258,8 @@ UnixRegisterInterruptHandler (
 \r
 Routine Description:\r
 \r
-  This routine would support registration of an interrupt handler.  At \r
-  present, this code does not provide emulation.  \r
+  This routine would support registration of an interrupt handler.  At\r
+  present, this code does not provide emulation.\r
 \r
 Arguments:\r
 \r
@@ -305,8 +305,8 @@ UnixGetTimerValue (
 \r
 Routine Description:\r
 \r
-  This routine would support querying of an on-CPU timer.  At present, \r
-  this code does not provide timer emulation.  \r
+  This routine would support querying of an on-CPU timer.  At present,\r
+  this code does not provide timer emulation.\r
 \r
 Arguments:\r
 \r
@@ -325,7 +325,7 @@ Returns:
   if (TimerValue == NULL) {\r
     return EFI_INVALID_PARAMETER;\r
   }\r
-  \r
+\r
   //\r
   // No timer supported\r
   //\r
@@ -345,8 +345,8 @@ UnixSetMemoryAttributes (
 \r
 Routine Description:\r
 \r
-  This routine would support querying of an on-CPU timer.  At present, \r
-  this code does not provide timer emulation.  \r
+  This routine would support querying of an on-CPU timer.  At present,\r
+  this code does not provide timer emulation.\r
 \r
 Arguments:\r
 \r
@@ -405,7 +405,7 @@ Returns:
 \r
   Status\r
 \r
-  EFI_SUCCESS           - protocol instance can be published \r
+  EFI_SUCCESS           - protocol instance can be published\r
   EFI_OUT_OF_RESOURCES  - cannot allocate protocol data structure\r
   EFI_DEVICE_ERROR      - cannot create the thread\r
 \r
@@ -458,8 +458,8 @@ Returns:
   // Install notify function to store processor data to HII database and data hub.\r
   //\r
   Status = gBS->CreateEvent (\r
-                  EFI_EVENT_NOTIFY_SIGNAL,\r
-                  EFI_TPL_CALLBACK,\r
+                  EVT_NOTIFY_SIGNAL,\r
+                  TPL_CALLBACK,\r
                   UnixIoProtocolNotifyFunction,\r
                   ImageHandle,\r
                   &Event\r
@@ -479,7 +479,7 @@ Returns:
   DEBUG ((EFI_D_ERROR, "CPU Architectural Protocol Loaded\n"));\r
 \r
 \r
-  \r
+\r
   return Status;\r
 }\r
 \r
@@ -495,8 +495,8 @@ Routine Description:
 Arguments:\r
   String - Unicode string.\r
 \r
-Returns: \r
-  UINTN of the number represented by String.  \r
+Returns:\r
+  UINTN of the number represented by String.\r
 \r
 --*/\r
 {\r
index fad36f8f0e9fc67490e8fef2f9abf9313356ef79..7cb85a6a5082290bc9170bd7fe268a88a80e4f45 100644 (file)
@@ -1368,7 +1368,7 @@ Returns:
 \r
     CopyMem ((UINTN *) &(FwhInstance->VolumeHeader), (UINTN *) FwVolHeader, FwVolHeader->HeaderLength);\r
     FwVolHeader = &(FwhInstance->VolumeHeader);\r
-    EfiInitializeLock (&(FwhInstance->FvbDevLock), EFI_TPL_HIGH_LEVEL);\r
+    EfiInitializeLock (&(FwhInstance->FvbDevLock), TPL_HIGH_LEVEL);\r
 \r
     NumOfBlocks = 0;\r
 \r
index 732ac6c8f780ba0eb9c42886bd9a9a8ebd637d43..9dd79af0cb8566b568490e48ef49994bb71a96f3 100644 (file)
@@ -113,7 +113,7 @@ EfiCreateProtocolNotifyEvent(
   //\r
 \r
   Status = gBS->CreateEvent (\r
-                  EFI_EVENT_NOTIFY_SIGNAL,\r
+                  EVT_NOTIFY_SIGNAL,\r
                   NotifyTpl,\r
                   NotifyFunction,\r
                   NotifyContext,\r
@@ -175,7 +175,7 @@ EfiNamedEventListen (
   // Create event\r
   //\r
   Status = gBS->CreateEvent (\r
-                  EFI_EVENT_NOTIFY_SIGNAL,\r
+                  EVT_NOTIFY_SIGNAL,\r
                   NotifyTpl,\r
                   NotifyFunction,\r
                   (VOID *) NotifyContext,\r
@@ -267,7 +267,7 @@ EfiGetCurrentTpl (
 {\r
   EFI_TPL Tpl;\r
 \r
-  Tpl = gBS->RaiseTPL (EFI_TPL_HIGH_LEVEL);\r
+  Tpl = gBS->RaiseTPL (TPL_HIGH_LEVEL);\r
   gBS->RestoreTPL (Tpl);\r
 \r
   return Tpl;\r
@@ -294,10 +294,10 @@ EfiInitializeLock (
   )\r
 {\r
   ASSERT (Lock != NULL);\r
-  ASSERT (Priority <= EFI_TPL_HIGH_LEVEL);\r
+  ASSERT (Priority <= TPL_HIGH_LEVEL);\r
 \r
   Lock->Tpl       = Priority;\r
-  Lock->OwnerTpl  = EFI_TPL_APPLICATION;\r
+  Lock->OwnerTpl  = TPL_APPLICATION;\r
   Lock->Lock      = EfiLockReleased ;\r
   return Lock;\r
 }\r
index 35539936ed842053532dea88e5bce0f6b079351e..ee679e6ba605d9af6202c0aad08a507ca9c1d884 100644 (file)
@@ -60,7 +60,7 @@ EfiCreateEventLegacyBoot (
   )\r
 {\r
   return EfiCreateEventLegacyBootEx (\r
-           EFI_TPL_CALLBACK,\r
+           TPL_CALLBACK,\r
            InternalEmptyFuntion,\r
            NULL,\r
            LegacyBootEvent\r
@@ -104,7 +104,7 @@ EfiCreateEventLegacyBootEx (
     // prior to UEFI 2.0 use Tiano extension to EFI\r
     //\r
     Status = gBS->CreateEvent (\r
-                    EFI_EVENT_SIGNAL_LEGACY_BOOT | EFI_EVENT_NOTIFY_SIGNAL_ALL,\r
+                    EFI_EVENT_SIGNAL_LEGACY_BOOT | EVT_NOTIFY_SIGNAL,\r
                     NotifyTpl,\r
                     NotifyFunction,\r
                     NotifyContext,\r
@@ -115,7 +115,7 @@ EfiCreateEventLegacyBootEx (
     // For UEFI 2.0 and the future use an Event Group\r
     //\r
     Status = gBS->CreateEventEx (\r
-                    EVENT_NOTIFY_SIGNAL,\r
+                    EVT_NOTIFY_SIGNAL,\r
                     NotifyTpl,\r
                     NotifyFunction,\r
                     NotifyContext,\r
@@ -150,7 +150,7 @@ EfiCreateEventReadyToBoot (
   )\r
 {\r
   return EfiCreateEventReadyToBootEx (\r
-           EFI_TPL_CALLBACK,\r
+           TPL_CALLBACK,\r
            InternalEmptyFuntion,\r
            NULL,\r
            ReadyToBootEvent\r
@@ -205,7 +205,7 @@ EfiCreateEventReadyToBootEx (
     // For UEFI 2.0 and the future use an Event Group\r
     //\r
     Status = gBS->CreateEventEx (\r
-                    EVENT_NOTIFY_SIGNAL,\r
+                    EVT_NOTIFY_SIGNAL,\r
                     NotifyTpl,\r
                     NotifyFunction,\r
                     NotifyContext,\r
index 9eaf48cace7ed9403aeeefacea43c7e4dca9b4b1..03dc5dc9b287f1ed589361a670df2b70ac2fd25c 100644 (file)
@@ -180,7 +180,7 @@ EfiInitializeLock (
 \r
 **/\r
 #define EFI_INITIALIZE_LOCK_VARIABLE(Priority) \\r
-  {Priority, EFI_TPL_APPLICATION, EfiLockReleased }\r
+  {Priority, TPL_APPLICATION, EfiLockReleased }\r
 \r
 \r
 /**\r
index 6f3407706859baca103b6d30da3af03cea7d648a..ee1a23a091d65e93312e5b3bda47b634c7af74dd 100644 (file)
@@ -341,15 +341,22 @@ EFI_STATUS
 //\r
 // EFI Event Types (name defined in spec)\r
 //\r
-#define EVENT_TIMER                             0x80000000\r
-#define EVENT_RUNTIME                           0x40000000\r
-#define EVENT_RUNTIME_CONTEXT                   0x20000000\r
+#define EVT_TIMER                               0x80000000\r
+#define EVT_RUNTIME                             0x40000000\r
+\r
+#define EVT_NOTIFY_WAIT                         0x00000100\r
+#define EVT_NOTIFY_SIGNAL                       0x00000200\r
+#define EVT_SIGNAL_EXIT_BOOT_SERVICES           0x00000201\r
+#define EVT_SIGNAL_VIRTUAL_ADDRESS_CHANGE       0x60000202\r
 \r
-#define EVENT_NOTIFY_WAIT                       0x00000100\r
-#define EVENT_NOTIFY_SIGNAL                     0x00000200\r
+#define EVENT_TIMER                             EVT_TIMER\r
+#define EVENT_RUNTIME                           EVT_RUNTIME\r
+#define EVENT_RUNTIME_CONTEXT                   0x20000000\r
 \r
-#define EVENT_SIGNAL_EXIT_BOOT_SERVICES         0x00000201\r
-#define EVENT_SIGNAL_VIRTUAL_ADDRESS_CHANGE     0x60000202\r
+#define EVENT_NOTIFY_WAIT                       EVT_NOTIFY_WAIT\r
+#define EVENT_NOTIFY_SIGNAL                     EVT_NOTIFY_SIGNAL\r
+#define EVENT_SIGNAL_EXIT_BOOT_SERVICES         EVT_SIGNAL_EXIT_BOOT_SERVICES\r
+#define EVENT_SIGNAL_VIRTUAL_ADDRESS_CHANGE     EVT_SIGNAL_VIRTUAL_ADDRESS_CHANGE\r
 \r
 //\r
 // Prior to UEFI 2.0 Tiano extended these enums. This was replaced by\r
index 9ec19e3f4af1d0bc00fb0f95078cd782d5270966..5e1a3550606b3519f0e9643c0940f76749fef5f5 100644 (file)
@@ -64,7 +64,7 @@ _DriverUnloadHandler (
 \r
 \r
 /**\r
-  Notification Entry of ExitBootService event. In the entry, all notifications in _gDriverExitBootServicesEvent[] \r
+  Notification Entry of ExitBootService event. In the entry, all notifications in _gDriverExitBootServicesEvent[]\r
   would be invoked.\r
 \r
   @param Event   The Event that is being processed.\r
@@ -127,8 +127,8 @@ _ModuleEntryPoint (
   //\r
   if (_gDriverExitBootServicesEvent[0] != NULL) {\r
     Status = gBS->CreateEvent (\r
-                    EFI_EVENT_SIGNAL_EXIT_BOOT_SERVICES,\r
-                    EFI_TPL_NOTIFY,\r
+                    EVT_SIGNAL_EXIT_BOOT_SERVICES,\r
+                    TPL_NOTIFY,\r
                     _DriverExitBootServices,\r
                     NULL,\r
                     &_mDriverExitBootServicesNotifyEvent\r
index f03b881d35289c90bbaa83e3a21abeeb5592a5cf..72a2eb89d0cb10f0177bfe67be6c60694a7dd7c2 100644 (file)
@@ -2,13 +2,13 @@
   Mde UEFI library functions.\r
 \r
   Copyright (c) 2006 - 2007, Intel Corporation<BR>\r
-  All rights reserved. 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
+  All rights reserved. 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
+  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:  UefiLib.c\r
 \r
@@ -41,9 +41,9 @@ CompareIso639LanguageCode (
 }\r
 \r
 /**\r
-  This function searches the list of configuration tables stored in the EFI System \r
-  Table for a table with a GUID that matches TableGuid.  If a match is found, \r
-  then a pointer to the configuration table is returned in Table, and EFI_SUCCESS \r
+  This function searches the list of configuration tables stored in the EFI System\r
+  Table for a table with a GUID that matches TableGuid.  If a match is found,\r
+  then a pointer to the configuration table is returned in Table, and EFI_SUCCESS\r
   is returned.  If a matching GUID is not found, then EFI_NOT_FOUND is returned.\r
 \r
   @param  TableGuid       Pointer to table's GUID type..\r
@@ -55,7 +55,7 @@ CompareIso639LanguageCode (
 **/\r
 EFI_STATUS\r
 EFIAPI\r
-EfiGetSystemConfigurationTable (  \r
+EfiGetSystemConfigurationTable (\r
   IN  EFI_GUID  *TableGuid,\r
   OUT VOID      **Table\r
   )\r
@@ -79,9 +79,9 @@ EfiGetSystemConfigurationTable (
 }\r
 \r
 /**\r
-  This function causes the notification function to be executed for every protocol \r
-  of type ProtocolGuid instance that exists in the system when this function is \r
-  invoked.  In addition, every time a protocol of type ProtocolGuid instance is \r
+  This function causes the notification function to be executed for every protocol\r
+  of type ProtocolGuid instance that exists in the system when this function is\r
+  invoked.  In addition, every time a protocol of type ProtocolGuid instance is\r
   installed or reinstalled, the notification function is also executed.\r
 \r
   @param  ProtocolGuid    Supplies GUID of the protocol upon whose installation the event is fired.\r
@@ -90,7 +90,7 @@ EfiGetSystemConfigurationTable (
   @param  NotifyContext   The context parameter to pass to NotifyFunction.\r
   @param  Registration    A pointer to a memory location to receive the registration value.\r
 \r
-  @return The notification event that was created. \r
+  @return The notification event that was created.\r
 \r
 **/\r
 EFI_EVENT\r
@@ -111,7 +111,7 @@ EfiCreateProtocolNotifyEvent(
   //\r
 \r
   Status = gBS->CreateEvent (\r
-                  EFI_EVENT_NOTIFY_SIGNAL,\r
+                  EVT_NOTIFY_SIGNAL,\r
                   NotifyTpl,\r
                   NotifyFunction,\r
                   NotifyContext,\r
@@ -142,13 +142,13 @@ EfiCreateProtocolNotifyEvent(
 \r
 /**\r
   This function creates an event using NotifyTpl, NoifyFunction, and NotifyContext.\r
-  This event is signaled with EfiNamedEventSignal().  This provide the ability for \r
+  This event is signaled with EfiNamedEventSignal().  This provide the ability for\r
   one or more listeners on the same event named by the GUID specified by Name.\r
 \r
   @param  Name                  Supplies GUID name of the event.\r
   @param  NotifyTpl             Supplies the task priority level of the event notifications.\r
   @param  NotifyFunction        Supplies the function to notify when the event is signaled.\r
-  @param  NotifyContext         The context parameter to pass to NotifyFunction. \r
+  @param  NotifyContext         The context parameter to pass to NotifyFunction.\r
   @param  Registration          A pointer to a memory location to receive the registration value.\r
 \r
   @retval EFI_SUCCESS           A named event was created.\r
@@ -173,7 +173,7 @@ EfiNamedEventListen (
   // Create event\r
   //\r
   Status = gBS->CreateEvent (\r
-                  EFI_EVENT_NOTIFY_SIGNAL,\r
+                  EVT_NOTIFY_SIGNAL,\r
                   NotifyTpl,\r
                   NotifyFunction,\r
                   (VOID *) NotifyContext,\r
@@ -206,7 +206,7 @@ EfiNamedEventListen (
 }\r
 \r
 /**\r
-  This function signals the named event specified by Name.  The named event must \r
+  This function signals the named event specified by Name.  The named event must\r
   have been created with EfiNamedEventListen().\r
 \r
   @param  Name                  Supplies GUID name of the event.\r
@@ -243,13 +243,13 @@ EfiNamedEventSignal (
   return EFI_SUCCESS;\r
 }\r
 \r
-/** \r
+/**\r
   Returns the current TPL.\r
 \r
-  This function returns the current TPL.  There is no EFI service to directly \r
-  retrieve the current TPL. Instead, the RaiseTPL() function is used to raise \r
-  the TPL to TPL_HIGH_LEVEL.  This will return the current TPL.  The TPL level \r
-  can then immediately be restored back to the current TPL level with a call \r
+  This function returns the current TPL.  There is no EFI service to directly\r
+  retrieve the current TPL. Instead, the RaiseTPL() function is used to raise\r
+  the TPL to TPL_HIGH_LEVEL.  This will return the current TPL.  The TPL level\r
+  can then immediately be restored back to the current TPL level with a call\r
   to RestoreTPL().\r
 \r
   @param  VOID\r
@@ -265,7 +265,7 @@ EfiGetCurrentTpl (
 {\r
   EFI_TPL Tpl;\r
 \r
-  Tpl = gBS->RaiseTPL (EFI_TPL_HIGH_LEVEL); \r
+  Tpl = gBS->RaiseTPL (TPL_HIGH_LEVEL);\r
   gBS->RestoreTPL (Tpl);\r
 \r
   return Tpl;\r
@@ -273,8 +273,8 @@ EfiGetCurrentTpl (
 \r
 \r
 /**\r
-  This function initializes a basic mutual exclusion lock to the released state \r
-  and returns the lock.  Each lock provides mutual exclusion access at its task \r
+  This function initializes a basic mutual exclusion lock to the released state\r
+  and returns the lock.  Each lock provides mutual exclusion access at its task\r
   priority level.  Since there is no preemption or multiprocessor support in EFI,\r
   acquiring the lock only consists of raising to the locks TPL.\r
 \r
@@ -292,17 +292,17 @@ EfiInitializeLock (
   )\r
 {\r
   ASSERT (Lock != NULL);\r
-  ASSERT (Priority <= EFI_TPL_HIGH_LEVEL);\r
+  ASSERT (Priority <= TPL_HIGH_LEVEL);\r
 \r
   Lock->Tpl       = Priority;\r
-  Lock->OwnerTpl  = EFI_TPL_APPLICATION;\r
+  Lock->OwnerTpl  = TPL_APPLICATION;\r
   Lock->Lock      = EfiLockReleased ;\r
   return Lock;\r
 }\r
 \r
 /**\r
-  This function raises the system's current task priority level to the task \r
-  priority level of the mutual exclusion lock.  Then, it places the lock in the \r
+  This function raises the system's current task priority level to the task\r
+  priority level of the mutual exclusion lock.  Then, it places the lock in the\r
   acquired state.\r
 \r
   @param  Priority  The task priority level of the lock.\r
@@ -322,8 +322,8 @@ EfiAcquireLock (
 }\r
 \r
 /**\r
-  This function raises the system's current task priority level to the task \r
-  priority level of the mutual exclusion lock.  Then, it attempts to place the \r
+  This function raises the system's current task priority level to the task\r
+  priority level of the mutual exclusion lock.  Then, it attempts to place the\r
   lock in the acquired state.\r
 \r
   @param  Lock              A pointer to the lock to acquire.\r
@@ -357,8 +357,8 @@ EfiAcquireLockOrFail (
 }\r
 \r
 /**\r
-  This function transitions a mutual exclusion lock from the acquired state to \r
-  the released state, and restores the system's task priority level to its \r
+  This function transitions a mutual exclusion lock from the acquired state to\r
+  the released state, and restores the system's task priority level to its\r
   previous level.\r
 \r
   @param  Lock  A pointer to the lock to release.\r
@@ -376,7 +376,7 @@ EfiReleaseLock (
   ASSERT (Lock->Lock == EfiLockAcquired);\r
 \r
   Tpl = Lock->OwnerTpl;\r
-  \r
+\r
   Lock->Lock = EfiLockReleased;\r
 \r
   gBS->RestoreTPL (Tpl);\r
@@ -389,7 +389,7 @@ EfiReleaseLock (
   currently managing the controller specified by ControllerHandle.  This test\r
   is performed by evaluating if the the protocol specified by ProtocolGuid is\r
   present on ControllerHandle and is was opened by DriverBindingHandle with an\r
-  attribute of EFI_OPEN_PROTOCOL_BY_DRIVER. \r
+  attribute of EFI_OPEN_PROTOCOL_BY_DRIVER.\r
   If ProtocolGuid is NULL, then ASSERT().\r
 
   @param  ControllerHandle     A handle for a controller to test.
@@ -452,10 +452,10 @@ EfiTestManagedDevice (
   ChildHandle with an attribute of EFI_OPEN_PROTOCOL_BY_CHILD_CONTROLLER.\r
   If ProtocolGuid is NULL, then ASSERT().\r
 
-  @param  ControllerHandle     A handle for a (parent) controller to test. 
+  @param  ControllerHandle     A handle for a (parent) controller to test.
   @param  ChildHandle          A child handle to test.
   @param  ConsumsedGuid        Supplies the protocol that the child controller
-                               opens on its parent controller. 
+                               opens on its parent controller.
 
   @retval EFI_SUCCESS          ChildHandle is a child of the ControllerHandle.
   @retval EFI_UNSUPPORTED      ChildHandle is not a child of the
@@ -502,37 +502,37 @@ EfiTestChildHandle (
       break;\r
     }\r
   }\r
-  \r
+\r
   FreePool (OpenInfoBuffer);\r
   return Status;\r
 }\r
 \r
 /**\r
-  This function looks up a Unicode string in UnicodeStringTable.  If Language is \r
+  This function looks up a Unicode string in UnicodeStringTable.  If Language is\r
   a member of SupportedLanguages and a Unicode string is found in UnicodeStringTable\r
-  that matches the language code specified by Language, then it is returned in \r
+  that matches the language code specified by Language, then it is returned in\r
   UnicodeString.\r
 \r
-  @param  Language                A pointer to the ISO 639-2 language code for the \r
+  @param  Language                A pointer to the ISO 639-2 language code for the\r
                                   Unicode string to look up and return.\r
-  @param  SupportedLanguages      A pointer to the set of ISO 639-2 language codes \r
-                                  that the Unicode string table supports.  Language \r
+  @param  SupportedLanguages      A pointer to the set of ISO 639-2 language codes\r
+                                  that the Unicode string table supports.  Language\r
                                   must be a member of this set.\r
   @param  UnicodeStringTable      A pointer to the table of Unicode strings.\r
   @param  UnicodeString           A pointer to the Unicode string from UnicodeStringTable\r
                                   that matches the language specified by Language.\r
 \r
-  @retval  EFI_SUCCESS            The Unicode string that matches the language \r
+  @retval  EFI_SUCCESS            The Unicode string that matches the language\r
                                   specified by Language was found\r
-                                  in the table of Unicoide strings UnicodeStringTable, \r
+                                  in the table of Unicoide strings UnicodeStringTable,\r
                                   and it was returned in UnicodeString.\r
   @retval  EFI_INVALID_PARAMETER  Language is NULL.\r
   @retval  EFI_INVALID_PARAMETER  UnicodeString is NULL.\r
   @retval  EFI_UNSUPPORTED        SupportedLanguages is NULL.\r
   @retval  EFI_UNSUPPORTED        UnicodeStringTable is NULL.\r
-  @retval  EFI_UNSUPPORTED        The language specified by Language is not a \r
+  @retval  EFI_UNSUPPORTED        The language specified by Language is not a\r
                                   member of SupportedLanguages.\r
-  @retval  EFI_UNSUPPORTED        The language specified by Language is not \r
+  @retval  EFI_UNSUPPORTED        The language specified by Language is not\r
                                   supported by UnicodeStringTable.\r
 \r
 **/\r
@@ -593,13 +593,13 @@ LookupUnicodeString (
 \r
 /**\r
   This function adds a Unicode string to UnicodeStringTable.\r
-  If Language is a member of SupportedLanguages then UnicodeString is added to \r
-  UnicodeStringTable.  New buffers are allocated for both Language and \r
-  UnicodeString.  The contents of Language and UnicodeString are copied into \r
-  these new buffers.  These buffers are automatically freed when \r
+  If Language is a member of SupportedLanguages then UnicodeString is added to\r
+  UnicodeStringTable.  New buffers are allocated for both Language and\r
+  UnicodeString.  The contents of Language and UnicodeString are copied into\r
+  these new buffers.  These buffers are automatically freed when\r
   FreeUnicodeStringTable() is called.\r
 \r
-  @param  Language                A pointer to the ISO 639-2 language code for the Unicode \r
+  @param  Language                A pointer to the ISO 639-2 language code for the Unicode\r
                                   string to add.\r
   @param  SupportedLanguages      A pointer to the set of ISO 639-2 language codes\r
                                   that the Unicode string table supports.\r
@@ -607,19 +607,19 @@ LookupUnicodeString (
   @param  UnicodeStringTable      A pointer to the table of Unicode strings.\r
   @param  UnicodeString           A pointer to the Unicode string to add.\r
 \r
-  @retval EFI_SUCCESS             The Unicode string that matches the language \r
-                                  specified by Language was found in the table of \r
-                                  Unicode strings UnicodeStringTable, and it was \r
+  @retval EFI_SUCCESS             The Unicode string that matches the language\r
+                                  specified by Language was found in the table of\r
+                                  Unicode strings UnicodeStringTable, and it was\r
                                   returned in UnicodeString.\r
   @retval EFI_INVALID_PARAMETER   Language is NULL.\r
   @retval EFI_INVALID_PARAMETER   UnicodeString is NULL.\r
   @retval EFI_INVALID_PARAMETER   UnicodeString is an empty string.\r
   @retval EFI_UNSUPPORTED         SupportedLanguages is NULL.\r
-  @retval EFI_ALREADY_STARTED     A Unicode string with language Language is \r
+  @retval EFI_ALREADY_STARTED     A Unicode string with language Language is\r
                                   already present in UnicodeStringTable.\r
-  @retval EFI_OUT_OF_RESOURCES    There is not enough memory to add another \r
+  @retval EFI_OUT_OF_RESOURCES    There is not enough memory to add another\r
                                   Unicode string to UnicodeStringTable.\r
-  @retval EFI_UNSUPPORTED         The language specified by Language is not a \r
+  @retval EFI_UNSUPPORTED         The language specified by Language is not a\r
                                   member of SupportedLanguages.\r
 \r
 **/\r
@@ -760,7 +760,7 @@ AddUnicodeString (
 /**\r
   This function frees the table of Unicode strings in UnicodeStringTable.\r
   If UnicodeStringTable is NULL, then EFI_SUCCESS is returned.\r
-  Otherwise, each language code, and each Unicode string in the Unicode string \r
+  Otherwise, each language code, and each Unicode string in the Unicode string\r
   table are freed, and EFI_SUCCESS is returned.\r
 \r
   @param  UnicodeStringTable  A pointer to the table of Unicode strings.\r
index 081e25439e8cffc9f929509e9a8020bb260e672c..d588ecea8eb2ba4d7a31bab5f2c6e475edf6cd1d 100644 (file)
@@ -59,7 +59,7 @@ EfiCreateEventLegacyBoot (
   )\r
 {\r
   return EfiCreateEventLegacyBootEx (\r
-           EFI_TPL_CALLBACK,\r
+           TPL_CALLBACK,\r
            InternalEmptyFuntion,\r
            NULL,\r
            LegacyBootEvent\r
@@ -114,7 +114,7 @@ EfiCreateEventLegacyBootEx (
     // For UEFI 2.0 and the future use an Event Group\r
     //\r
     Status = gBS->CreateEventEx (\r
-                    EVENT_NOTIFY_SIGNAL,\r
+                    EVT_NOTIFY_SIGNAL,\r
                     NotifyTpl,\r
                     NotifyFunction,\r
                     NotifyContext,\r
@@ -149,7 +149,7 @@ EfiCreateEventReadyToBoot (
   )\r
 {\r
   return EfiCreateEventReadyToBootEx (\r
-           EFI_TPL_CALLBACK,\r
+           TPL_CALLBACK,\r
            InternalEmptyFuntion,\r
            NULL,\r
            ReadyToBootEvent\r
@@ -204,7 +204,7 @@ EfiCreateEventReadyToBootEx (
     // For UEFI 2.0 and the future use an Event Group\r
     //\r
     Status = gBS->CreateEventEx (\r
-                    EVENT_NOTIFY_SIGNAL,\r
+                    EVT_NOTIFY_SIGNAL,\r
                     NotifyTpl,\r
                     NotifyFunction,\r
                     NotifyContext,\r