IopFindLegacyBusDeviceNode
__int64 *__fastcall IopFindLegacyBusDeviceNode(unsigned int a1, unsigned int a2){
PVOID v2;
unsigned int v4;
__int64 *v5;
__int64 *i;
v2 = IopRootDeviceNode;
if( a1 != 15 && a1 <= 0x11 )
{
v4 = 1;
if( a1 != 2 )
v4 = a1;
v5 = &IopLegacyBusInformationTable[2 * (int)v4];
for( i = (__int64 *)*v5; i != v5; i = (__int64 *)*i )
{
if( *((_DWORD *)i - 43) == a2 )
return i - 78;
if( *((_DWORD *)i - 43) > a2 )
return(__int64 *)v2;
}
}
return(__int64 *)v2;
}Referenced by:
IoTranslateBusAddress
IopChildToRootTranslation
IopDuplicateDetection
IopSetupArbiterAndTranslators
PnpReleaseResourcesInternal