32
|
1 #ifndef INCLUDED_CELL_DMA_MANAGER
|
|
2 #define INCLUDED_CELL_DMA_MANAGER
|
|
3
|
109
|
4 #ifndef INCLUDED_BASE_H_
|
|
5 # include "base.h"
|
|
6 #endif
|
|
7
|
32
|
8 #ifndef INCLUDED_DMA_MANAGER
|
|
9 # include "DmaManager.h"
|
|
10 #endif
|
|
11
|
88
|
12 #include <spu_mfcio.h>
|
|
13
|
32
|
14 class CellDmaManager : public DmaManager {
|
|
15 public:
|
109
|
16 BASE_NEW_DELETE(CellDmaManager);
|
|
17
|
88
|
18 typedef struct dma_list {
|
|
19 uint32 addr;
|
|
20 uint32 size;
|
|
21 } DmaList, *DmaListPtr;
|
|
22
|
|
23 /* variables */
|
|
24
|
32
|
25 /* functions */
|
88
|
26 void dma_load(void *buf, uint32 addr, uint32 size, uint32 mask);
|
|
27 void dma_store(void *buf, uint32 addr, uint32 size, uint32 mask);
|
|
28 void dma_wait(uint32 mask) ;
|
|
29
|
|
30 void mail_write(uint32 data);
|
|
31 uint32 mail_read(void);
|
109
|
32 void dma_loadList(ListDataPtr list, void *buff, uint32 mask);
|
|
33 void dma_storeList(ListDataPtr, void *buff, uint32 mask);
|
32
|
34 };
|
|
35
|
|
36 #endif
|