MCPcopy Create free account
hub / github.com/CloverHackyColor/CloverBootloader / PeiPcdGet16Ex

Function PeiPcdGet16Ex

MdeModulePkg/Universal/PCD/Pei/Pcd.c:787–795  ·  view source on GitHub ↗

Retrieves an 16-bit value for a given PCD token. Retrieves the 16-bit value of a particular PCD token. If the TokenNumber is invalid or the token space specified by Guid does not exist, the results are unpredictable. @param[in] Guid The token space for the token number. @param[in] ExTokenNumber The PCD token number. @return The size 16-bit value for the PCD to

Source from the content-addressed store, hash-verified

785
786**/
787UINT16
788EFIAPI
789PeiPcdGet16Ex (
790 IN CONST EFI_GUID *Guid,
791 IN UINTN ExTokenNumber
792 )
793{
794 return ReadUnaligned16 (ExGetWorker (Guid, ExTokenNumber, sizeof (UINT16)));
795}
796
797/**
798 Retrieves an 32-bit value for a given PCD token.

Callers

nothing calls this directly

Calls 2

ExGetWorkerFunction · 0.70
ReadUnaligned16Function · 0.50

Tested by

no test coverage detected