Mercurial > hg > Game > Cerium
comparison TaskManager/kernel/schedule/DmaManager.h @ 1413:5b024efa2429 draft
fix free on non copy DMA
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 19 Feb 2012 10:07:27 +0900 |
parents | 2187bd10f16d |
children | 94ac6d8e73aa |
comparison
equal
deleted
inserted
replaced
1412:f40558ec00a8 | 1413:5b024efa2429 |
---|---|
21 virtual ~DmaManager() {}; | 21 virtual ~DmaManager() {}; |
22 | 22 |
23 BASE_NEW_DELETE(DmaManager); | 23 BASE_NEW_DELETE(DmaManager); |
24 | 24 |
25 // API for DMA transfer | 25 // API for DMA transfer |
26 virtual void *dma_load(Scheduler *s, void *buf, memaddr addr, uint32 size, uint32 mask) { return 0;} | 26 virtual void *dma_load(Scheduler *s, void *buf, memaddr addr, uint32 size, uint32 mask) { return 0; } |
27 virtual void *dma_store(void *buf,memaddr addr, uint32 size, uint32 mask) { return 0;} | 27 virtual void *dma_store(void *buf,memaddr addr, uint32 size, uint32 mask) { return 0; } |
28 virtual void *get_writebuf(Scheduler *s, memaddr addr, uint32 size) { return 0;} | 28 virtual void free(void *buf) { free(buf); } |
29 virtual void *get_writebuf(Scheduler *s, memaddr addr, uint32 size) { return 0; } | |
29 virtual void dma_wait(uint32 mask) {} | 30 virtual void dma_wait(uint32 mask) {} |
30 virtual void dma_wait(uint32 mask, int cmd) {} | 31 virtual void dma_wait(uint32 mask, int cmd) {} |
31 virtual void show_dma_wait(Scheduler *s, int cpu) {} | 32 virtual void show_dma_wait(Scheduler *s, int cpu) {} |
32 virtual void start_profile() {} | 33 virtual void start_profile() {} |
33 | 34 |
36 virtual void mail_write_finish_list(memaddr data) {} | 37 virtual void mail_write_finish_list(memaddr data) {} |
37 virtual memaddr mail_read() { return 0; } | 38 virtual memaddr mail_read() { return 0; } |
38 virtual memaddr task_list_mail_read() { return 0; } | 39 virtual memaddr task_list_mail_read() { return 0; } |
39 | 40 |
40 // API for MFC list DMA transfer | 41 // API for MFC list DMA transfer |
41 virtual void *dma_loadList(Scheduler *s, ListDataPtr list, void *,uint32 mask) { return 0;} | 42 virtual void *dma_loadList(Scheduler *s, ListDataPtr list, void *,uint32 mask) { return 0; } |
42 virtual void dma_storeList(ListDataPtr, void *buff, uint32 mask) {} | 43 virtual void dma_storeList(ListDataPtr, void *buff, uint32 mask) {} |
43 virtual void *get_writebuf(Scheduler *s, ListDataPtr, uint32 size) { return 0;} | 44 virtual void *get_writebuf(Scheduler *s, ListDataPtr, uint32 size) { return 0; } |
44 virtual uint32 get_tag() { return 0;} | 45 virtual uint32 get_tag() { return 0;} |
45 virtual void bound(ListData *) {} | 46 virtual void bound(ListData *) {} |
46 }; | 47 }; |
47 | 48 |
48 #endif | 49 #endif |