Replies: 1 comment 1 reply
-
I have written a couple of instances that used driver binding and the above function. In those implementations, I captured the function pointer into a global variable and then returned EFI_SUCCESS. Then later when driver binding start runs your code can call the cached function pointer with the handle you now have. I thought @mdkinney authored an open-source sample driver for an option rom that supported multi-instance and used this function. I can't find it but maybe he will see this and respond. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all,
In
\FmpDevicePkg\Library\FmpDeviceLibNull\FmpDeviceLib.c
There are comments for
RegisterFmpInstaller
:However, since the ‘RegisterFmpInstaller’ of the example directly returns
EFI_UNSUPPORTED
, it does not demonstrate how to handle the DriverBinding protocol. There are similar instructions in the edk2-platforms example, but it also does not demonstrate how to locate the DriverBinding protocol. The full path of edk2-platforms example is :edk2-platforms\Platform\Intel\Vlv2TbltDevicePkg\Feature\Capsule\Library\FmpDeviceLib\FmpDeviceLib.c
I would like to operate USBIO in FmpDxe, how to do Binding protocol in FmpDxe, is there any sample code?
Any suggestion is greatly appreciated!
Many thanks!
Beta Was this translation helpful? Give feedback.
All reactions