equal
deleted
inserted
replaced
1092 __KTRACE_OPT(KPBUS1, Kern::Printf("++ DMMCSession::MoreDataAvailable(%d blocks, %08x, %d)", aNumBlocks, aMemoryP, aError)); |
1092 __KTRACE_OPT(KPBUS1, Kern::Printf("++ DMMCSession::MoreDataAvailable(%d blocks, %08x, %d)", aNumBlocks, aMemoryP, aError)); |
1093 |
1093 |
1094 Command().iDataMemoryP = aMemoryP; |
1094 Command().iDataMemoryP = aMemoryP; |
1095 EnableDoubleBuffering(aNumBlocks); |
1095 EnableDoubleBuffering(aNumBlocks); |
1096 |
1096 |
1097 iStackP->UnBlock(this, KMMCBlockOnMoreData, aError == KErrNone ? KMMCErrNone : KMMCErrGeneral); |
1097 UnBlock(KMMCBlockOnMoreData, aError == KErrNone ? KMMCErrNone : KMMCErrGeneral); |
1098 } |
1098 } |
1099 |
1099 |
1100 inline TBool DMMCSession::RequestMoreData() |
1100 inline TBool DMMCSession::RequestMoreData() |
1101 /** |
1101 /** |
1102 * Called by the PSL to request the next blocks of data to be transferred from the media driver |
1102 * Called by the PSL to request the next blocks of data to be transferred from the media driver |
1117 { |
1117 { |
1118 __KTRACE_OPT(KPBUS1, Kern::Printf("++ DMMCSession::RequestMoreData()")); |
1118 __KTRACE_OPT(KPBUS1, Kern::Printf("++ DMMCSession::RequestMoreData()")); |
1119 |
1119 |
1120 if(Command().IsDoubleBuffered() && (Command().iBytesDone + Command().BufferLength() < Command().iTotalLength)) |
1120 if(Command().IsDoubleBuffered() && (Command().iBytesDone + Command().BufferLength() < Command().iTotalLength)) |
1121 { |
1121 { |
1122 iStackP->Block(this, KMMCBlockOnMoreData); |
1122 Block(KMMCBlockOnMoreData); |
1123 iDataTransferCallback.CallBack(); |
1123 iDataTransferCallback.CallBack(); |
1124 return(ETrue); |
1124 return(ETrue); |
1125 } |
1125 } |
1126 |
1126 |
1127 return(EFalse); |
1127 return(EFalse); |
1227 /** |
1227 /** |
1228 * Returns a pointer to the specified card. |
1228 * Returns a pointer to the specified card. |
1229 * @param aCardNumber The card number. |
1229 * @param aCardNumber The card number. |
1230 * @return A pointer to the specified card. |
1230 * @return A pointer to the specified card. |
1231 */ |
1231 */ |
1232 {return( (aCardNumber<iMaxCardsInStack) ? (iCardArray->CardP(aCardNumber)) : NULL );} |
1232 {return( (aCardNumber<MaxCardsInStack()) ? (iCardArray->CardP(aCardNumber)) : NULL );} |
1233 |
1233 |
1234 inline DMMCSocket* DMMCStack::MMCSocket() const |
1234 inline DMMCSocket* DMMCStack::MMCSocket() const |
1235 /** |
1235 /** |
1236 * Returns a pointer to associated socket object. |
1236 * Returns a pointer to associated socket object. |
1237 * @return A pointer to the associated socket. |
1237 * @return A pointer to the associated socket. |