remove "done" folders, label "bs/droneenter, bs/dronelook, and bs/dronevanish files and functions"
This commit is contained in:
16
src/core1/io/sprawdma.c
Normal file
16
src/core1/io/sprawdma.c
Normal file
@@ -0,0 +1,16 @@
|
||||
#include <os_internal.h>
|
||||
#include <rcp.h>
|
||||
#include "osint.h"
|
||||
|
||||
s32 __osSpRawStartDma(s32 direction, u32 devAddr, void *dramAddr, u32 size)
|
||||
{
|
||||
if (__osSpDeviceBusy())
|
||||
return -1;
|
||||
IO_WRITE(SP_MEM_ADDR_REG, devAddr);
|
||||
IO_WRITE(SP_DRAM_ADDR_REG, osVirtualToPhysical(dramAddr));
|
||||
if (direction == OS_READ)
|
||||
IO_WRITE(SP_WR_LEN_REG, size - 1);
|
||||
else
|
||||
IO_WRITE(SP_RD_LEN_REG, size - 1);
|
||||
return 0;
|
||||
}
|
Reference in New Issue
Block a user