Remove hard code video resolution in C code and use PCD PcdVideoHorizontalResolution/PcdVideoVerticalResolution for customization. And when PcdConOutRow/PcdConOutColumn and PcdVideoHorizontalResolution/PcdVideoVerticalResolution are all set to 0, the console will be max video resolution and max text mode.
Signed-off-by: li-elvin Reviewed-by: niruiyu, hhtian git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12595 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@ -618,12 +618,22 @@
|
||||
gEfiMdeModulePkgTokenSpaceGuid.PcdMaxEfiSystemTablePointerAddress|0x0|UINT64|0x30001027
|
||||
|
||||
[PcdsPatchableInModule, PcdsDynamic, PcdsDynamicEx]
|
||||
## This PCD defines the Console output column and the default value is 25 according to UEFI spec
|
||||
## This PCD defines the Console output column and the default value is 25 according to UEFI spec.
|
||||
# This PCD could be set to 0 then console output could be at max column and max row.
|
||||
gEfiMdeModulePkgTokenSpaceGuid.PcdConOutRow|25|UINT32|0x40000006
|
||||
|
||||
## This PCD defines the Console output row and the default value is 80 according to UEFI spec
|
||||
## This PCD defines the Console output row and the default value is 80 according to UEFI spec.
|
||||
# This PCD could be set to 0 then console output could be at max column and max row.
|
||||
gEfiMdeModulePkgTokenSpaceGuid.PcdConOutColumn|80|UINT32|0x40000007
|
||||
|
||||
## This PCD defines the video horizontal resolution.
|
||||
# This PCD could be set to 0 then video resolution could be at highest resolution.
|
||||
gEfiMdeModulePkgTokenSpaceGuid.PcdVideoHorizontalResolution|800|UINT32|0x40000009
|
||||
|
||||
## This PCD defines the video vertical resolution.
|
||||
# This PCD could be set to 0 then video resolution could be at highest resolution.
|
||||
gEfiMdeModulePkgTokenSpaceGuid.PcdVideoVerticalResolution|600|UINT32|0x4000000a
|
||||
|
||||
[PcdsFixedAtBuild, PcdsDynamic, PcdsDynamicEx]
|
||||
## Base address of the NV variable range in flash device
|
||||
gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase|0x0|UINT32|0x30000001
|
||||
|
Reference in New Issue
Block a user