Mercurial > hg > Game > Cerium
comparison TaskManager/Cell/spe/CellDmaManager.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 | c43f49400c22 |
children | 2a4ba6366394 |
comparison
equal
deleted
inserted
replaced
1212:4fc9a9a6089d | 1213:a49c02dffe6f |
---|---|
32 unsigned long long mail_read_time, mail_write_time; | 32 unsigned long long mail_read_time, mail_write_time; |
33 unsigned long long task_list_mail_read_time, finish_mail_write_time; | 33 unsigned long long task_list_mail_read_time, finish_mail_write_time; |
34 int task_list_read_count; | 34 int task_list_read_count; |
35 | 35 |
36 /* functions */ | 36 /* functions */ |
37 void dma_load(void *buf, memaddr addr, uint32 size, uint32 mask); | 37 void dma_load(Scheduler *s,void *buf, memaddr addr, uint32 size, uint32 mask); |
38 void dma_store(void *buf, memaddr addr, uint32 size, uint32 mask); | 38 void dma_store(Scheduler *s,void *buf, memaddr addr, uint32 size, uint32 mask); |
39 | |
40 void *get_writebuf(Schduler *s, memaddr addr, uint32 size) ; | |
41 | |
39 void dma_wait(uint32 mask) ; | 42 void dma_wait(uint32 mask) ; |
40 void dma_wait(uint32 mask, int cmd) ; | 43 void dma_wait(uint32 mask, int cmd) ; |
41 void (CellDmaManager::*start_dmawait_profile)(); | 44 void (CellDmaManager::*start_dmawait_profile)(); |
42 void (CellDmaManager::*end_dmawait_profile)(unsigned long long *counter); | 45 void (CellDmaManager::*end_dmawait_profile)(unsigned long long *counter); |
43 void start_profile(); | 46 void start_profile(); |
49 void mail_write(memaddr data); | 52 void mail_write(memaddr data); |
50 void mail_write_queue(memaddr data); | 53 void mail_write_queue(memaddr data); |
51 void mail_write_finish_list(memaddr data); | 54 void mail_write_finish_list(memaddr data); |
52 memaddr mail_read(); | 55 memaddr mail_read(); |
53 memaddr task_list_mail_read(); | 56 memaddr task_list_mail_read(); |
54 void dma_loadList(ListDataPtr list, void *buff, uint32 mask); | 57 void dma_loadList(Scheduler *s,ListDataPtr list, void *buff, uint32 mask); |
55 void dma_storeList(ListDataPtr, void *buff, uint32 mask); | 58 void dma_storeList(ListDataPtr, void *buff, uint32 mask); |
59 uint32 get_tag(); | |
60 void bound(ListData *); | |
61 void *get_writebuf(Scheduler *s, ListDataPtr, uint32 size) ; | |
62 | |
56 | 63 |
57 private: | 64 private: |
58 | 65 |
59 void do_start_dmawait_profile(); | 66 void do_start_dmawait_profile(); |
60 void do_end_dmawait_profile(unsigned long long *counter); | 67 void do_end_dmawait_profile(unsigned long long *counter); |