1 /*++
2 
3 Copyright (c) 2004 - 2008, Intel Corporation. All rights reserved.<BR>
4 This program and the accompanying materials
5 are licensed and made available under the terms and conditions of the BSD License
6 which accompanies this distribution.  The full text of the license may be found at
7 http://opensource.org/licenses/bsd-license.php
8 
9 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
10 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
11 
12 Module Name:
13 
14   EfiCompNameSupport.h
15 
16 Abstract:
17 
18   Private data structures for the Console Splitter driver
19 
20 --*/
21 
22 #ifndef EFI_COMPONENT_NAME_SUPPORT_H
23 #define EFI_COMPONENT_NAME_SUPPORT_H
24 
25 #include "Tiano.h"
26 
27 #ifndef EFI_SIZE_REDUCTION_APPLIED
28 
29 #define INSTALL_ALL_DRIVER_PROTOCOLS(ImageHandle,               \
30                                      SystemTable,               \
31                                      DriverBinding,             \
32                                      DriverBindingHandle,       \
33                                      ComponentName,             \
34                                      DriverConfiguration,       \
35                                      DriverDiagnostics)         \
36         EfiLibInstallAllDriverProtocols ((ImageHandle),         \
37                                          (SystemTable),         \
38                                          (DriverBinding),       \
39                                          (DriverBindingHandle), \
40                                          (ComponentName),       \
41                                          (DriverConfiguration), \
42                                          (DriverDiagnostics))
43 
44 #define INSTALL_ALL_DRIVER_PROTOCOLS2(ImageHandle,              \
45                                      SystemTable,               \
46                                      DriverBinding,             \
47                                      DriverBindingHandle,       \
48                                      ComponentName,             \
49                                      DriverConfiguration,       \
50                                      DriverDiagnostics)         \
51         EfiLibInstallAllDriverProtocols2((ImageHandle),         \
52                                          (SystemTable),         \
53                                          (DriverBinding),       \
54                                          (DriverBindingHandle), \
55                                          (ComponentName),       \
56                                          (DriverConfiguration), \
57                                          (DriverDiagnostics))
58 #else
59 
60 #define INSTALL_ALL_DRIVER_PROTOCOLS(ImageHandle,             \
61                                      SystemTable,             \
62                                      DriverBinding,           \
63                                      DriverBindingHandle,     \
64                                      ComponentName,           \
65                                      DriverConfiguration,     \
66                                      DriverDiagnostics)       \
67         EfiLibInstallDriverBinding ((ImageHandle),            \
68                                     (SystemTable),            \
69                                     (DriverBinding),          \
70                                     (DriverBindingHandle))
71 
72 #define INSTALL_ALL_DRIVER_PROTOCOLS2(ImageHandle,            \
73                                      SystemTable,             \
74                                      DriverBinding,           \
75                                      DriverBindingHandle,     \
76                                      ComponentName,           \
77                                      DriverConfiguration,     \
78                                      DriverDiagnostics)       \
79         EfiLibInstallDriverBinding ((ImageHandle),            \
80                                     (SystemTable),            \
81                                     (DriverBinding),          \
82                                     (DriverBindingHandle))
83 #endif
84 
85 #if (EFI_SPECIFICATION_VERSION < 0x00020000)
86 
87 #define INSTALL_ALL_DRIVER_PROTOCOLS_OR_PROTOCOLS2(ImageHandle,    \
88                                              SystemTable,          \
89                                              DriverBinding,        \
90                                              DriverBindingHandle,  \
91                                              ComponentName,        \
92                                              DriverConfiguration,  \
93                                              DriverDiagnostics)    \
94         INSTALL_ALL_DRIVER_PROTOCOLS       ((ImageHandle),         \
95                                             (SystemTable),         \
96                                             (DriverBinding),       \
97                                             (DriverBindingHandle), \
98                                             (ComponentName),       \
99                                             (DriverConfiguration), \
100                                             (DriverDiagnostics))
101 
102 #else
103 
104 #define INSTALL_ALL_DRIVER_PROTOCOLS_OR_PROTOCOLS2(ImageHandle,    \
105                                              SystemTable,          \
106                                              DriverBinding,        \
107                                              DriverBindingHandle,  \
108                                              ComponentName,        \
109                                              DriverConfiguration,  \
110                                              DriverDiagnostics)    \
111         INSTALL_ALL_DRIVER_PROTOCOLS2      ((ImageHandle),         \
112                                             (SystemTable),         \
113                                             (DriverBinding),       \
114                                             (DriverBindingHandle), \
115                                             (ComponentName),       \
116                                             (DriverConfiguration), \
117                                             (DriverDiagnostics))
118 
119 #endif
120 #endif
121