Lines Matching refs:space
130 ioAddrCell.physHi.s.space = kIOPCIIOSpace;
281 IOPCIAddressSpace space;
283 space.bits = 0;
284 space.s.busNum = secondaryBus;
285 space.s.deviceNum = kPCIBridgeSelfDevice;
287 return( space );
290 inline bool AppleMacRiscPCI::setConfigSpace( IOPCIAddressSpace space,
295 if( space.es.registerNumExtended)
299 if( space.s.busNum == secondaryBus) {
301 if( space.s.deviceNum < kPCIBridgeSelfDevice)
305 addrCycle = ( (1 << space.s.deviceNum)
306 | (space.s.functionNum << 8)
311 addrCycle = ( (space.bits)
325 UInt32 AppleMacRiscPCI::configRead32( IOPCIAddressSpace space,
333 if( setConfigSpace( space, offset )) {
348 void AppleMacRiscPCI::configWrite32( IOPCIAddressSpace space,
355 if( setConfigSpace( space, offset )) {
371 UInt16 AppleMacRiscPCI::configRead16( IOPCIAddressSpace space,
379 if( setConfigSpace( space, offset )) {
394 void AppleMacRiscPCI::configWrite16( IOPCIAddressSpace space,
401 if( setConfigSpace( space, offset )) {
417 UInt8 AppleMacRiscPCI::configRead8( IOPCIAddressSpace space,
425 if( setConfigSpace( space, offset )) {
440 void AppleMacRiscPCI::configWrite8( IOPCIAddressSpace space,
447 if( setConfigSpace( space, offset )) {
581 IOPCIAddressSpace space;
583 space.bits = 0;
584 space.s.busNum = primaryBus;
585 space.s.deviceNum = kHTBridgeSelfDevice;
587 return( space );
590 volatile UInt8 * AppleMacRiscHT::setConfigSpace( IOPCIAddressSpace space,
595 if( space.es.registerNumExtended)
599 if( space.s.busNum == primaryBus) {
601 if( space.s.deviceNum == kHTBridgeSelfDevice) {
606 configData = configType0 + ((space.bits & 0xffffff00) | offset);
611 configData = configType1 + ((space.bits & 0xffffff00) | offset);
617 UInt32 AppleMacRiscHT::configRead32( IOPCIAddressSpace space,
623 configData = setConfigSpace( space, offset );
637 void AppleMacRiscHT::configWrite32( IOPCIAddressSpace space,
642 configData = setConfigSpace( space, offset );
658 UInt16 AppleMacRiscHT::configRead16( IOPCIAddressSpace space,
664 configData = setConfigSpace( space, offset );
679 void AppleMacRiscHT::configWrite16( IOPCIAddressSpace space,
684 configData = setConfigSpace( space, offset );
700 UInt8 AppleMacRiscHT::configRead8( IOPCIAddressSpace space,
706 configData = setConfigSpace( space, offset );
720 void AppleMacRiscHT::configWrite8( IOPCIAddressSpace space,
725 configData = setConfigSpace( space, offset );
848 IOPCIAddressSpace space;
850 space.bits = 0;
851 space.es.busNum = primaryBus;
852 space.es.deviceNum = kPCIEBridgeSelfDevice;
854 return( space );
857 bool AppleMacRiscPCIE::configCycleAtomic( IOPCIAddressSpace space)
859 if( space.es.registerNumExtended != 0)
865 volatile UInt8 * AppleMacRiscPCIE::setConfigSpace( IOPCIAddressSpace space,
873 if( configCycleAtomic(space)) {
874 configData = configAtomic + ((space.bits & 0x00ffff00) | offset);
878 if( space.es.busNum == primaryBus) {
880 addrCycle = ( (1 << (space.es.deviceNum + 11))
881 | (space.es.registerNumExtended << 28)
882 | (space.es.functionNum << 8)
887 addrCycle = ( ((space.bits) & 0x00ffff00)
888 | (space.es.registerNumExtended << 28)
905 UInt32 AppleMacRiscPCIE::configRead32( IOPCIAddressSpace space,
910 bool atomic = configCycleAtomic(space);
916 configData = setConfigSpace( space, offset );
929 void AppleMacRiscPCIE::configWrite32( IOPCIAddressSpace space,
933 bool atomic = configCycleAtomic(space);
939 configData = setConfigSpace( space, offset );
955 UInt16 AppleMacRiscPCIE::configRead16( IOPCIAddressSpace space,
960 bool atomic = configCycleAtomic(space);
966 configData = setConfigSpace( space, offset );
979 void AppleMacRiscPCIE::configWrite16( IOPCIAddressSpace space,
983 bool atomic = configCycleAtomic(space);
989 configData = setConfigSpace( space, offset );
1005 UInt8 AppleMacRiscPCIE::configRead8( IOPCIAddressSpace space,
1010 bool atomic = configCycleAtomic(space);
1016 configData = setConfigSpace( space, offset );
1029 void AppleMacRiscPCIE::configWrite8( IOPCIAddressSpace space,
1033 bool atomic = configCycleAtomic(space);
1039 configData = setConfigSpace( space, offset );
1093 IOPCIAddressSpace space = getBridgeSpace();
1101 addrCycle = ( (1 << (space.es.deviceNum + 11))
1102 | (space.es.registerNumExtended << 28)
1103 | (space.es.functionNum << 8)
1117 // start at config space location 8 -- bytes 0-3 are
1120 // registers until the rest of config space is set up.
1124 configWrite32(space, cnt * 4, bridgeState[cnt]);
1127 // once the rest of the config space is restored,
1133 configWrite32(space, kIOPCIConfigCommand, bridgeState[kIOPCIConfigCommand >> 2]);
1176 IOPCIAddressSpace space;
1180 spaceFromProperties( from, &space);
1182 isAGP = ( (space.s.deviceNum != getBridgeSpace().s.deviceNum)
1183 && findPCICapability( space, kIOPCIAGPCapability, &masterAGPRegisters ));
1458 inline void AppleMacRiscAGP::configSetClearMask( IOPCIAddressSpace space,
1465 if( setConfigSpace( space, offset )) {
1614 IOPCIAddressSpace master = _master->space;