/**
* \brief Get the physical address of a virtual location
*/
-tPAddr MM_GetPhysAddr(const void *Ptr)
+tPAddr MM_GetPhysAddr(volatile const void *Ptr)
{
tVAddr Addr = (tVAddr)Ptr;
tPAddr *ptr;
/**
* \brief Map a range of hardware pages
*/
-tVAddr MM_MapHWPages(tPAddr PAddr, Uint Number)
+void *MM_MapHWPages(tPAddr PAddr, Uint Number)
{
tVAddr ret;
int num;
MM_RefPhys(PAddr);
}
- return ret;
+ return (void*)ret;
}
Log_Error("MM", "MM_MapHWPages - No space for %i pages", Number);
* \param PhysAddr Pointer to the location to place the physical address allocated
* \return Virtual address allocate
*/
-tVAddr MM_AllocDMA(int Pages, int MaxBits, tPAddr *PhysAddr)
+void *MM_AllocDMA(int Pages, int MaxBits, tPAddr *PhysAddr)
{
tPAddr phys;
- tVAddr ret;
+ void *ret;
// Sanity Check
if(MaxBits < 12 || !PhysAddr) return 0;