]> git.proxmox.com Git - mirror_edk2.git/commit
DynamicTablesPkg: DynamicPlatRepo: Add TokenGenerator
authorPierre Gondois <Pierre.Gondois@arm.com>
Thu, 9 Dec 2021 09:32:48 +0000 (10:32 +0100)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Tue, 14 Dec 2021 18:45:19 +0000 (18:45 +0000)
commit2e2db65e39cbd011468b3ebd23d6e645277c2409
treec3412bd36d1b02aa9bbcbc128ad87c24019fa50a
parentb2d0ed20fd50ebad2cafaf2c39c2c20c6083b690
DynamicTablesPkg: DynamicPlatRepo: Add TokenGenerator

The DynamicPlatRepo library allows to handle dynamically created
CmObj. The dynamic platform repository can be in the following states:
1 - Non-initialised
2 - Transient:
    Possibility to add CmObj to the platform, but not to query them.
3 - Finalised:
    Possibility to query CmObj, but not to add new.

A token is allocated to each CmObj added to the dynamic platform
repository (except for reference tokens CmObj). This allows to retrieve
dynamic CmObjs among all CmObj (static CmObj for instance).

This patch add the TokenGenerator files.

Signed-off-by: Pierre Gondois <Pierre.Gondois@arm.com>
Reviewed-by: Sami Mujawar <sami.mujawar@arm.com>
DynamicTablesPkg/Library/Common/DynamicPlatRepoLib/TokenGenerator.c [new file with mode: 0644]
DynamicTablesPkg/Library/Common/DynamicPlatRepoLib/TokenGenerator.h [new file with mode: 0644]