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 <[email protected]> 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 <[email protected]> > 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 <[email protected]> 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 >>> [email protected] >>> https://lists.01.org/mailman/listinfo/edk2-devel >>> >> >> _______________________________________________ edk2-devel mailing list [email protected] https://lists.01.org/mailman/listinfo/edk2-devel

