From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dispatch1-us1.ppe-hosted.com (dispatch1-us1.ppe-hosted.com [67.231.154.164]) (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 8FF172195970F for ; Wed, 17 May 2017 07:19:23 -0700 (PDT) Received: from pure.maildistiller.com (unknown [10.110.50.29]) by dispatch1-us1.ppe-hosted.com (Proofpoint Essentials ESMTP Server) with ESMTP id DC35C8009F for ; Wed, 17 May 2017 14:19:22 +0000 (UTC) X-Virus-Scanned: Proofpoint Essentials engine Received: from mx5-us1.ppe-hosted.com (unknown [10.110.49.251]) by pure.maildistiller.com (Proofpoint Essentials ESMTP Server) with ESMTPS id 5728780056 for ; Wed, 17 May 2017 14:19:22 +0000 (UTC) Received: from webmail.solarflare.com (uk.solarflare.com [193.34.186.16]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx5-us1.ppe-hosted.com (Proofpoint Essentials ESMTP Server) with ESMTPS id A40256000B9 for ; Wed, 17 May 2017 14:19:21 +0000 (UTC) Received: from tp-desktop.uk.solarflarecom.com (10.17.20.51) by ukex01.SolarFlarecom.com (10.17.10.4) with Microsoft SMTP Server (TLS) id 15.0.1044.25; Wed, 17 May 2017 15:18:46 +0100 To: "edk2-devel@lists.01.org" From: "Tomas Pilar (tpilar)" Message-ID: <1bdfe843-f708-2523-474f-0e0fa33771db@solarflare.com> Date: Wed, 17 May 2017 15:18:42 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.1.0 MIME-Version: 1.0 X-Originating-IP: [10.17.20.51] X-ClientProxiedBy: ocex03.SolarFlarecom.com (10.20.40.36) To ukex01.SolarFlarecom.com (10.17.10.4) X-TM-AS-Product-Ver: SMEX-11.0.0.1191-8.100.1062-23074.003 X-TM-AS-Result: No--6.529700-0.000000-31 X-TM-AS-User-Approved-Sender: Yes X-TM-AS-User-Blocked-Sender: No X-MDID: 1495030762-cMoTpyRfvwI8 Subject: 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 14:19:23 -0000 Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Hi, I want to use timestamping in my optionrom UEFI driver so I checkout the Timestamp protocol that comes in UEFI 2.5. I check my platform for gEfiTimestampProtocolGuid using gBS->LocateProtocol but that comes up empty. In EDK2 I notice MdeModulePkg/Universal/TimestampDxe which is a DXE driver that uses TimerLib to produce timestamps. How would I use this in my driver? Can I just stick the TimestampDxe.inf as a library to [LibraryClasses] in my package DSC file? Cheers, Tom