]> git.proxmox.com Git - mirror_edk2.git/blob - UnixPkg/MiscSubClassPlatformDxe/MiscSubClassDriver.h
Update the copyright notice format
[mirror_edk2.git] / UnixPkg / MiscSubClassPlatformDxe / MiscSubClassDriver.h
1 /*++
2
3 Copyright (c) 2006 - 2009, 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 MiscSubclassDriver.h
15
16 Abstract:
17
18 Header file for MiscSubclass Driver.
19
20 --*/
21
22 #ifndef _MISC_SUBCLASS_DRIVER_H
23 #define _MISC_SUBCLASS_DRIVER_H
24
25 #include <FrameworkDxe.h>
26 #include <UnixDxe.h>
27 #include <Guid/DataHubRecords.h>
28 #include <IndustryStandard/SmBios.h>
29 #include <Protocol/Smbios.h>
30 #include <Protocol/UnixIo.h>
31 #include <Library/BaseLib.h>
32 #include <Library/DebugLib.h>
33 #include <Library/HiiLib.h>
34 #include <Library/UefiLib.h>
35 #include <Library/UefiDriverEntryPoint.h>
36 #include <Library/BaseMemoryLib.h>
37 #include <Library/MemoryAllocationLib.h>
38 #include <Library/UefiBootServicesTableLib.h>
39 #include <Library/DevicePathLib.h>
40 #include <Library/PcdLib.h>
41
42
43 #include <MiscDevicePath.h>
44 #include <Protocol/FrameworkHii.h>
45 #include <Library/HiiLib.h>
46
47 //
48 // Data table entry update function.
49 //
50 typedef EFI_STATUS (EFIAPI EFI_MISC_SMBIOS_DATA_FUNCTION) (
51 IN VOID *RecordData,
52 IN EFI_SMBIOS_PROTOCOL *Smbios
53 );
54
55 //
56 // Data table entry definition.
57 //
58 typedef struct {
59 //
60 // intermediat input data for SMBIOS record
61 //
62 VOID *RecordData;
63 EFI_MISC_SMBIOS_DATA_FUNCTION *Function;
64 } EFI_MISC_SMBIOS_DATA_TABLE;
65
66 //
67 // Data Table extern definitions.
68 //
69 #define MISC_SMBIOS_TABLE_EXTERNS(NAME1, NAME2, NAME3) \
70 extern NAME1 NAME2 ## Data; \
71 extern EFI_MISC_SMBIOS_DATA_FUNCTION NAME3 ## Function
72
73
74 //
75 // Data Table entries
76 //
77 #define MISC_SMBIOS_TABLE_ENTRY_DATA_AND_FUNCTION(NAME1, NAME2) \
78 { \
79 & NAME1 ## Data, \
80 & NAME2 ## Function \
81 }
82
83 //
84 // Global definition macros.
85 //
86 #define MISC_SMBIOS_TABLE_DATA(NAME1, NAME2) \
87 NAME1 NAME2 ## Data
88
89 #define MISC_SMBIOS_TABLE_FUNCTION(NAME2) \
90 EFI_STATUS EFIAPI NAME2 ## Function( \
91 IN VOID *RecordData, \
92 IN EFI_SMBIOS_PROTOCOL *Smbios \
93 )
94
95
96 //
97 // Data Table Array
98 //
99 extern EFI_MISC_SMBIOS_DATA_TABLE mMiscSubclassDataTable[];
100
101 //
102 // Data Table Array Entries
103 //
104 extern UINTN mMiscSubclassDataTableEntries;
105 extern UINT8 MiscSubclassStrings[];
106 extern EFI_HII_HANDLE mHiiHandle;
107
108 //
109 // Prototypes
110 //
111 EFI_STATUS
112 MiscSubclassDriverEntryPoint (
113 IN EFI_HANDLE ImageHandle,
114 IN EFI_SYSTEM_TABLE *SystemTable
115 );
116
117
118 #endif /* _MISC_SUBCLASS_DRIVER_H */
119
120 /* eof - MiscSubclassDriver.h */