Sathya,

By default for PCI Adapters, the driver from the option ROM associated with a 
PCI Controller will be tried first using the Bus Specific Driver Override rule. 
 The details on all the rules that determine the order that Driver Binding 
Supported() is tried on a specific controller are described in the UEFI 
Specification in the description of the UEFI Boot Service ConnectController().

Your use case is also covered in an example in the UEFI Driver Writer's Guide 
in section 3.14.2.  It is available from the following page:

http://sourceforge.net/apps/mediawiki/tianocore/index.php?title=Driver_Developer

Best regards,

Mike

From: Andrew Fish [mailto:af...@apple.com]
Sent: Wednesday, December 19, 2012 4:03 PM
To: edk2-devel@lists.sourceforge.net
Subject: Re: [edk2] How to impose 1 to 1 mapping between driver and controller

The EFI_PCI_IO_PROTOCOL contains a pointer to the RomImage that was filled in 
by the PCI bus driver. There is also an attribute bit that lets you know if the 
ROM cam from the system or the PCI Card. So your could check the 
EFI_PCI_IO_PROTOCOL.RomImage to make sure you are running on the card the ROM 
came from.

Andrew Fish


On Dec 19, 2012, at 3:32 PM, "Prakash, Sathya" 
<sathya.prak...@lsi.com<mailto:sathya.prak...@lsi.com>> wrote:


Folks,
Let us assume a case where there are two I/O controllers present in the system 
with only one controller (c1) having a UEFI Boot Service Driver programmed in 
its flash part and the other one (c2) doesn't have the BSD in flash.  Both are 
having same PCI IDs. I want to ensure in my driver binding's supported or start 
routines to make sure the driver manages only the controller from where it 
loads and not the other controller. Can it is doable?

Thanks
Sathya
------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d_______________________________________________
edk2-devel mailing list
edk2-devel@lists.sourceforge.net<mailto:edk2-devel@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/edk2-devel

------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-devel

Reply via email to