annotate include/TaskManager/DmaManager.h @ 88:504899860e66

*** empty log message ***
author gongo
date Wed, 27 Feb 2008 17:16:29 +0900
parents f154d9d07a42
children 5c194c71eca8
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3
2356238ebea7 *** empty log message ***
gongo
parents:
diff changeset
1 #ifndef INCLUDED_DMA_MANAGER
2356238ebea7 *** empty log message ***
gongo
parents:
diff changeset
2 #define INCLUDED_DMA_MANAGER
2356238ebea7 *** empty log message ***
gongo
parents:
diff changeset
3
2356238ebea7 *** empty log message ***
gongo
parents:
diff changeset
4 enum dma_tag {
2356238ebea7 *** empty log message ***
gongo
parents:
diff changeset
5 DMA_READ,
2356238ebea7 *** empty log message ***
gongo
parents:
diff changeset
6 DMA_WRITE
2356238ebea7 *** empty log message ***
gongo
parents:
diff changeset
7 };
2356238ebea7 *** empty log message ***
gongo
parents:
diff changeset
8
42
aa11038dbdc1 *** empty log message ***
gongo
parents: 3
diff changeset
9 #ifndef INCLUDED_TYPES
46
f154d9d07a42 *** empty log message ***
gongo
parents: 42
diff changeset
10 # include "types.h"
42
aa11038dbdc1 *** empty log message ***
gongo
parents: 3
diff changeset
11 #endif
3
2356238ebea7 *** empty log message ***
gongo
parents:
diff changeset
12
2356238ebea7 *** empty log message ***
gongo
parents:
diff changeset
13 class DmaManager {
2356238ebea7 *** empty log message ***
gongo
parents:
diff changeset
14 public:
2356238ebea7 *** empty log message ***
gongo
parents:
diff changeset
15 virtual ~DmaManager(void) {};
2356238ebea7 *** empty log message ***
gongo
parents:
diff changeset
16
88
504899860e66 *** empty log message ***
gongo
parents: 46
diff changeset
17 // API for DMA transfer
504899860e66 *** empty log message ***
gongo
parents: 46
diff changeset
18 virtual void dma_load(void *buf, uint32 addr, uint32 size, uint32 mask)=0;
504899860e66 *** empty log message ***
gongo
parents: 46
diff changeset
19 virtual void dma_store(void *buf,uint32 addr, uint32 size, uint32 mask)=0;
504899860e66 *** empty log message ***
gongo
parents: 46
diff changeset
20 virtual void dma_wait(uint32 mask) = 0;
3
2356238ebea7 *** empty log message ***
gongo
parents:
diff changeset
21
88
504899860e66 *** empty log message ***
gongo
parents: 46
diff changeset
22 // API for SPU inbound/outbound mailbox
504899860e66 *** empty log message ***
gongo
parents: 46
diff changeset
23 virtual void mail_write(uint32 data) = 0;
504899860e66 *** empty log message ***
gongo
parents: 46
diff changeset
24 virtual uint32 mail_read(void) = 0;
504899860e66 *** empty log message ***
gongo
parents: 46
diff changeset
25
504899860e66 *** empty log message ***
gongo
parents: 46
diff changeset
26 // API for MFC list DMA transfer
504899860e66 *** empty log message ***
gongo
parents: 46
diff changeset
27 virtual void dmaList_set(uint32 address, uint32 size) {}
504899860e66 *** empty log message ***
gongo
parents: 46
diff changeset
28 virtual void** dmaList_load(uint32 mask) { return (void**)0; }
3
2356238ebea7 *** empty log message ***
gongo
parents:
diff changeset
29 };
2356238ebea7 *** empty log message ***
gongo
parents:
diff changeset
30
2356238ebea7 *** empty log message ***
gongo
parents:
diff changeset
31 #endif