]> git.proxmox.com Git - mirror_edk2.git/blame - IntelFrameworkModulePkg/Universal/DataHubDxe/DataHub.h
remove some comments introduced by tools.
[mirror_edk2.git] / IntelFrameworkModulePkg / Universal / DataHubDxe / DataHub.h
CommitLineData
83f6d1a0 1/*++\r
2\r
3Copyright (c) 2006, Intel Corporation \r
4All rights reserved. This program and the accompanying materials \r
5are licensed and made available under the terms and conditions of the BSD License \r
6which accompanies this distribution. The full text of the license may be found at \r
7http://opensource.org/licenses/bsd-license.php \r
8 \r
9THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
10WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
11\r
12Module Name:\r
13\r
14 DataHub.h\r
15\r
16Abstract:\r
17 This code supports a the private implementation \r
18 of the Data Hub protocol\r
19\r
20--*/\r
21\r
22#ifndef _DATA_HUB_H_\r
23#define _DATA_HUB_H_\r
24\r
ed7748fe 25\r
83f6d1a0 26#include <PiDxe.h>\r
ed7748fe 27\r
83f6d1a0 28#include <Protocol/DataHub.h>\r
ed7748fe 29\r
83f6d1a0 30#include <Library/DebugLib.h>\r
31#include <Library/UefiDriverEntryPoint.h>\r
32#include <Library/UefiLib.h>\r
33#include <Library/BaseLib.h>\r
34#include <Library/BaseMemoryLib.h>\r
35#include <Library/MemoryAllocationLib.h>\r
36#include <Library/UefiBootServicesTableLib.h>\r
37#include <Library/UefiRuntimeServicesTableLib.h>\r
38\r
39#define DATA_HUB_INSTANCE_SIGNATURE EFI_SIGNATURE_32 ('D', 'H', 'u', 'b')\r
40typedef struct {\r
41 UINT32 Signature;\r
42\r
43 EFI_HANDLE Handle;\r
44\r
45 //\r
46 // Produced protocol(s)\r
47 //\r
48 EFI_DATA_HUB_PROTOCOL DataHub;\r
49\r
50 //\r
51 // Private Data\r
52 //\r
53 //\r
54 // Updates to GlobalMonotonicCount, LogListHead, and FilterDriverListHead\r
55 // must be locked.\r
56 //\r
57 EFI_LOCK DataLock;\r
58\r
59 //\r
60 // Runing Monotonic Count to use for each error record.\r
61 // Increment AFTER use in an error record.\r
62 //\r
63 UINT64 GlobalMonotonicCount;\r
64\r
65 //\r
66 // List of EFI_DATA_ENTRY structures. This is the data log! The list\r
67 // must be in assending order of LogMonotonicCount.\r
68 //\r
69 LIST_ENTRY DataListHead;\r
70\r
71 //\r
72 // List of EFI_DATA_HUB_FILTER_DRIVER structures. Represents all\r
73 // the registered filter drivers.\r
74 //\r
75 LIST_ENTRY FilterDriverListHead;\r
76\r
77} DATA_HUB_INSTANCE;\r
78\r
79#define DATA_HUB_INSTANCE_FROM_THIS(this) CR (this, DATA_HUB_INSTANCE, DataHub, DATA_HUB_INSTANCE_SIGNATURE)\r
80\r
81//\r
82// Private data structure to contain the data log. One record per\r
83// structure. Head pointer to the list is the Log member of\r
84// EFI_DATA_ENTRY. Record is a copy of the data passed in.\r
85//\r
86#define EFI_DATA_ENTRY_SIGNATURE EFI_SIGNATURE_32 ('D', 'r', 'e', 'c')\r
87typedef struct {\r
88 UINT32 Signature;\r
89 LIST_ENTRY Link;\r
90\r
91 EFI_DATA_RECORD_HEADER *Record;\r
92\r
93 UINTN RecordSize;\r
94\r
95} EFI_DATA_ENTRY;\r
96\r
97#define DATA_ENTRY_FROM_LINK(link) CR (link, EFI_DATA_ENTRY, Link, EFI_DATA_ENTRY_SIGNATURE)\r
98\r
99//\r
100// Private data to contain the filter driver Event and it's\r
101// associated EFI_TPL.\r
102//\r
103#define EFI_DATA_HUB_FILTER_DRIVER_SIGNATURE EFI_SIGNATURE_32 ('D', 'h', 'F', 'd')\r
104\r
105typedef struct {\r
106 UINT32 Signature;\r
107 LIST_ENTRY Link;\r
108\r
109 //\r
110 // Store Filter Driver Event and Tpl level it can be Signaled at.\r
111 //\r
112 EFI_EVENT Event;\r
113 EFI_TPL Tpl;\r
114\r
115 //\r
116 // Monotonic count on the get next operation for Event.\r
117 // Zero indicates get next has not been called for this event yet.\r
118 //\r
119 UINT64 GetNextMonotonicCount;\r
120\r
121 //\r
122 // Filter driver will register what class filter should be used.\r
123 //\r
124 UINT64 ClassFilter;\r
125\r
126 //\r
127 // Filter driver will register what record guid filter should be used.\r
128 //\r
129 EFI_GUID FilterDataRecordGuid;\r
130\r
131} DATA_HUB_FILTER_DRIVER;\r
132\r
133#define FILTER_ENTRY_FROM_LINK(link) CR (link, DATA_HUB_FILTER_DRIVER, Link, EFI_DATA_HUB_FILTER_DRIVER_SIGNATURE)\r
134\r
135#endif\r