From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=192.55.52.93; helo=mga11.intel.com; envelope-from=liming.gao@intel.com; receiver=edk2-devel@lists.01.org Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) (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 658A22117FD5E for ; Tue, 27 Nov 2018 06:34:02 -0800 (PST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 27 Nov 2018 06:34:01 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,286,1539673200"; d="scan'208";a="112114612" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by fmsmga002.fm.intel.com with ESMTP; 27 Nov 2018 06:34:01 -0800 Received: from fmsmsx112.amr.corp.intel.com (10.18.116.6) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.408.0; Tue, 27 Nov 2018 06:34:01 -0800 Received: from shsmsx152.ccr.corp.intel.com (10.239.6.52) by FMSMSX112.amr.corp.intel.com (10.18.116.6) with Microsoft SMTP Server (TLS) id 14.3.408.0; Tue, 27 Nov 2018 06:34:00 -0800 Received: from shsmsx104.ccr.corp.intel.com ([169.254.5.117]) by SHSMSX152.ccr.corp.intel.com ([169.254.6.214]) with mapi id 14.03.0415.000; Tue, 27 Nov 2018 22:33:59 +0800 From: "Gao, Liming" To: "Tomas Pilar (tpilar)" , "edk2-devel@lists.01.org" CC: "Gao, Liming" Thread-Topic: [edk2] FmpDeviceLib Thread-Index: AQHUhlYEQm2wPE6mq0uDAZNP/AIrWqVjrO7A Date: Tue, 27 Nov 2018 14:33:59 +0000 Message-ID: <4A89E2EF3DFEDB4C8BFDE51014F606A14E373119@SHSMSX104.ccr.corp.intel.com> References: <3d05d3db-1a45-99f7-95ac-5bc77daf0494@solarflare.com> In-Reply-To: <3d05d3db-1a45-99f7-95ac-5bc77daf0494@solarflare.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ctpclassification: CTP_NT x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiN2Y1ZjljZjItZGRmYy00OTNiLTk5Y2YtYjYzY2U1NTllNjg2IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiVTBcL3Z2ejE2eWJyTFM1XC84S1hJY21SK1RWTTNHS1VyMFpCRHJUNFZkUHJ6dVpxcFM4STFva0tHN3FkT0FoZXY5In0= dlp-product: dlpe-windows dlp-version: 11.0.400.15 dlp-reaction: no-action x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Subject: Re: FmpDeviceLib X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Nov 2018 14:34:02 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Tom: FmpDeviceLib can use UEFI driver model/driver binding protocol so it can = install FMP on its device handle during the BDS/Device connection phase. It= can implement RegisterFmpInstaller() to install FMP protocol in its device= handle. In this way, FmpDeviceLib is like UEFI driver with UEFI driver bin= ding protocol.=20 Thanks Liming > -----Original Message----- > From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of To= mas Pilar (tpilar) > Sent: Tuesday, November 27, 2018 9:26 PM > To: edk2-devel@lists.01.org > Subject: [edk2] FmpDeviceLib >=20 > Hi all, >=20 > I am looking at using FmpDxeLib so I need to implement the FmpDeviceLib. = However, it seems like the library functions do not take any > private struct as a parameter, so I am struggling to figure out how to re= ad information off the hardware. FmpDxe does not even pass its > created protocol instance when calling the library functions, leading me = to believe that the only way to do this is to assign a pointer to > private struct during library construction, but that means that a driver = that uses the code can only ever service a single controller. >=20 > Can you offer any insights? >=20 > Cheers, > Tom > _______________________________________________ > edk2-devel mailing list > edk2-devel@lists.01.org > https://lists.01.org/mailman/listinfo/edk2-devel