From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=148.163.129.52; helo=dispatch1-us1.ppe-hosted.com; envelope-from=tpilar@solarflare.com; receiver=edk2-devel@lists.01.org Received: from dispatch1-us1.ppe-hosted.com (dispatch1-us1.ppe-hosted.com [148.163.129.52]) (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 DE80B2116821B for ; Tue, 27 Nov 2018 05:26:10 -0800 (PST) X-Virus-Scanned: Proofpoint Essentials engine Received: from webmail.solarflare.com (webmail.solarflare.com [12.187.104.26]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by mx1-us4.ppe-hosted.com (Proofpoint Essentials ESMTP Server) with ESMTPS id 9F8A5800076 for ; Tue, 27 Nov 2018 13:26:09 +0000 (UTC) Received: from tp-desktop.uk.solarflarecom.com (10.17.20.51) by ocex03.SolarFlarecom.com (10.20.40.36) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Tue, 27 Nov 2018 05:26:06 -0800 To: "edk2-devel@lists.01.org" From: "Tomas Pilar (tpilar)" Message-ID: <3d05d3db-1a45-99f7-95ac-5bc77daf0494@solarflare.com> Date: Tue, 27 Nov 2018 13:25:50 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.3.0 MIME-Version: 1.0 X-Originating-IP: [10.17.20.51] X-TM-AS-Product-Ver: SMEX-12.5.0.1300-8.5.1010-24248.005 X-TM-AS-Result: No-3.507600-4.000000-10 X-TMASE-MatchedRID: WBMpiVyTsUW+9Go4BgFPZmA/V00XWjDtguwtqyXlE6GCsBeCv8CM/Zj5 l5Hrjw84+HouGunxH47AFycL8Ymu1s1+8fdu8L/86Zzj+kMRBrZ9LQinZ4QefL6qvLNjDYTwIq9 5DjCZh0x2jkpctwKLBQtuKBGekqUpOlxBO2IcOBYzDFGng8clnrr9dnt2qEySS3tTjBpjTtf31R McFFN9xsZOBiWOvAiXaucrMXczI6nHyMUfiwdOkHht1OYy1q9c4JAlG3ZnwruOv2kKkZnHnil5t 7e+8dXxJ1UV5TO7EzIZpq4BnJDD2MfkE6y29yKp X-TM-AS-User-Approved-Sender: No X-TM-AS-User-Blocked-Sender: No X-TMASE-Result: 10--3.507600-4.000000 X-TMASE-Version: SMEX-12.5.0.1300-8.5.1010-24248.005 X-MDID: 1543325170-FYuEzJ3DCvOp Subject: 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 13:26:11 -0000 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Language: en-US Hi all, 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 read 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. Can you offer any insights? Cheers, Tom