Mercurial > hg > Game > Cerium
diff TaskManager/Fifo/FifoDmaManager.h @ 1213:a49c02dffe6f draft
DMA connector reogranization
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 22 Jul 2011 13:25:30 +0900 |
parents | 27e35b4098a4 |
children | bb75ee244826 |
line wrap: on
line diff
--- a/TaskManager/Fifo/FifoDmaManager.h Fri Jul 22 08:50:04 2011 +0900 +++ b/TaskManager/Fifo/FifoDmaManager.h Fri Jul 22 13:25:30 2011 +0900 @@ -35,9 +35,11 @@ } /* functions */ - void dma_load(void *buf, memaddr addr, uint32 size, uint32 mask); - void dma_store(void *buf, memaddr addr, uint32 size, uint32 mask); + void *dma_load(Scheduler *s, void *buf, memaddr addr, uint32 size, uint32 mask); + void *dma_store(void *buf, memaddr addr, uint32 size, uint32 mask); void dma_wait(uint32 mask) ; + void *get_writebuf(Scheduler *s, memaddr addr, uint32 size) ; + void mail_write(memaddr data) { mail_queue1->send(data); } void mail_write_queue(memaddr data) { mail_queue1->send(data); } @@ -49,8 +51,12 @@ memaddr mail_read_from_host() { return mail_queue1->recv(); } int has_mail_from_host() { return mail_queue1->count(); } - void dma_loadList(ListDataPtr list, void *buff, uint32 mask); + void *dma_loadList(Scheduler *s, ListDataPtr list, void *buff, uint32 mask); void dma_storeList(ListDataPtr, void *buff, uint32 mask); + void *get_writebuf(Scheduler *s, ListDataPtr, uint32 size) ; + + uint32 get_tag(); + void bound(ListData *); };