kolibrios-fun/contrib/other/uarm/callout_RAM.c

17 lines
345 B
C
Raw Normal View History

#include "mem.h"
#include "callout_RAM.h"
Boolean coRamInit(CalloutRam* ram, ArmMem* mem, UInt32 adr, UInt32 sz, ArmMemAccessF* coF){
ram->adr = adr;
ram->sz = sz;
return memRegionAdd(mem, adr, sz, (void*)coF, ram);
}
Boolean coRamDeinit(CalloutRam* ram, ArmMem* mem){
return memRegionDel(mem, ram->adr, ram->sz);
}