]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Universal/DebugSupportDxe/Ia32/DebugSupport.h
Improve coding style in MdeModulePkg.
[mirror_edk2.git] / MdeModulePkg / Universal / DebugSupportDxe / Ia32 / DebugSupport.h
index 4628117b0956b73a9922072ab0484ca9005c6f92..c384ba1a40e25e0e425195b6523603d04b2119f7 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Generic debug support macros, typedefs and prototypes for IA32/x64.\r
 \r
-Copyright (c) 2006 - 2009, Intel Corporation                                                         \r
+Copyright (c) 2006 - 2010, 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
@@ -37,12 +37,17 @@ VOID
   VOID\r
   );\r
 \r
+typedef\r
+VOID\r
+(EFIAPI *CALLBACK_FUNC) (\r
+  );\r
+\r
 typedef struct {\r
   IA32_IDT_GATE_DESCRIPTOR  OrigDesc;\r
   DEBUG_PROC                OrigVector;\r
   IA32_IDT_GATE_DESCRIPTOR  NewDesc;\r
   DEBUG_PROC                StubEntry;\r
-  VOID (EFIAPI *RegisteredCallback) ();\r
+  CALLBACK_FUNC             RegisteredCallback;\r
 } IDT_ENTRY;\r
 \r
 extern UINT8                     InterruptEntryStub[];\r
@@ -258,7 +263,7 @@ GetInterruptHandleFromIdt (
 **/\r
 EFI_STATUS\r
 ManageIdtEntryTable (\r
-  VOID               (EFIAPI *NewCallback)(),\r
+  CALLBACK_FUNC      NewCallback,\r
   EFI_EXCEPTION_TYPE ExceptionType\r
   );\r
 \r
@@ -277,7 +282,7 @@ ManageIdtEntryTable (
 VOID\r
 HookEntry (\r
   IN EFI_EXCEPTION_TYPE            ExceptionType,\r
-  IN VOID                         (EFIAPI *NewCallback) ()\r
+  IN CALLBACK_FUNC                 NewCallback\r
   );\r
 \r
 /**\r