On 15/08/14 04:51, Tian, Feng wrote:
> Hi, Reza
> 
> This is a reason to use IdeInit.ChannelCount rather than the constant value. 
> Some platforms may only expose one ide channel to external. By this way, we 
> can skip unnecessary enumeration time according to platform policy.
> 
> Do you see any real impact with original code?
Yes, it won't work with the original code, because the ChannelCount is
initialized too early.

Also, the IdeBus.c works in a similar fashion to this one. It does not use
IdeInit.ChannelCount, but instead uses IdeMaxChannel, which is defined in 
IntelFrameworkModulePkg/Bus/Pci/IdeBusDxe/IdeData.h

------------------------------------------------------------------------------
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-devel

Reply via email to