2779 static TInt CreatePhysicalPinObject(TPhysicalPinObject*& aPinObject); |
2779 static TInt CreatePhysicalPinObject(TPhysicalPinObject*& aPinObject); |
2780 static TInt PinPhysicalMemory(TPhysicalPinObject* aPinObject, TLinAddr aStart, TUint aSize, TBool aReadOnly, TPhysAddr& aAddress, TPhysAddr* aPages, TUint32& aMapAttr, TUint& aColour, DThread* aThread); |
2780 static TInt PinPhysicalMemory(TPhysicalPinObject* aPinObject, TLinAddr aStart, TUint aSize, TBool aReadOnly, TPhysAddr& aAddress, TPhysAddr* aPages, TUint32& aMapAttr, TUint& aColour, DThread* aThread); |
2781 static void UnpinPhysicalMemory(TPhysicalPinObject* aPinObject); |
2781 static void UnpinPhysicalMemory(TPhysicalPinObject* aPinObject); |
2782 static void DestroyPhysicalPinObject(TPhysicalPinObject*& aPinObject); |
2782 static void DestroyPhysicalPinObject(TPhysicalPinObject*& aPinObject); |
2783 |
2783 |
|
2784 static TInt CreateKernelMapObject(TKernelMapObject*& aMapObject, TUint aMaxReserveSize); |
|
2785 static TInt MapAndPinMemory(TKernelMapObject* aMapObject, DThread* aThread, TLinAddr aStart, TUint aSize, TUint aMapAttributes, TLinAddr& aKernelAddr, TPhysAddr* aPages); |
|
2786 static void UnmapAndUnpinMemory(TKernelMapObject* aMapObject); |
|
2787 static void DestroyKernelMapObject(TKernelMapObject*& aMapObject); |
|
2788 |
2784 // RAM allocator and defrag interfaces. |
2789 // RAM allocator and defrag interfaces. |
2785 static void RamAllocLock(); |
2790 static void RamAllocLock(); |
2786 static void RamAllocUnlock(); |
2791 static void RamAllocUnlock(); |
2787 static void RamAllocIsLocked(); |
2792 static void RamAllocIsLocked(); |
2788 static TUint NumberOfFreeDpPages(); |
2793 static TUint NumberOfFreeDpPages(); |