public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* UEFI Sample application for read/write serial IO
@ 2016-09-01 11:22 GN Keshava
  2016-09-01 11:39 ` Michael Zimmermann
  0 siblings, 1 reply; 6+ messages in thread
From: GN Keshava @ 2016-09-01 11:22 UTC (permalink / raw)
  To: edk2-devel@lists.01.org

Hi all,

I want to write UEFI application which reads/writes to serial IO.
Is there a sample UEFI application code available which demonstrates Serial
IO read/write?

Thanks.
With regards,
Keshava


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: UEFI Sample application for read/write serial IO
  2016-09-01 11:22 UEFI Sample application for read/write serial IO GN Keshava
@ 2016-09-01 11:39 ` Michael Zimmermann
  2016-09-01 11:48   ` GN Keshava
  0 siblings, 1 reply; 6+ messages in thread
From: Michael Zimmermann @ 2016-09-01 11:39 UTC (permalink / raw)
  To: GN Keshava; +Cc: edk2-devel@lists.01.org

I can't give you sample code but if you're familiar with using UEFI
protocols it's actually very easy. You just have to use
the gEfiSerialIoProtocolGuid protocol which can be found in:
MdePkg/Include/Protocol/SerialIo.h

Thanks
Michael

On Thu, Sep 1, 2016 at 1:22 PM, GN Keshava <keshava.gn@gmail.com> wrote:

> Hi all,
>
> I want to write UEFI application which reads/writes to serial IO.
> Is there a sample UEFI application code available which demonstrates Serial
> IO read/write?
>
> Thanks.
> With regards,
> Keshava
> _______________________________________________
> edk2-devel mailing list
> edk2-devel@lists.01.org
> https://lists.01.org/mailman/listinfo/edk2-devel
>


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: UEFI Sample application for read/write serial IO
  2016-09-01 11:39 ` Michael Zimmermann
@ 2016-09-01 11:48   ` GN Keshava
  2016-09-01 12:49     ` Michael Zimmermann
  2016-09-01 15:26     ` Andrew Fish
  0 siblings, 2 replies; 6+ messages in thread
From: GN Keshava @ 2016-09-01 11:48 UTC (permalink / raw)
  To: Michael Zimmermann; +Cc: edk2-devel@lists.01.org

Thanks Michael,

By sample I mean is there any code which uses Serial IO Protocol to
read/write to UART in edk2 package? or any open source code should be fine.

This is just to get an idea how I can use the protocol.

Thanks
Keshava

On Thu, 1 Sep 2016 at 17:09 Michael Zimmermann <sigmaepsilon92@gmail.com>
wrote:

> I can't give you sample code but if you're familiar with using UEFI
> protocols it's actually very easy. You just have to use
> the gEfiSerialIoProtocolGuid protocol which can be found in:
> MdePkg/Include/Protocol/SerialIo.h
>
> Thanks
> Michael
>
> On Thu, Sep 1, 2016 at 1:22 PM, GN Keshava <keshava.gn@gmail.com> wrote:
>
>> Hi all,
>>
>> I want to write UEFI application which reads/writes to serial IO.
>> Is there a sample UEFI application code available which demonstrates
>> Serial
>> IO read/write?
>>
>> Thanks.
>> With regards,
>> Keshava
>>
> _______________________________________________
>> edk2-devel mailing list
>> edk2-devel@lists.01.org
>> https://lists.01.org/mailman/listinfo/edk2-devel
>>
>
>


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: UEFI Sample application for read/write serial IO
  2016-09-01 11:48   ` GN Keshava
@ 2016-09-01 12:49     ` Michael Zimmermann
  2016-09-01 15:26     ` Andrew Fish
  1 sibling, 0 replies; 6+ messages in thread
From: Michael Zimmermann @ 2016-09-01 12:49 UTC (permalink / raw)
  To: GN Keshava; +Cc: edk2-devel@lists.01.org

AFAIK TerminalDxe is the only user of that protocol who actually writes to
the SerialIo:
MdeModulePkg/Universal/Console/TerminalDxe

The code is rather complex because it does way more than just using the
serial console but if you look at the right
functions(e.g. TerminalConOutOutputString) it should become clear how to
use it.

Thanks
Michael

On Thu, Sep 1, 2016 at 1:48 PM, GN Keshava <keshava.gn@gmail.com> wrote:

> Thanks Michael,
>
> By sample I mean is there any code which uses Serial IO Protocol to
> read/write to UART in edk2 package? or any open source code should be fine.
>
> This is just to get an idea how I can use the protocol.
>
> Thanks
> Keshava
>
> On Thu, 1 Sep 2016 at 17:09 Michael Zimmermann <sigmaepsilon92@gmail.com>
> wrote:
>
>> I can't give you sample code but if you're familiar with using UEFI
>> protocols it's actually very easy. You just have to use
>> the gEfiSerialIoProtocolGuid protocol which can be found in:
>> MdePkg/Include/Protocol/SerialIo.h
>>
>> Thanks
>> Michael
>>
>> On Thu, Sep 1, 2016 at 1:22 PM, GN Keshava <keshava.gn@gmail.com> wrote:
>>
>>> Hi all,
>>>
>>> I want to write UEFI application which reads/writes to serial IO.
>>> Is there a sample UEFI application code available which demonstrates
>>> Serial
>>> IO read/write?
>>>
>>> Thanks.
>>> With regards,
>>> Keshava
>>>
>> _______________________________________________
>>> edk2-devel mailing list
>>> edk2-devel@lists.01.org
>>> https://lists.01.org/mailman/listinfo/edk2-devel
>>>
>>
>>


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: UEFI Sample application for read/write serial IO
  2016-09-01 11:48   ` GN Keshava
  2016-09-01 12:49     ` Michael Zimmermann
