From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-x22e.google.com (mail-wm0-x22e.google.com [IPv6:2a00:1450:400c:c09::22e]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 7A89E1A1E56 for ; Thu, 1 Sep 2016 05:49:21 -0700 (PDT) Received: by mail-wm0-x22e.google.com with SMTP id 1so93041197wmz.1 for ; Thu, 01 Sep 2016 05:49:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=JGpi4lQ4VzSrrblz8pnmG/16GDLDa5df/TdmVIlZ9YM=; b=O4zc6OwfL0MRGl4GJIaGFVgBl/9/PHMp2OBFsi6yFUraW0xNoaxwkGeJIOzgTcmsDP R3rOr9zTVSWHNf4otAv192QCbdtO8UpJwsXSV3E1Z0gE64JtUWiyOOUOvZq3KghJVATw 5ptAbUJ+CFCwkosq/0vFWcz9iiG5XKpTdL2jHlF0gHK9KqZtorq6fRUiqWK1j1BHG7fu 58VIpgLoqkZ/WmMrfHETZBayA94eeUiONRpv3yHoaRaVpvdvk0YP9SXu1SqHsSxBAvvv HDxH41QmS/iBOECLTglwH/RtPBdoLTXApfXhfTT+Zew10V+jYewtiXbvuT3AYp3Be7wk rm8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=JGpi4lQ4VzSrrblz8pnmG/16GDLDa5df/TdmVIlZ9YM=; b=mQEMp4lcW0q9bee07YgMKn8GAlVYsIcjRBZLuRNBIQmAvP5zk/YgXG5YbpzB1by6pS qXJkGEAwUbIeoK51DpqgxPACEwp7AZ3qLEWmfINgpWNEmP51JwO8RjSjRU2QGfB/v9y4 6wCSW5HBulpsRhwt2INgHKuJAlT72N9jFN7w4mLt9/3jhebwszXWZ4TF4TmcBylONhys xqw35zG8g3TVVAVEpdfUCCo9vJdGALPqEkEWZ3z+FQnnFJyvzsmxpDuPcnCazoepzgBA acVVc+6MRbkP0GQXfNxslzMNHFPPsOxF1a4bi/TJHZZuzHLo/5X3Kb/Kp9pr5qYwy0He Uuxg== X-Gm-Message-State: AE9vXwO5TR19uFEHtlmopT3xlqW/+Cc57kaCd0ReJUQ+o2yIg7Q5lQrRy4fPOTmWQkRKSuoC6kpSPVlZ/vp7Hw== X-Received: by 10.195.12.77 with SMTP id eo13mr14070668wjd.142.1472734159884; Thu, 01 Sep 2016 05:49:19 -0700 (PDT) MIME-Version: 1.0 Received: by 10.28.0.204 with HTTP; Thu, 1 Sep 2016 05:49:19 -0700 (PDT) In-Reply-To: References: From: Michael Zimmermann Date: Thu, 1 Sep 2016 14:49:19 +0200 Message-ID: To: GN Keshava Cc: "edk2-devel@lists.01.org" X-Content-Filtered-By: Mailman/MimeDel 2.1.21 Subject: Re: UEFI Sample application for read/write serial IO X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Sep 2016 12:49:21 -0000 Content-Type: text/plain; charset=UTF-8 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 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 > 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 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 >>> >> >>