public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: Michael Zimmermann <sigmaepsilon92@gmail.com>
To: GN Keshava <keshava.gn@gmail.com>
Cc: "edk2-devel@lists.01.org" <edk2-devel@lists.01.org>
Subject: Re: UEFI Sample application for read/write serial IO
Date: Thu, 1 Sep 2016 14:49:19 +0200	[thread overview]
Message-ID: <CAN9vWDJBfXeKYDGvqunGD4dfOjNpQiQ2xRKwf5KFB2r2w9=g+g@mail.gmail.com> (raw)
In-Reply-To: <CABKwMdsj5hB10u1OwGksaQBLEuLta5QLo8PzCsVu26Cs_nKKwQ@mail.gmail.com>

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
>>>
>>
>>


  reply	other threads:[~2016-09-01 12:49 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 [this message]
2016-09-01 15:26     ` Andrew Fish
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='CAN9vWDJBfXeKYDGvqunGD4dfOjNpQiQ2xRKwf5KFB2r2w9=g+g@mail.gmail.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