@ 2016-09-01 15:26     ` Andrew Fish
  2016-09-02  3:04       ` GN Keshava
  1 sibling, 1 reply; 6+ messages in thread
From: Andrew Fish @ 2016-09-01 15:26 UTC (permalink / raw)
  To: GN Keshava; +Cc: Michael Zimmermann, edk2-devel@lists.01.org


> On Sep 1, 2016, at 4:48 AM, GN Keshava <keshava.gn@gmail.com> wrote:
> 
> Thanks Michael,
> 
> By sample I mean is there any code which uses Serial IO Protocol to
> read/write to UART in edk2 package? or any open source code should be fine.
> 
> This is just to get an idea how I can use the protocol.
> 

All you need to do is read 11.8 in the UEFI Specification Serial I/O Protocol. Chapter 11 is for Protocols - Console Support. 

Thanks,

Andrew Fish


> Thanks
> Keshava
> 
> On Thu, 1 Sep 2016 at 17:09 Michael Zimmermann <sigmaepsilon92@gmail.com>
> wrote:
> 
>> I can't give you sample code but if you're familiar with using UEFI
>> protocols it's actually very easy. You just have to use
>> the gEfiSerialIoProtocolGuid protocol which can be found in:
>> MdePkg/Include/Protocol/SerialIo.h
>> 
>> Thanks
>> Michael
>> 
>> On Thu, Sep 1, 2016 at 1:22 PM, GN Keshava <keshava.gn@gmail.com> wrote:
>> 
>>> Hi all,
>>> 
>>> I want to write UEFI application which reads/writes to serial IO.
>>> Is there a sample UEFI application code available which demonstrates
>>> Serial
>>> IO read/write?
>>> 
>>> Thanks.
>>> With regards,
>>> Keshava
>>> 
>> _______________________________________________
>>> edk2-devel mailing list
>>> edk2-devel@lists.01.org
>>> https://lists.01.org/mailman/listinfo/edk2-devel
>>> 
>> 
>> 
> _______________________________________________
> edk2-devel mailing list
> edk2-devel@lists.01.org
> https://lists.01.org/mailman/listinfo/edk2-devel



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: UEFI Sample application for read/write serial IO
  2016-09-01 15:26     ` Andrew Fish
@ 2016-09-02  3:04       ` GN Keshava
  0 siblings, 0 replies; 6+ messages in thread
From: GN Keshava @ 2016-09-02  3:04 UTC (permalink / raw)
  To: Andrew Fish; +Cc: Michael Zimmermann, edk2-devel@lists.01.org

Thanks, Michael and Andrew...

On Thu, 1 Sep 2016 at 20:56 Andrew Fish <afish@apple.com> wrote:

>
> > On Sep 1, 2016, at 4:48 AM, GN Keshava <keshava.gn@gmail.com> wrote:
> >
> > Thanks Michael,
> >
> > By sample I mean is there any code which uses Serial IO Protocol to
> > read/write to UART in edk2 package? or any open source code should be
> fine.
> >
> > This is just to get an idea how I can use the protocol.
> >
>
> All you need to do is read 11.8 in the UEFI Specification Serial I/O
> Protocol. Chapter 11 is for Protocols - Console Support.
>
> Thanks,
>
> Andrew Fish
>
>
> > Thanks
> > Keshava
> >
> > On Thu, 1 Sep 2016 at 17:09 Michael Zimmermann <sigmaepsilon92@gmail.com
> >
> > wrote:
> >
> >> I can't give you sample code but if you're familiar with using UEFI
> >> protocols it's actually very easy. You just have to use
> >> the gEfiSerialIoProtocolGuid protocol which can be found in:
> >> MdePkg/Include/Protocol/SerialIo.h
> >>
> >> Thanks
> >> Michael
> >>
> >> On Thu, Sep 1, 2016 at 1:22 PM, GN Keshava <keshava.gn@gmail.com>
> wrote:
> >>
> >>> Hi all,
> >>>
> >>> I want to write UEFI application which reads/writes to serial IO.
> >>> Is there a sample UEFI application code available which demonstrates
> >>> Serial
> >>> IO read/write?
> >>>
> >>> Thanks.
> >>> With regards,
> >>> Keshava
> >>>
> >> _______________________________________________
> >>> edk2-devel mailing list
> >>> edk2-devel@lists.01.org
> >>> https://lists.01.org/mailman/listinfo/edk2-devel
> >>>
> >>
> >>
> > _______________________________________________
> > edk2-devel mailing list
> > edk2-devel@lists.01.org
> > https://lists.01.org/mailman/listinfo/edk2-devel
>
>


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2016-09-02  3:04 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-09-01 11:22 UEFI Sample application for read/write serial IO GN Keshava
2016-09-01 11:39 ` Michael Zimmermann
2016-09-01 11:48   ` GN Keshava
2016-09-01 12:49     ` Michael Zimmermann
2016-09-01 15:26     ` Andrew Fish
2016-09-02  3:04       ` GN Keshava

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox