DMA copying now specifies destination operating system
This commit is contained in:
@@ -10,14 +10,19 @@ int memcpy_async(unsigned long dest, unsigned long src,
|
|||||||
if (notify)
|
if (notify)
|
||||||
*notify = 0;
|
*notify = 0;
|
||||||
memset(&req, 0, sizeof(req));
|
memset(&req, 0, sizeof(req));
|
||||||
|
/* Physical */
|
||||||
|
req.src_os = (aal_os_t)AAL_THIS_OS;
|
||||||
req.src_phys = src;
|
req.src_phys = src;
|
||||||
|
req.dest_os = (aal_os_t)AAL_THIS_OS;
|
||||||
req.dest_phys = dest;
|
req.dest_phys = dest;
|
||||||
req.size = len;
|
req.size = len;
|
||||||
|
|
||||||
if (notify) {
|
if (notify) {
|
||||||
|
req.notify_os = (aal_os_t)AAL_THIS_OS;
|
||||||
req.notify = (void *)virt_to_phys(notify);
|
req.notify = (void *)virt_to_phys(notify);
|
||||||
req.priv = (void *)1;
|
req.priv = (void *)1;
|
||||||
} else if (wait) {
|
} else if (wait) {
|
||||||
|
req.notify_os = (aal_os_t)AAL_THIS_OS;
|
||||||
req.notify = (void *)virt_to_phys(&fin);
|
req.notify = (void *)virt_to_phys(&fin);
|
||||||
req.priv = (void *)1;
|
req.priv = (void *)1;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user