• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10.1/IOPCIFamily-239.1.2/

Lines Matching refs:shadow

770     IOPCIConfigShadow * shadow;
776 shadow = configShadow(device);
781 if (!shadow->tunnelRoot) return (kIOReturnUnsupported);
800 if (device == shadow->tunnelRoot)
937 IOPCIConfigShadow * shadow;
947 shadow = configShadow(device);
948 flags = shadow->flags;
955 shadow->flags = flags;
956 shadow->restoreCount = 0;
960 shadow->tunnelID = device->copyProperty(gIOPCITunnelIDKey, gIOServicePlane);
963 if (shadow->handler)
966 (*shadow->handler)(shadow->handlerRef, kIOMessageDeviceWillPowerOff, device, 3);
981 if (shadow->bridge)
984 shadow->bridge->saveBridgeState();
994 shadow->savedL1PM0
996 shadow->savedL1PM1
998 if (kIOPCIConfigShadowWakeL1PMDisable & shadow->flags) shadow->savedL1PM0 &= ~(0xF);
1003 shadow->savedLTR
1009 shadow->savedAERCapsControl
1011 shadow->savedAERSeverity
1013 shadow->savedAERUMask
1015 shadow->savedAERCMask
1017 if (device->reserved->rootPort) shadow->savedAERRootCommand
1023 shadow->savedDeviceControl
1025 shadow->savedLinkControl
1027 if ((kIOPCIConfigShadowBridgeInterrupts & shadow->flags)
1030 shadow->savedSlotControl
1035 shadow->savedDeviceControl2
1037 shadow->savedLinkControl2
1039 shadow->savedSlotControl2
1042 if (kIOPCIConfigShadowSleepLinkDisable & shadow->flags)
1045 (1 << 4) | shadow->savedLinkControl);
1047 if (kIOPCIConfigShadowSleepReset & shadow->flags)
1055 if (kIOPCIConfigShadowWakeL1PMDisable & shadow->flags) shadow->savedLinkControl &= ~(0x100);
1058 IOPCIMessagedInterruptController::saveDeviceState(device, shadow);
1060 if (shadow->handler)
1063 (*shadow->handler)(shadow->handlerRef, kIOMessageDeviceHasPoweredOff, device, 3);
1069 if (kIOPCIConfigShadowHotplug & shadow->flags)
1080 shadow->flags &= ~kIOPCIConfigShadowValid;
1084 if (kIOPCIConfigShadowValid & shadow->flags)
1086 configOp(device, kConfigOpShadowed, &shadow->savedConfig[0]);
1096 IOPCIConfigShadow * shadow;
1105 shadow = configShadow(device);
1106 flags = shadow->flags;
1109 if (shadow->restoreCount == gIOPCIWakeCount) return (kIOReturnNoResources);
1110 shadow->restoreCount = gIOPCIWakeCount;
1112 if (shadow->handler)
1115 ret = (*shadow->handler)(configShadow(device)->handlerRef,
1175 if (shadow->bridge)
1178 shadow->bridge->restoreBridgeState();
1191 shadow->savedL1PM1);
1193 shadow->savedL1PM0);
1199 shadow->savedLTR);
1205 shadow->savedAERCapsControl);
1207 shadow->savedAERSeverity);
1209 shadow->savedAERUMask);
1211 shadow->savedAERCMask);
1216 shadow->savedAERRootCommand);
1223 shadow->savedDeviceControl);
1228 shadow->savedDeviceControl2);
1231 shadow->savedLinkControl);
1236 shadow->savedSlotControl);
1241 shadow->savedLinkControl2);
1243 shadow->savedSlotControl2);
1247 IOPCIMessagedInterruptController::restoreDeviceState(device, shadow);
1271 IOPCIConfigShadow * shadow;
1273 shadow = configShadow(device);
1274 if (shadow->tunnelRoot)
1276 DLOG("queued %s on %s\n", device->getName(), shadow->tunnelRoot->getName());
1277 que = &configShadow(shadow->tunnelRoot)->dependents;
1278 if (device == shadow->tunnelRoot)
1292 shadow,
1301 IOPCIConfigShadow * shadow;
1303 shadow = configShadow(device);
1307 if (shadow->tunnelRoot)
1309 que = &configShadow(shadow->tunnelRoot)->dependents;
1318 shadow,
1340 IOPCIConfigShadow * shadow;
1350 shadow = next;
1351 next = (IOPCIConfigShadow *) queue_next(&shadow->link);
1355 if (!(kIOPCIConfigShadowBridge & shadow->flags)) continue;
1360 if (shadow->tunnelID) continue;
1365 if (kIOPCIConfigShadowVolatile & shadow->flags)
1367 shadow->device->setPCIPowerState(kIOPCIDeviceOnState, options);
1369 ret = _restoreDeviceState(shadow->device, kIOPCIRestoreDeviceStateEarly);
1372 ret = _restoreDeviceState(shadow->device, 0);
1375 if (shadow->tunnelID)
1377 shadow->tunnelID->release();
1378 shadow->tunnelID = 0;
1383 next = (IOPCIConfigShadow *) queue_next(&shadow->link);
1385 shadow,
1388 shadow->link.next = shadow->link.prev = NULL;
1400 IOPCIConfigShadow * shadow;
1410 shadow = next;
1411 next = (IOPCIConfigShadow *) queue_next(&shadow->link);
1413 if (shadow->tunnelRoot || shadow->tunnelID) panic("tunnel");
1415 if (shadow->device != device)
1419 if (!(kIOPCIConfigShadowBridge & shadow->flags)) continue;
1422 if (!(kIOPCIConfigShadowVolatile & shadow->flags)) continue;
1426 && (shadow->device->reserved->psMethods[0] >= 0)
1428 && (shadow->device->space.s.busNum
1429 || (0x10de != (shadow->savedConfig[kIOPCIConfigVendorID >> 2] & 0xffff))))
1434 if (shadow->device->space.s.busNum) continue;
1435 if (shadow->handler) continue;
1436 if (shadow->device->reserved->pmSleepEnabled) continue;
1442 shadow->device->setPCIPowerState(kIOPCIDeviceOnState, options);
1444 ret = _restoreDeviceState(shadow->device, kIOPCIRestoreDeviceStateEarly);
1448 next = (IOPCIConfigShadow *) queue_next(&shadow->link);
1450 shadow,
1453 shadow->link.next = shadow->link.prev = NULL;
1814 // set up config space shadow
1816 IOPCIConfigShadow * shadow = IONew(IOPCIConfigShadow, 1);
1817 if (shadow)
1819 bzero(shadow, sizeof(IOPCIConfigShadow));
1820 queue_init(&shadow->dependents);
1821 shadow->device = nub;
1826 shadow->tunnelRoot = root;
1829 nub->savedConfig = (UInt32 *) &shadow->savedConfig[0];
1839 if (shadow && (kIOPCIClassBridge == (nub->savedConfig[kIOPCIConfigRevisionID >> 2] >> 24)))
1841 shadow->flags |= kIOPCIConfigShadowBridge;
1845 shadow->flags |= kIOPCIConfigShadowHostBridge;