diff options
author | qhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-07-08 07:19:27 +0000 |
---|---|---|
committer | qhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-07-08 07:19:27 +0000 |
commit | 91b66c164ad0ae7c2f18a37552718baefac17113 (patch) | |
tree | fb6ad215f06efc318a7ff9826a9b08f453044049 /EdkCompatibilityPkg/Foundation | |
parent | d850121ecda615d7f5817c6cc429336ac2168360 (diff) | |
download | edk2-platforms-91b66c164ad0ae7c2f18a37552718baefac17113.tar.xz |
Some adjustment in ECP to make it compatible with EDK1.01(EDK1117) foundation in UEFI2.0+Framework0.9x build mode for silicon modules
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5419 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'EdkCompatibilityPkg/Foundation')
-rw-r--r-- | EdkCompatibilityPkg/Foundation/Include/EfiCompNameSupport.h | 64 |
1 files changed, 63 insertions, 1 deletions
diff --git a/EdkCompatibilityPkg/Foundation/Include/EfiCompNameSupport.h b/EdkCompatibilityPkg/Foundation/Include/EfiCompNameSupport.h index 7159588ee1..9379086ba4 100644 --- a/EdkCompatibilityPkg/Foundation/Include/EfiCompNameSupport.h +++ b/EdkCompatibilityPkg/Foundation/Include/EfiCompNameSupport.h @@ -1,6 +1,6 @@ /*++
-Copyright (c) 2004, Intel Corporation
+Copyright (c) 2004 - 2008, Intel Corporation
All rights reserved. This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at
@@ -40,6 +40,21 @@ Abstract: (ComponentName), \
(DriverConfiguration), \
(DriverDiagnostics))
+
+#define INSTALL_ALL_DRIVER_PROTOCOLS2(ImageHandle, \
+ SystemTable, \
+ DriverBinding, \
+ DriverBindingHandle, \
+ ComponentName, \
+ DriverConfiguration, \
+ DriverDiagnostics) \
+ EfiLibInstallAllDriverProtocols2((ImageHandle), \
+ (SystemTable), \
+ (DriverBinding), \
+ (DriverBindingHandle), \
+ (ComponentName), \
+ (DriverConfiguration), \
+ (DriverDiagnostics))
#else
#define INSTALL_ALL_DRIVER_PROTOCOLS(ImageHandle, \
@@ -53,6 +68,53 @@ Abstract: (SystemTable), \
(DriverBinding), \
(DriverBindingHandle))
+
+#define INSTALL_ALL_DRIVER_PROTOCOLS2(ImageHandle, \
+ SystemTable, \
+ DriverBinding, \
+ DriverBindingHandle, \
+ ComponentName, \
+ DriverConfiguration, \
+ DriverDiagnostics) \
+ EfiLibInstallDriverBinding ((ImageHandle), \
+ (SystemTable), \
+ (DriverBinding), \
+ (DriverBindingHandle))
#endif
+#if (EFI_SPECIFICATION_VERSION < 0x00020000)
+
+#define INSTALL_ALL_DRIVER_PROTOCOLS_OR_PROTOCOLS2(ImageHandle, \
+ SystemTable, \
+ DriverBinding, \
+ DriverBindingHandle, \
+ ComponentName, \
+ DriverConfiguration, \
+ DriverDiagnostics) \
+ INSTALL_ALL_DRIVER_PROTOCOLS ((ImageHandle), \
+ (SystemTable), \
+ (DriverBinding), \
+ (DriverBindingHandle), \
+ (ComponentName), \
+ (DriverConfiguration), \
+ (DriverDiagnostics))
+
+#else
+
+#define INSTALL_ALL_DRIVER_PROTOCOLS_OR_PROTOCOLS2(ImageHandle, \
+ SystemTable, \
+ DriverBinding, \
+ DriverBindingHandle, \
+ ComponentName, \
+ DriverConfiguration, \
+ DriverDiagnostics) \
+ INSTALL_ALL_DRIVER_PROTOCOLS2 ((ImageHandle), \
+ (SystemTable), \
+ (DriverBinding), \
+ (DriverBindingHandle), \
+ (ComponentName), \
+ (DriverConfiguration), \
+ (DriverDiagnostics))
+
+#endif
#endif
|