340 EBackgroundPaging=0x10, // a background paging request. @see DMediaPagingDevice::Write() |
340 EBackgroundPaging=0x10, // a background paging request. @see DMediaPagingDevice::Write() |
341 ECodePaging=0x20, // a code paging request |
341 ECodePaging=0x20, // a code paging request |
342 EDataPaging=0x40, // a data paging request |
342 EDataPaging=0x40, // a data paging request |
343 ETClientBuffer=0x80, // RemoteDes() points to a TClientBuffer |
343 ETClientBuffer=0x80, // RemoteDes() points to a TClientBuffer |
344 EKernelBuffer=0x100, // RemoteDes() points to a kernel-side buffer |
344 EKernelBuffer=0x100, // RemoteDes() points to a kernel-side buffer |
|
345 EPhysAddrOnly=0x200, // No virtual address is available. Data Paging requests Only. |
345 }; |
346 }; |
346 public: |
347 public: |
347 |
348 |
348 /** |
349 /** |
349 Gets a reference to the object containing the request information. |
350 Gets a reference to the object containing the request information. |
975 void SendToMainQueueDfcAndBlock(TThreadMessage* aMsg); |
976 void SendToMainQueueDfcAndBlock(TThreadMessage* aMsg); |
976 void SendToDeferredQ(TThreadMessage* aMsg); |
977 void SendToDeferredQ(TThreadMessage* aMsg); |
977 inline static TBool PageInRequest(TLocDrvRequest& aReq); |
978 inline static TBool PageInRequest(TLocDrvRequest& aReq); |
978 inline static TBool PageOutRequest(TLocDrvRequest& aReq); |
979 inline static TBool PageOutRequest(TLocDrvRequest& aReq); |
979 inline static TBool PagingRequest(TLocDrvRequest& aReq); |
980 inline static TBool PagingRequest(TLocDrvRequest& aReq); |
|
981 |
|
982 virtual TInt WritePhysical(TThreadMessage* aReq, TPhysAddr* aPageArray, TUint aPageCount, TUint aOffset, TBool aBackground); |
|
983 virtual TInt ReadPhysical(TThreadMessage* aReq, TPhysAddr* aPageArray, TUint aPageCount, TUint aOffset, TInt aDrvNumber); |
|
984 private: |
|
985 virtual TInt BaseRead(TThreadMessage* aReq,TUint32 aBuffer,TUint aOffset,TUint aSize,TInt aDrvNumber,TBool aPhysAddr); |
|
986 virtual TInt BaseWrite(TThreadMessage* aReq,TUint32 aBuffer,TUint aOffset,TUint aSize, TBool aBackground,TBool aPhysAddr); |
980 public: |
987 public: |
981 TMessageQue iMainQ; |
988 TMessageQue iMainQ; |
982 TMessageQue iDeferredQ; |
989 TMessageQue iDeferredQ; |
983 DPrimaryMediaBase* iPrimaryMedia; |
990 DPrimaryMediaBase* iPrimaryMedia; |
984 |
991 |