* [PATCH EDK2 v1 0/1] MdeModulePkg/TerminalDxe:Adding a switch for Terminal @ 2022-10-11 11:12 wenyi,xie 2022-10-11 11:12 ` [PATCH EDK2 v1 1/1] " wenyi,xie 2022-10-11 13:58 ` [edk2-devel] [PATCH EDK2 v1 0/1] " Michael D Kinney 0 siblings, 2 replies; 4+ messages in thread From: wenyi,xie @ 2022-10-11 11:12 UTC (permalink / raw) To: devel, jian.j.wang, gaoliming, zhichao.gao, ray.ni Cc: songdongkuang, xiewenyi2 Main Changes : 1.Adding a new PCD to control ternimal. Wenyi Xie (1): MdeModulePkg/TerminalDxe:Adding a switch for Terminal MdeModulePkg/MdeModulePkg.dec | 4 ++++ MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf | 1 + MdeModulePkg/Universal/Console/TerminalDxe/Terminal.c | 4 ++++ 3 files changed, 9 insertions(+) -- 2.20.1.windows.1 ^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH EDK2 v1 1/1] MdeModulePkg/TerminalDxe:Adding a switch for Terminal 2022-10-11 11:12 [PATCH EDK2 v1 0/1] MdeModulePkg/TerminalDxe:Adding a switch for Terminal wenyi,xie @ 2022-10-11 11:12 ` wenyi,xie 2022-10-11 13:58 ` [edk2-devel] [PATCH EDK2 v1 0/1] " Michael D Kinney 1 sibling, 0 replies; 4+ messages in thread From: wenyi,xie @ 2022-10-11 11:12 UTC (permalink / raw) To: devel, jian.j.wang, gaoliming, zhichao.gao, ray.ni Cc: songdongkuang, xiewenyi2 Adding a new PCD as switch to control Trlminal. Cc: Jian J Wang <jian.j.wang@intel.com> Cc: Liming Gao <gaoliming@byosoft.com.cn> Cc: Zhichao Gao <zhichao.gao@intel.com> Cc: Ray Ni <ray.ni@intel.com> Signed-off-by: Wenyi Xie <xiewenyi2@huawei.com> --- MdeModulePkg/MdeModulePkg.dec | 4 ++++ MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf | 1 + MdeModulePkg/Universal/Console/TerminalDxe/Terminal.c | 4 ++++ 3 files changed, 9 insertions(+) diff --git a/MdeModulePkg/MdeModulePkg.dec b/MdeModulePkg/MdeModulePkg.dec index 58e6ab004882..c4cf7f474a43 100644 --- a/MdeModulePkg/MdeModulePkg.dec +++ b/MdeModulePkg/MdeModulePkg.dec @@ -2161,6 +2161,10 @@ [PcdsDynamic, PcdsDynamicEx] # @Prompt GHCB Pool Size gEfiMdeModulePkgTokenSpaceGuid.PcdGhcbSize|0|UINT64|0x00030008 + ## This dynamic PCD holds the Switch which decide whether to using Terminal or not. + # @Prompt Terminal Switch + gEfiMdeModulePkgTokenSpaceGuid.PcdTerminalSwitch|TRUE|BOOLEAN|0x01100002 + [PcdsDynamicEx] ## This dynamic PCD enables the default variable setting. # Its value is the default store ID value. The default value is zero as Standard default. diff --git a/MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf b/MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf index b2a8aeba8510..36f6875de61b 100644 --- a/MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf +++ b/MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf @@ -87,6 +87,7 @@ [Protocols] [Pcd] gEfiMdePkgTokenSpaceGuid.PcdDefaultTerminalType ## SOMETIMES_CONSUMES gEfiMdeModulePkgTokenSpaceGuid.PcdErrorCodeSetVariable ## CONSUMES + gEfiMdeModulePkgTokenSpaceGuid.PcdTerminalSwitch ## CONSUMES # [Event] # # Relative timer event set by UnicodeToEfiKey(), used to be one 2 seconds input timeout. diff --git a/MdeModulePkg/Universal/Console/TerminalDxe/Terminal.c b/MdeModulePkg/Universal/Console/TerminalDxe/Terminal.c index e2d779c78378..c861eb00d6d2 100644 --- a/MdeModulePkg/Universal/Console/TerminalDxe/Terminal.c +++ b/MdeModulePkg/Universal/Console/TerminalDxe/Terminal.c @@ -1344,6 +1344,10 @@ InitializeTerminal ( { EFI_STATUS Status; + if (!PcdGetBool(PcdTerminalSwitch)) { + return EFI_UNSUPPORTED; + } + // // Install driver model protocol(s). // -- 2.20.1.windows.1 ^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [edk2-devel] [PATCH EDK2 v1 0/1] MdeModulePkg/TerminalDxe:Adding a switch for Terminal 2022-10-11 11:12 [PATCH EDK2 v1 0/1] MdeModulePkg/TerminalDxe:Adding a switch for Terminal wenyi,xie 2022-10-11 11:12 ` [PATCH EDK2 v1 1/1] " wenyi,xie @ 2022-10-11 13:58 ` Michael D Kinney 2022-10-12 9:24 ` wenyi,xie 1 sibling, 1 reply; 4+ messages in thread From: Michael D Kinney @ 2022-10-11 13:58 UTC (permalink / raw) To: devel@edk2.groups.io, xiewenyi2@huawei.com, Wang, Jian J, Gao, Liming, Gao, Zhichao, Ni, Ray, Kinney, Michael D Cc: songdongkuang@huawei.com Hi, Why is this new PCD and new behavior required? There are standard ways from the UEFI Spec to manage the set of active console output devices using console variables. Thanks, Mike > -----Original Message----- > From: devel@edk2.groups.io <devel@edk2.groups.io> On Behalf Of wenyi,xie via groups.io > Sent: Tuesday, October 11, 2022 4:13 AM > To: devel@edk2.groups.io; Wang, Jian J <jian.j.wang@intel.com>; Gao, Liming <gaoliming@byosoft.com.cn>; Gao, Zhichao > <zhichao.gao@intel.com>; Ni, Ray <ray.ni@intel.com> > Cc: songdongkuang@huawei.com; xiewenyi2@huawei.com > Subject: [edk2-devel] [PATCH EDK2 v1 0/1] MdeModulePkg/TerminalDxe:Adding a switch for Terminal > > Main Changes : > 1.Adding a new PCD to control ternimal. > > Wenyi Xie (1): > MdeModulePkg/TerminalDxe:Adding a switch for Terminal > > MdeModulePkg/MdeModulePkg.dec | 4 ++++ > MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf | 1 + > MdeModulePkg/Universal/Console/TerminalDxe/Terminal.c | 4 ++++ > 3 files changed, 9 insertions(+) > > -- > 2.20.1.windows.1 > > > > > ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [edk2-devel] [PATCH EDK2 v1 0/1] MdeModulePkg/TerminalDxe:Adding a switch for Terminal 2022-10-11 13:58 ` [edk2-devel] [PATCH EDK2 v1 0/1] " Michael D Kinney @ 2022-10-12 9:24 ` wenyi,xie 0 siblings, 0 replies; 4+ messages in thread From: wenyi,xie @ 2022-10-12 9:24 UTC (permalink / raw) To: Kinney, Michael D, devel@edk2.groups.io, Wang, Jian J, Gao, Liming, Gao, Zhichao, Ni, Ray Cc: songdongkuang@huawei.com Hi, Mike Thank you for your reply. We add a PCD because we want to dynamic disable the terminal through setupbrowser. But as you said, the standard way is using console variables to manage it. We did not think about it before, we will have a try. Thanks Wenyi On 2022/10/11 21:58, Kinney, Michael D wrote: > Hi, > > Why is this new PCD and new behavior required? > > There are standard ways from the UEFI Spec to manage > the set of active console output devices using console > variables. > > Thanks, > > Mike > >> -----Original Message----- >> From: devel@edk2.groups.io <devel@edk2.groups.io> On Behalf Of wenyi,xie via groups.io >> Sent: Tuesday, October 11, 2022 4:13 AM >> To: devel@edk2.groups.io; Wang, Jian J <jian.j.wang@intel.com>; Gao, Liming <gaoliming@byosoft.com.cn>; Gao, Zhichao >> <zhichao.gao@intel.com>; Ni, Ray <ray.ni@intel.com> >> Cc: songdongkuang@huawei.com; xiewenyi2@huawei.com >> Subject: [edk2-devel] [PATCH EDK2 v1 0/1] MdeModulePkg/TerminalDxe:Adding a switch for Terminal >> >> Main Changes : >> 1.Adding a new PCD to control ternimal. >> >> Wenyi Xie (1): >> MdeModulePkg/TerminalDxe:Adding a switch for Terminal >> >> MdeModulePkg/MdeModulePkg.dec | 4 ++++ >> MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf | 1 + >> MdeModulePkg/Universal/Console/TerminalDxe/Terminal.c | 4 ++++ >> 3 files changed, 9 insertions(+) >> >> -- >> 2.20.1.windows.1 >> >> >> >> >> > ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2022-10-12 9:24 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2022-10-11 11:12 [PATCH EDK2 v1 0/1] MdeModulePkg/TerminalDxe:Adding a switch for Terminal wenyi,xie 2022-10-11 11:12 ` [PATCH EDK2 v1 1/1] " wenyi,xie 2022-10-11 13:58 ` [edk2-devel] [PATCH EDK2 v1 0/1] " Michael D Kinney 2022-10-12 9:24 ` wenyi,xie
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox