TianoCore EDK2 master
Loading...
Searching...
No Matches
GtdtGenerator.c
Go to the documentation of this file.
1
12#include <Library/AcpiLib.h>
13#include <Library/DebugLib.h>
15#include <Protocol/AcpiTable.h>
16
17// Module specific include files.
18#include <AcpiTableGenerator.h>
23
42 );
43
51 );
52
60 );
61
69 );
70
91EFIAPI
95 IN CONST UINT32 PlatformTimerCount,
96 IN CONST UINT32 AcpiTableRevision
97 )
98{
99 EFI_STATUS Status;
100 CM_ARM_GENERIC_TIMER_INFO *GenericTimerInfo;
101
102 ASSERT (CfgMgrProtocol != NULL);
103 ASSERT (Gtdt != NULL);
104
105 Status = GetEArmObjGenericTimerInfo (
106 CfgMgrProtocol,
108 &GenericTimerInfo,
109 NULL
110 );
111
112 if (EFI_ERROR (Status)) {
113 DEBUG ((
114 DEBUG_ERROR,
115 "ERROR: GTDT: Failed to get GenericTimerInfo. Status = %r\n",
116 Status
117 ));
118 return Status;
119 }
120
121 Gtdt->CntControlBasePhysicalAddress =
122 GenericTimerInfo->CounterControlBaseAddress;
123 Gtdt->Reserved = EFI_ACPI_RESERVED_DWORD;
124 Gtdt->SecurePL1TimerGSIV = GenericTimerInfo->SecurePL1TimerGSIV;
125 Gtdt->SecurePL1TimerFlags = GenericTimerInfo->SecurePL1TimerFlags;
126 Gtdt->NonSecurePL1TimerGSIV = GenericTimerInfo->NonSecurePL1TimerGSIV;
127 Gtdt->NonSecurePL1TimerFlags = GenericTimerInfo->NonSecurePL1TimerFlags;
128 Gtdt->VirtualTimerGSIV = GenericTimerInfo->VirtualTimerGSIV;
129 Gtdt->VirtualTimerFlags = GenericTimerInfo->VirtualTimerFlags;
130 Gtdt->NonSecurePL2TimerGSIV = GenericTimerInfo->NonSecurePL2TimerGSIV;
131 Gtdt->NonSecurePL2TimerFlags = GenericTimerInfo->NonSecurePL2TimerFlags;
132 Gtdt->CntReadBasePhysicalAddress =
133 GenericTimerInfo->CounterReadBaseAddress;
134 Gtdt->PlatformTimerCount = PlatformTimerCount;
135 Gtdt->PlatformTimerOffset = (PlatformTimerCount == 0) ? 0 :
137
139 Gtdt->VirtualPL2TimerGSIV = GenericTimerInfo->VirtualPL2TimerGSIV;
140 Gtdt->VirtualPL2TimerFlags = GenericTimerInfo->VirtualPL2TimerFlags;
141 }
142
143 return Status;
144}
145
154STATIC
155VOID
158 IN CONST UINT32 WatchdogOffset,
159 IN CONST CM_ARM_GENERIC_WATCHDOG_INFO *WatchdogInfoList,
160 IN UINT32 WatchdogCount
161 )
162{
164
165 ASSERT (Gtdt != NULL);
166 ASSERT (WatchdogInfoList != NULL);
167
169 ((UINT8 *)Gtdt + WatchdogOffset);
170
171 while (WatchdogCount-- != 0) {
172 // Add watchdog entry
173 DEBUG ((DEBUG_INFO, "GTDT: Watchdog = 0x%p\n", Watchdog));
174 Watchdog->Type = EFI_ACPI_6_4_GTDT_ARM_GENERIC_WATCHDOG;
175 Watchdog->Length =
177 Watchdog->Reserved = EFI_ACPI_RESERVED_BYTE;
178 Watchdog->RefreshFramePhysicalAddress =
179 WatchdogInfoList->RefreshFrameAddress;
180 Watchdog->WatchdogControlFramePhysicalAddress =
181 WatchdogInfoList->ControlFrameAddress;
182 Watchdog->WatchdogTimerGSIV = WatchdogInfoList->TimerGSIV;
183 Watchdog->WatchdogTimerFlags = WatchdogInfoList->Flags;
184 Watchdog++;
185 WatchdogInfoList++;
186 } // for
187}
188
206BOOLEAN
207EFIAPI
209 IN CONST VOID *Frame1,
210 IN CONST VOID *Frame2,
211 IN UINTN Index1,
212 IN UINTN Index2
213 )
214{
215 UINT8 FrameNumber1;
216 UINT8 FrameNumber2;
217
218 ASSERT ((Frame1 != NULL) && (Frame2 != NULL));
219
220 FrameNumber1 = ((CM_ARM_GTBLOCK_TIMER_FRAME_INFO *)Frame1)->FrameNumber;
221 FrameNumber2 = ((CM_ARM_GTBLOCK_TIMER_FRAME_INFO *)Frame2)->FrameNumber;
222
223 if (FrameNumber1 == FrameNumber2) {
224 DEBUG ((
225 DEBUG_ERROR,
226 "ERROR: GTDT: GT Block Frame Info Structures %d and %d have the same " \
227 "frame number: 0x%x.\n",
228 Index1,
229 Index2,
230 FrameNumber1
231 ));
232 return TRUE;
233 }
234
235 return FALSE;
236}
237
249STATIC
253 IN CONST CM_ARM_GTBLOCK_TIMER_FRAME_INFO *GTBlockTimerFrameList,
254 IN UINT32 GTBlockFrameCount
255 )
256{
257 BOOLEAN IsFrameNumberDuplicated;
258
259 ASSERT (GtBlockFrame != NULL);
260 ASSERT (GTBlockTimerFrameList != NULL);
261
262 IsFrameNumberDuplicated = FindDuplicateValue (
263 GTBlockTimerFrameList,
264 GTBlockFrameCount,
267 );
268 // Duplicate entry was found so timer frame numbers provided are invalid
269 if (IsFrameNumberDuplicated) {
270 return EFI_INVALID_PARAMETER;
271 }
272
273 while (GTBlockFrameCount-- != 0) {
274 DEBUG ((
275 DEBUG_INFO,
276 "GTDT: GtBlockFrame = 0x%p\n",
277 GtBlockFrame
278 ));
279
280 if (GTBlockTimerFrameList->FrameNumber >= 8) {
281 DEBUG ((
282 DEBUG_ERROR,
283 "ERROR: GTDT: Frame number %d is not in the range 0-7\n",
284 GTBlockTimerFrameList->FrameNumber
285 ));
286 return EFI_INVALID_PARAMETER;
287 }
288
289 GtBlockFrame->GTFrameNumber = GTBlockTimerFrameList->FrameNumber;
290 GtBlockFrame->Reserved[0] = EFI_ACPI_RESERVED_BYTE;
291 GtBlockFrame->Reserved[1] = EFI_ACPI_RESERVED_BYTE;
292 GtBlockFrame->Reserved[2] = EFI_ACPI_RESERVED_BYTE;
293
294 GtBlockFrame->CntBaseX = GTBlockTimerFrameList->PhysicalAddressCntBase;
295 GtBlockFrame->CntEL0BaseX =
296 GTBlockTimerFrameList->PhysicalAddressCntEL0Base;
297
298 GtBlockFrame->GTxPhysicalTimerGSIV =
299 GTBlockTimerFrameList->PhysicalTimerGSIV;
300 GtBlockFrame->GTxPhysicalTimerFlags =
301 GTBlockTimerFrameList->PhysicalTimerFlags;
302
303 GtBlockFrame->GTxVirtualTimerGSIV = GTBlockTimerFrameList->VirtualTimerGSIV;
304 GtBlockFrame->GTxVirtualTimerFlags =
305 GTBlockTimerFrameList->VirtualTimerFlags;
306
307 GtBlockFrame->GTxCommonFlags = GTBlockTimerFrameList->CommonFlags;
308 GtBlockFrame++;
309 GTBlockTimerFrameList++;
310 } // for
311
312 return EFI_SUCCESS;
313}
314
329STATIC
334 IN CONST UINT32 GTBlockOffset,
335 IN CONST CM_ARM_GTBLOCK_INFO *GTBlockInfo,
336 IN UINT32 BlockTimerCount
337 )
338{
339 EFI_STATUS Status;
342 CM_ARM_GTBLOCK_TIMER_FRAME_INFO *GTBlockTimerFrameList;
343 UINT32 GTBlockTimerFrameCount;
344 UINTN Length;
345
346 ASSERT (Gtdt != NULL);
347 ASSERT (GTBlockInfo != NULL);
348
349 GTBlock = (EFI_ACPI_6_4_GTDT_GT_BLOCK_STRUCTURE *)((UINT8 *)Gtdt +
350 GTBlockOffset);
351
352 while (BlockTimerCount-- != 0) {
353 DEBUG ((DEBUG_INFO, "GTDT: GTBlock = 0x%p\n", GTBlock));
354
355 Status = GetEArmObjGTBlockTimerFrameInfo (
356 CfgMgrProtocol,
357 GTBlockInfo->GTBlockTimerFrameToken,
358 &GTBlockTimerFrameList,
359 &GTBlockTimerFrameCount
360 );
361 if (EFI_ERROR (Status) ||
362 (GTBlockTimerFrameCount != GTBlockInfo->GTBlockTimerFrameCount))
363 {
364 DEBUG ((
365 DEBUG_ERROR,
366 "ERROR: GTDT: Failed to get Generic Timer Frames. Status = %r\n",
367 Status
368 ));
369 return Status;
370 }
371
372 Length = sizeof (EFI_ACPI_6_4_GTDT_GT_BLOCK_STRUCTURE) +
374 GTBlockInfo->GTBlockTimerFrameCount);
375
376 // Check that the length of the GT block does not
377 // exceed MAX_UINT16
378 if (Length > MAX_UINT16) {
379 Status = EFI_INVALID_PARAMETER;
380 DEBUG ((
381 DEBUG_ERROR,
382 "ERROR: GTDT: Too many GT Frames. Count = %d. " \
383 "Maximum supported GT Block size exceeded. " \
384 "Status = %r\n",
385 GTBlockInfo->GTBlockTimerFrameCount,
386 Status
387 ));
388 return Status;
389 }
390
391 GTBlock->Type = EFI_ACPI_6_4_GTDT_GT_BLOCK;
392 GTBlock->Length = (UINT16)Length;
393 GTBlock->Reserved = EFI_ACPI_RESERVED_BYTE;
394 GTBlock->CntCtlBase = GTBlockInfo->GTBlockPhysicalAddress;
395 GTBlock->GTBlockTimerCount = GTBlockInfo->GTBlockTimerFrameCount;
396 GTBlock->GTBlockTimerOffset =
398
400 ((UINT8 *)GTBlock + GTBlock->GTBlockTimerOffset);
401
402 // Add GT Block Timer frames
403 Status = AddGTBlockTimerFrames (
404 GtBlockFrame,
405 GTBlockTimerFrameList,
406 GTBlockTimerFrameCount
407 );
408 if (EFI_ERROR (Status)) {
409 DEBUG ((
410 DEBUG_ERROR,
411 "ERROR: GTDT: Failed to add Generic Timer Frames. Status = %r\n",
412 Status
413 ));
414 return Status;
415 }
416
417 // Next GTBlock
418 GTBlock = (EFI_ACPI_6_4_GTDT_GT_BLOCK_STRUCTURE *)((UINT8 *)GTBlock +
419 GTBlock->Length);
420 GTBlockInfo++;
421 }// for
422
423 return EFI_SUCCESS;
424}
425
449STATIC
451EFIAPI
457 )
458{
459 EFI_STATUS Status;
460 UINT32 TableSize;
461 UINT32 PlatformTimerCount;
462 UINT32 WatchdogCount;
463 UINT32 BlockTimerCount;
464 CM_ARM_GENERIC_WATCHDOG_INFO *WatchdogInfoList;
465 CM_ARM_GTBLOCK_INFO *GTBlockInfo;
467 UINT32 Idx;
468 UINT32 GTBlockOffset;
469 UINT32 WatchdogOffset;
470
471 ASSERT (This != NULL);
472 ASSERT (AcpiTableInfo != NULL);
473 ASSERT (CfgMgrProtocol != NULL);
474 ASSERT (Table != NULL);
475 ASSERT (AcpiTableInfo->TableGeneratorId == This->GeneratorID);
476 ASSERT (AcpiTableInfo->AcpiTableSignature == This->AcpiTableSignature);
477
478 if ((AcpiTableInfo->AcpiTableRevision < This->MinAcpiTableRevision) ||
479 (AcpiTableInfo->AcpiTableRevision > This->AcpiTableRevision))
480 {
481 DEBUG ((
482 DEBUG_ERROR,
483 "ERROR: GTDT: Requested table revision = %d, is not supported."
484 "Supported table revision: Minimum = %d, Maximum = %d\n",
485 AcpiTableInfo->AcpiTableRevision,
486 This->MinAcpiTableRevision,
487 This->AcpiTableRevision
488 ));
489 return EFI_INVALID_PARAMETER;
490 }
491
492 *Table = NULL;
493 Status = GetEArmObjPlatformGTBlockInfo (
494 CfgMgrProtocol,
496 &GTBlockInfo,
497 &BlockTimerCount
498 );
499 if (EFI_ERROR (Status) && (Status != EFI_NOT_FOUND)) {
500 DEBUG ((
501 DEBUG_ERROR,
502 "ERROR: GTDT: Failed to Get Platform GT Block Information." \
503 " Status = %r\n",
504 Status
505 ));
506 goto error_handler;
507 }
508
509 Status = GetEArmObjPlatformGenericWatchdogInfo (
510 CfgMgrProtocol,
512 &WatchdogInfoList,
513 &WatchdogCount
514 );
515 if (EFI_ERROR (Status) && (Status != EFI_NOT_FOUND)) {
516 DEBUG ((
517 DEBUG_ERROR,
518 "ERROR: GTDT: Failed to Get Platform Generic Watchdog Information." \
519 " Status = %r\n",
520 Status
521 ));
522 goto error_handler;
523 }
524
525 DEBUG ((
526 DEBUG_INFO,
527 "GTDT: BlockTimerCount = %d, WatchdogCount = %d\n",
528 BlockTimerCount,
529 WatchdogCount
530 ));
531
532 // Calculate the GTDT Table Size
533 PlatformTimerCount = 0;
535 if (BlockTimerCount != 0) {
536 GTBlockOffset = TableSize;
537 PlatformTimerCount += BlockTimerCount;
538 TableSize += (sizeof (EFI_ACPI_6_4_GTDT_GT_BLOCK_STRUCTURE) *
539 BlockTimerCount);
540
541 for (Idx = 0; Idx < BlockTimerCount; Idx++) {
542 if (GTBlockInfo[Idx].GTBlockTimerFrameCount > 8) {
543 Status = EFI_INVALID_PARAMETER;
544 DEBUG ((
545 DEBUG_ERROR,
546 "GTDT: GTBockFrameCount cannot be more than 8." \
547 " GTBockFrameCount = %d, Status = %r\n",
548 GTBlockInfo[Idx].GTBlockTimerFrameCount,
549 Status
550 ));
551 goto error_handler;
552 }
553
554 TableSize += (sizeof (EFI_ACPI_6_4_GTDT_GT_BLOCK_TIMER_STRUCTURE) *
555 GTBlockInfo[Idx].GTBlockTimerFrameCount);
556 }
557
558 DEBUG ((
559 DEBUG_INFO,
560 "GTDT: GTBockOffset = 0x%x, PLATFORM_TIMER_COUNT = %d\n",
561 GTBlockOffset,
562 PlatformTimerCount
563 ));
564 }
565
566 WatchdogOffset = 0;
567 if (WatchdogCount != 0) {
568 WatchdogOffset = TableSize;
569 PlatformTimerCount += WatchdogCount;
571 WatchdogCount);
572 DEBUG ((
573 DEBUG_INFO,
574 "GTDT: WatchdogOffset = 0x%x, PLATFORM_TIMER_COUNT = %d\n",
575 WatchdogOffset,
576 PlatformTimerCount
577 ));
578 }
579
580 *Table = (EFI_ACPI_DESCRIPTION_HEADER *)AllocateZeroPool (TableSize);
581 if (*Table == NULL) {
582 Status = EFI_OUT_OF_RESOURCES;
583 DEBUG ((
584 DEBUG_ERROR,
585 "ERROR: GTDT: Failed to allocate memory for GTDT Table, Size = %d," \
586 " Status = %r\n",
587 TableSize,
588 Status
589 ));
590 goto error_handler;
591 }
592
594 DEBUG ((
595 DEBUG_INFO,
596 "GTDT: Gtdt = 0x%p TableSize = 0x%x\n",
597 Gtdt,
598 TableSize
599 ));
600
601 Status = AddAcpiHeader (
602 CfgMgrProtocol,
603 This,
604 &Gtdt->Header,
605 AcpiTableInfo,
606 TableSize
607 );
608 if (EFI_ERROR (Status)) {
609 DEBUG ((
610 DEBUG_ERROR,
611 "ERROR: GTDT: Failed to add ACPI header. Status = %r\n",
612 Status
613 ));
614 goto error_handler;
615 }
616
617 Status = AddGenericTimerInfo (
618 CfgMgrProtocol,
619 Gtdt,
620 PlatformTimerCount,
621 AcpiTableInfo->AcpiTableRevision
622 );
623 if (EFI_ERROR (Status)) {
624 DEBUG ((
625 DEBUG_ERROR,
626 "ERROR: GTDT: Failed to add Generic Timer Info. Status = %r\n",
627 Status
628 ));
629 goto error_handler;
630 }
631
632 if (BlockTimerCount != 0) {
633 Status = AddGTBlockList (
634 CfgMgrProtocol,
635 Gtdt,
636 GTBlockOffset,
637 GTBlockInfo,
638 BlockTimerCount
639 );
640 if (EFI_ERROR (Status)) {
641 DEBUG ((
642 DEBUG_ERROR,
643 "ERROR: GTDT: Failed to add GT Block timers. Status = %r\n",
644 Status
645 ));
646 goto error_handler;
647 }
648 }
649
650 if (WatchdogCount != 0) {
652 Gtdt,
653 WatchdogOffset,
654 WatchdogInfoList,
655 WatchdogCount
656 );
657 }
658
659 return Status;
660
661error_handler:
662 if (*Table != NULL) {
663 FreePool (*Table);
664 *Table = NULL;
665 }
666
667 return Status;
668}
669
681STATIC
688 )
689{
690 ASSERT (This != NULL);
691 ASSERT (AcpiTableInfo != NULL);
692 ASSERT (CfgMgrProtocol != NULL);
693 ASSERT (AcpiTableInfo->TableGeneratorId == This->GeneratorID);
694 ASSERT (AcpiTableInfo->AcpiTableSignature == This->AcpiTableSignature);
695
696 if ((Table == NULL) || (*Table == NULL)) {
697 DEBUG ((DEBUG_ERROR, "ERROR: GTDT: Invalid Table Pointer\n"));
698 ASSERT ((Table != NULL) && (*Table != NULL));
699 return EFI_INVALID_PARAMETER;
700 }
701
702 FreePool (*Table);
703 *Table = NULL;
704 return EFI_SUCCESS;
705}
706
709#define GTDT_GENERATOR_REVISION CREATE_REVISION (1, 0)
710
713STATIC
714CONST
716 // Generator ID
718 // Generator Description
719 L"ACPI.STD.GTDT.GENERATOR",
720 // ACPI Table Signature
722 // ACPI Table Revision supported by this Generator
724 // Minimum ACPI Table Revision supported by this Generator
726 // Creator ID
728 // Creator Revision
730 // Build Table function
732 // Free Resource function
734 // Extended build function not needed
735 NULL,
736 // Extended build function not implemented by the generator.
737 // Hence extended free resource function is not required.
738 NULL
739};
740
752EFIAPI
754 IN EFI_HANDLE ImageHandle,
755 IN EFI_SYSTEM_TABLE *SystemTable
756 )
757{
758 EFI_STATUS Status;
759
761 DEBUG ((DEBUG_INFO, "GTDT: Register Generator. Status = %r\n", Status));
762 ASSERT_EFI_ERROR (Status);
763 return Status;
764}
765
776EFIAPI
778 IN EFI_HANDLE ImageHandle,
779 IN EFI_SYSTEM_TABLE *SystemTable
780 )
781{
782 EFI_STATUS Status;
783
785 DEBUG ((DEBUG_INFO, "GTDT: Deregister Generator. Status = %r\n", Status));
786 ASSERT_EFI_ERROR (Status);
787 return Status;
788}
UINT64 UINTN
#define EFI_ACPI_6_2_GENERIC_TIMER_DESCRIPTION_TABLE_REVISION
Definition: Acpi62.h:1402
#define EFI_ACPI_6_4_GENERIC_TIMER_DESCRIPTION_TABLE_SIGNATURE
Definition: Acpi64.h:2930
#define EFI_ACPI_6_4_GTDT_GT_BLOCK
Definition: Acpi64.h:1421
#define EFI_ACPI_6_4_GENERIC_TIMER_DESCRIPTION_TABLE_REVISION
Definition: Acpi64.h:1409
EFI_STATUS EFIAPI RegisterAcpiTableGenerator(IN CONST ACPI_TABLE_GENERATOR *CONST Generator)
EFI_STATUS EFIAPI DeregisterAcpiTableGenerator(IN CONST ACPI_TABLE_GENERATOR *CONST Generator)
#define TABLE_GENERATOR_CREATOR_ID_ARM
#define CREATE_STD_ACPI_TABLE_GEN_ID(TableId)
@ EStdAcpiTableIdGtdt
GTDT Generator.
@ EArmObjPlatformGTBlockInfo
8 - Platform GT Block Info
@ EArmObjPlatformGenericWatchdogInfo
10 - Platform Generic Watchdog
@ EArmObjGTBlockTimerFrameInfo
9 - Generic Timer Block Frame Info
@ EArmObjGenericTimerInfo
7 - Generic Timer Info
#define GET_OBJECT_LIST(CmObjectNameSpace, CmObjectId, Type)
@ EObjNameSpaceArm
ARM Objects Namespace.
VOID *EFIAPI AllocateZeroPool(IN UINTN AllocationSize)
VOID EFIAPI FreePool(IN VOID *Buffer)
STATIC EFI_STATUS EFIAPI BuildGtdtTable(IN CONST ACPI_TABLE_GENERATOR *CONST This, IN CONST CM_STD_OBJ_ACPI_TABLE_INFO *CONST AcpiTableInfo, IN CONST EDKII_CONFIGURATION_MANAGER_PROTOCOL *CONST CfgMgrProtocol, OUT EFI_ACPI_DESCRIPTION_HEADER **CONST Table)
BOOLEAN EFIAPI IsGtFrameNumberEqual(IN CONST VOID *Frame1, IN CONST VOID *Frame2, IN UINTN Index1, IN UINTN Index2)
STATIC EFI_STATUS EFIAPI AddGenericTimerInfo(IN CONST EDKII_CONFIGURATION_MANAGER_PROTOCOL *CONST CfgMgrProtocol, IN EFI_ACPI_6_4_GENERIC_TIMER_DESCRIPTION_TABLE *CONST Gtdt, IN CONST UINT32 PlatformTimerCount, IN CONST UINT32 AcpiTableRevision)
Definition: GtdtGenerator.c:92
STATIC EFI_STATUS AddGTBlockTimerFrames(IN EFI_ACPI_6_4_GTDT_GT_BLOCK_TIMER_STRUCTURE *GtBlockFrame, IN CONST CM_ARM_GTBLOCK_TIMER_FRAME_INFO *GTBlockTimerFrameList, IN UINT32 GTBlockFrameCount)
STATIC EFI_STATUS AddGTBlockList(IN CONST EDKII_CONFIGURATION_MANAGER_PROTOCOL *CONST CfgMgrProtocol, IN EFI_ACPI_6_4_GENERIC_TIMER_DESCRIPTION_TABLE *CONST Gtdt, IN CONST UINT32 GTBlockOffset, IN CONST CM_ARM_GTBLOCK_INFO *GTBlockInfo, IN UINT32 BlockTimerCount)
EFI_STATUS EFIAPI AcpiGtdtLibConstructor(IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
#define GTDT_GENERATOR_REVISION
STATIC VOID AddGenericWatchdogList(IN EFI_ACPI_6_4_GENERIC_TIMER_DESCRIPTION_TABLE *CONST Gtdt, IN CONST UINT32 WatchdogOffset, IN CONST CM_ARM_GENERIC_WATCHDOG_INFO *WatchdogInfoList, IN UINT32 WatchdogCount)
STATIC CONST ACPI_TABLE_GENERATOR GtdtGenerator
STATIC EFI_STATUS FreeGtdtTableResources(IN CONST ACPI_TABLE_GENERATOR *CONST This, IN CONST CM_STD_OBJ_ACPI_TABLE_INFO *CONST AcpiTableInfo, IN CONST EDKII_CONFIGURATION_MANAGER_PROTOCOL *CONST CfgMgrProtocol, IN OUT EFI_ACPI_DESCRIPTION_HEADER **CONST Table)
EFI_STATUS EFIAPI AcpiGtdtLibDestructor(IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
#define NULL
Definition: Base.h:319
#define CONST
Definition: Base.h:259
#define STATIC
Definition: Base.h:264
#define TRUE
Definition: Base.h:301
#define FALSE
Definition: Base.h:307
#define IN
Definition: Base.h:279
#define OUT
Definition: Base.h:284
#define ASSERT_EFI_ERROR(StatusParameter)
Definition: DebugLib.h:462
#define DEBUG(Expression)
Definition: DebugLib.h:434
#define CM_NULL_TOKEN
EFI_STATUS EFIAPI AddAcpiHeader(IN CONST EDKII_CONFIGURATION_MANAGER_PROTOCOL *CONST CfgMgrProtocol, IN CONST ACPI_TABLE_GENERATOR *CONST Generator, IN OUT EFI_ACPI_DESCRIPTION_HEADER *CONST AcpiHeader, IN CONST CM_STD_OBJ_ACPI_TABLE_INFO *CONST AcpiTableInfo, IN CONST UINT32 Length)
Definition: TableHelper.c:114
BOOLEAN EFIAPI FindDuplicateValue(IN CONST VOID *Array, IN CONST UINTN Count, IN CONST UINTN ElementSize, IN PFN_IS_EQUAL EqualTestFunction)
Definition: TableHelper.c:299
RETURN_STATUS EFI_STATUS
Definition: UefiBaseType.h:29
VOID * EFI_HANDLE
Definition: UefiBaseType.h:33
#define EFI_SUCCESS
Definition: UefiBaseType.h:112
UINT32 NonSecurePL1TimerGSIV
The non-secure PL1 timer interrupt.
UINT32 NonSecurePL2TimerFlags
The non-secure PL2 timer flags.
UINT32 SecurePL1TimerGSIV
The secure PL1 timer interrupt.
UINT64 CounterControlBaseAddress
The physical base address for the counter control frame.
UINT32 VirtualTimerGSIV
The virtual timer interrupt.
UINT32 VirtualPL2TimerFlags
Flags for the virtual EL2 timer.
UINT32 NonSecurePL1TimerFlags
The non-secure PL1 timer flags.
UINT32 VirtualTimerFlags
The virtual timer flags.
UINT64 CounterReadBaseAddress
The physical base address for the counter read frame.
UINT32 SecurePL1TimerFlags
The secure PL1 timer flags.
UINT32 NonSecurePL2TimerGSIV
The non-secure PL2 timer interrupt.
UINT32 VirtualPL2TimerGSIV
GSIV for the virtual EL2 timer.