From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 8ECE321A16EFC for ; Wed, 17 May 2017 08:41:09 -0700 (PDT) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 17 May 2017 08:41:09 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.38,355,1491289200"; d="scan'208";a="1131430202" Received: from orsmsx102.amr.corp.intel.com ([10.22.225.129]) by orsmga001.jf.intel.com with ESMTP; 17 May 2017 08:41:08 -0700 Received: from orsmsx155.amr.corp.intel.com (10.22.240.21) by ORSMSX102.amr.corp.intel.com (10.22.225.129) with Microsoft SMTP Server (TLS) id 14.3.319.2; Wed, 17 May 2017 08:41:07 -0700 Received: from orsmsx113.amr.corp.intel.com ([169.254.9.59]) by ORSMSX155.amr.corp.intel.com ([169.254.7.202]) with mapi id 14.03.0319.002; Wed, 17 May 2017 08:41:07 -0700 From: "Kinney, Michael D" To: Sergei Temerkhanov , "Tomas Pilar (tpilar)" , "Kinney, Michael D" CC: "edk2-devel@lists.01.org" Thread-Topic: [edk2] Reusing DXE driver code in edk2 packages Thread-Index: AQHSzxieq8Nuvvd+DEqnTmpU+ywayaH5D1KA//+ZkVA= Date: Wed, 17 May 2017 15:41:06 +0000 Message-ID: References: <1bdfe843-f708-2523-474f-0e0fa33771db@solarflare.com> In-Reply-To: Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ctpclassification: CTP_IC x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiOWMyNzVjZjMtMTRkOS00MmNlLTgzMWYtMDhlNjNmNjU4NGIzIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE1LjkuNi42IiwiVHJ1c3RlZExhYmVsSGFzaCI6ImJGK2VSSGp2NzhncXFPWXVrbjVZdEdjWVZFaVNWdGUxU056NkIwWWsxeUU9In0= dlp-product: dlpe-windows dlp-version: 10.0.102.7 dlp-reaction: no-action x-originating-ip: [10.22.254.138] MIME-Version: 1.0 Subject: Re: Reusing DXE driver code in edk2 packages X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 May 2017 15:41:09 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Sergey, For a UEFI driver, you can look for the Time Stamp Protocol. If it is present, you can use it. This is an optional protocol, so a UEFI driver must continue to work if the protocol is not provided by the platform firmware. The UEFI driver should fall back to other UEFI spec defined time sources or reduce features if those time sources are not sufficient. Mike =20 > -----Original Message----- > From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of Se= rgei > Temerkhanov > Sent: Wednesday, May 17, 2017 7:44 AM > To: Tomas Pilar (tpilar) > Cc: edk2-devel@lists.01.org > Subject: Re: [edk2] Reusing DXE driver code in edk2 packages >=20 > On Wed, May 17, 2017 at 5:18 PM, Tomas Pilar (tpilar) > wrote: > > Hi, > > > > I want to use timestamping in my optionrom UEFI driver so I checkout th= e > > Timestamp protocol that comes in UEFI 2.5. I check my platform for > > gEfiTimestampProtocolGuid using gBS->LocateProtocol but that comes up e= mpty. > > > > In EDK2 I notice MdeModulePkg/Universal/TimestampDxe which is a DXE dri= ver > > that uses TimerLib to produce timestamps. How would I use this in my dr= iver? > > Can I just stick the TimestampDxe.inf as a library to [LibraryClasses] = in my > > package DSC file? >=20 > TimestampDxe.inf goes into the [Components] section, and into the .fdf > file as well. > Also, [Depex] sections of modules using this protocol have to contain > gEfiTimestampProtocolGuid. >=20 > Regards, > Sergey >=20 > > > > Cheers, > > Tom > > _______________________________________________ > > 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