예제 #1
0
IOReturn IODTPlatformExpert::getNubResources( IOService * nub )
{
  if( nub->getDeviceMemory())
    return( kIOReturnSuccess );

  IODTResolveAddressing( nub, "reg", 0);

  return( kIOReturnSuccess);
}
예제 #2
0
파일: AppleARMIO.cpp 프로젝트: CptFrazz/xnu
IOReturn ARMIO::getNubResources( IOService * nub )
{
    if( nub->getDeviceMemory())
        return( kIOReturnSuccess );
    
    IODTResolveAddressing( nub, "reg", fNub->getDeviceMemoryWithIndex(0) );
    
    return( kIOReturnSuccess);
}
예제 #3
0
파일: AppleARMIO.cpp 프로젝트: CptFrazz/xnu
IOReturn ARMIODevice::getResources( void )
{
    IOService *macIO = this;

    if (getDeviceMemory() != 0) return kIOReturnSuccess;
    
    while (macIO && ((macIO = macIO->getProvider()) != 0))
        if (strcmp("arm-io", macIO->getName()) == 0) break;
    
    if (macIO == 0) return kIOReturnError;
    
    IODTResolveAddressing(this, "reg", macIO->getDeviceMemoryWithIndex(0));
    
    return kIOReturnSuccess;
}