Add DMAC definitions

This commit is contained in:
Sophie Kirschner
2020-09-02 11:44:38 +03:00
parent 30c8272ba3
commit 87232db654
4 changed files with 56 additions and 0 deletions

24
src/dmac/pspdmac.h Normal file
View File

@@ -0,0 +1,24 @@
/*
* PSP Software Development Kit - http://www.pspdev.org
* -----------------------------------------------------------------------
* Licensed under the BSD license, see LICENSE in PSPSDK root for details.
*
* dmac.c - A DMAC function
*
* Copyright (c) 2016 173210 <root.3.173210@live.com>
*/
#include <psptypes.h>
/**
* Copy data in memory using DMAC
*
* @param dst - The pointer to the destination
* @param src - The pointer to the source
* @param n - The size of data
*
* @return 0 on success; otherwise an error code
*/
int sceDmacMemcpy(void *dst, const void *src, SceSize n);
int sceDmacTryMemcpy(void *dst, const void *src, SceSize n);