DMA copying now specifies destination operating system

This commit is contained in:
Taku Shimosawa
2012-02-22 18:01:55 +09:00
parent e4d776a0b6
commit 0be6147a81

View File

@@ -10,14 +10,19 @@ int memcpy_async(unsigned long dest, unsigned long src,
if (notify)
*notify = 0;
memset(&req, 0, sizeof(req));
/* Physical */
req.src_os = (aal_os_t)AAL_THIS_OS;
req.src_phys = src;
req.dest_os = (aal_os_t)AAL_THIS_OS;
req.dest_phys = dest;
req.size = len;
if (notify) {
req.notify_os = (aal_os_t)AAL_THIS_OS;
req.notify = (void *)virt_to_phys(notify);
req.priv = (void *)1;
} else if (wait) {
req.notify_os = (aal_os_t)AAL_THIS_OS;
req.notify = (void *)virt_to_phys(&fin);
req.priv = (void *)1;
}