summaryrefslogtreecommitdiffstats
path: root/MdeModulePkg/Universal/PCD/Pei/Service.h
diff options
context:
space:
mode:
authorLiming Gao <liming.gao@intel.com>2017-12-22 13:41:54 +0800
committerLiming Gao <liming.gao@intel.com>2017-12-25 11:05:57 +0800
commit7c73626513238176bdd16dca14fcf3f9e10bcc81 (patch)
tree9a75f70d555811e298a00fbc0db906ec0e8ce6af /MdeModulePkg/Universal/PCD/Pei/Service.h
parent219247e16462d72e3b22db4e21bfaec256cc5fbb (diff)
downloadedk2-7c73626513238176bdd16dca14fcf3f9e10bcc81.tar.gz
edk2-7c73626513238176bdd16dca14fcf3f9e10bcc81.tar.bz2
edk2-7c73626513238176bdd16dca14fcf3f9e10bcc81.zip
MdeModulePkg: Update PCD driver to support the optimized PcdDataBase
https://bugzilla.tianocore.org/show_bug.cgi?id=546 BaseTools will generate the optimized PCD database to save the image size at build time for multiple SKUs. The optimized PCD database layout will be like below, the PCD database will be composed of the full default SKU data (PCD_DATABASE_INIT) and the non-default SKU delta data(PCD_DATABASE_SKU_DELTA). PCD driver will build HOB to store the full default SKU data, and patch HOB data based on non-default SKU delta data for the SKU set by SetSku(), it can save memory resource at boot time. // // PCD database layout: // +---------------------------------+ // | PCD_DATABASE_INIT (DEFAULT SKU) | // +---------------------------------+ // | PCD_DATABASE_SKU_DELTA (SKU A) | // +---------------------------------+ // | PCD_DATABASE_SKU_DELTA (SKU B) | // +---------------------------------+ // | ...... | // +---------------------------------+ // BaseTools, PCD database and driver updates are needed for this proposal. For single SKU (default) case, this proposal is expected to have no impact. For multi-SKU case, PCD database format will be changed. So, PcdDataBase Version is also updated from 6 to 7. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Liming Gao <liming.gao@intel.com> Reviewed-by: Star Zeng <star.zeng@intel.com>
Diffstat (limited to 'MdeModulePkg/Universal/PCD/Pei/Service.h')
-rw-r--r--MdeModulePkg/Universal/PCD/Pei/Service.h30
1 files changed, 0 insertions, 30 deletions
diff --git a/MdeModulePkg/Universal/PCD/Pei/Service.h b/MdeModulePkg/Universal/PCD/Pei/Service.h
index e3b68aabc4..3a7910a900 100644
--- a/MdeModulePkg/Universal/PCD/Pei/Service.h
+++ b/MdeModulePkg/Universal/PCD/Pei/Service.h
@@ -994,21 +994,6 @@ GetExPcdTokenNumber (
);
/**
- Find the local token number according to system SKU ID.
-
- @param LocalTokenNumber PCD token number
- @param Size The size of PCD entry.
-
- @return Token number according to system SKU ID.
-
-**/
-UINT32
-GetSkuEnabledTokenNumber (
- UINT32 LocalTokenNumber,
- UINTN Size
- );
-
-/**
The function registers the CallBackOnSet fucntion
according to TokenNumber and EFI_GUID space.
@@ -1044,21 +1029,6 @@ BuildPcdDatabase (
);
/**
- Get SKU ID tabble from PCD database.
-
- @param LocalTokenNumberTableIdx Index of local token number in token number table.
- @param Database PCD Database in PEI phase
-
- @return Pointer to SKU ID array table
-
-**/
-SKU_ID *
-GetSkuIdArray (
- IN UINTN LocalTokenNumberTableIdx,
- IN PEI_PCD_DATABASE *Database
- );
-
-/**
Get index of PCD entry in size table.
@param LocalTokenNumberTableIdx Index of this PCD in local token number table.