Ataport PciIdex Interfacing.

Both the PciIdex and Ataport seem to export the same set of AtaPortXXX routines. PciIdex also exports the controller miniport interface routines as well.

The sample MsAhci seems to link to only PciIdex import lib. In the documentation it is mentioned that once the miniport hooks (registers) the channel miniport interface, then the default channel miniport (Atapi.sys) is bypassed and channel specific calls are made directly to the miniport without PciIdex mediation.

So just curious to know how is PciIdex is communicating with Ataport, Direct Call Interface or some other mechanism???
The PciIdex doesn’t seem to have an import section from Ataport.

Thanks,
Sreekumar