public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: Andrew Fish <afish@apple.com>
To: GN Keshava <keshava.gn@gmail.com>
Cc: Michael Zimmermann <sigmaepsilon92@gmail.com>,
	"edk2-devel@lists.01.org" <edk2-devel@lists.01.org>
Subject: Re: UEFI Sample application for read/write serial IO
Date: Thu, 01 Sep 2016 08:26:10 -0700	[thread overview]
Message-ID: <CB7C45E2-FB17-47FE-939F-4750ED57A96B@apple.com> (raw)
In-Reply-To: <CABKwMdsj5hB10u1OwGksaQBLEuLta5QLo8PzCsVu26Cs_nKKwQ@mail.gmail.com>


> 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



  parent reply	other threads:[~2016-09-01 15:26 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
2016-09-02  3:04       ` GN Keshava

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CB7C45E2-FB17-47FE-939F-4750ED57A96B@apple.com \
    --to=devel@edk2.groups.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox