comparison TaskManager/Cell/spe/CellDmaManager.h @ 1021:f8e9c985e2a8

use MailManager
author yutaka@localhost.localdomain
date Sun, 07 Nov 2010 22:10:29 +0900
parents c67379f9d411
children 19a57960c436
comparison
equal deleted inserted replaced
1017:6a2c22cabe10 1021:f8e9c985e2a8
2 #define INCLUDED_CELL_DMA_MANAGER 2 #define INCLUDED_CELL_DMA_MANAGER
3 3
4 #include "base.h" 4 #include "base.h"
5 #include "types.h" 5 #include "types.h"
6 #include "DmaManager.h" 6 #include "DmaManager.h"
7 #include "QueueInfo.h" 7 #include "MailManager.h"
8 #include "MailQueue.h"
9 8
10 #include <spu_mfcio.h> 9 #include <spu_mfcio.h>
11 #include <spu_intrinsics.h> 10 #include <spu_intrinsics.h>
12 11
13 #define SPU_PROFILE 1 12 #define SPU_PROFILE 1
21 typedef struct dma_list { 20 typedef struct dma_list {
22 uint32 addr; // should be memaddr, but in Cell's specification... 21 uint32 addr; // should be memaddr, but in Cell's specification...
23 uint32 size; 22 uint32 size;
24 } __attribute__ ((aligned (DEFAULT_ALIGNMENT))) DmaList, *DmaListPtr; 23 } __attribute__ ((aligned (DEFAULT_ALIGNMENT))) DmaList, *DmaListPtr;
25 24
26 QueueInfo<MailQueue> *mail_queue;
27 25
28 CellDmaManager() ; 26 CellDmaManager() ;
29 27
30 /* variables */ 28 /* variables */
31 unsigned int wait_time, busy_time, alloc_busy_time; 29 unsigned int wait_time, busy_time, alloc_busy_time;
57 void do_start_dmawait_profile(); 55 void do_start_dmawait_profile();
58 void do_end_dmawait_profile(unsigned long long *counter); 56 void do_end_dmawait_profile(unsigned long long *counter);
59 void null_start_dmawait_profile(); 57 void null_start_dmawait_profile();
60 void null_end_dmawait_profile(unsigned long long *counter); 58 void null_end_dmawait_profile(unsigned long long *counter);
61 59
60 MailManagerPtr mail_queue;
61
62 62
63 /* end */ 63 /* end */
64 } ; 64 } ;
65 65
66 #endif 66 #endif