OpenMoHAA 0.82.0
Loading...
Searching...
No Matches
SpuFakeDma.h
1
2#ifndef FAKE_DMA_H
3#define FAKE_DMA_H
4
5
6#include "spursPlatformDefinitions.h"
7
8
9
10#ifdef __CELLOS_LV2__
11
12#include <cell/dma.h>
13#include <stdint.h>
14
15#define DMA_TAG(xfer) (xfer + 1)
16#define DMA_MASK(xfer) (1 << DMA_TAG(xfer))
17
18#elif defined (WIN32)
19
20#define DMA_TAG(a) (a)
21#define DMA_MASK(a) (a)
22
23
25int cellDmaLargeGet(void *ls, uint64_t ea, uint32_t size, uint32_t tag, uint32_t tid, uint32_t rid);
26int cellDmaGet(void *ls, uint64_t ea, uint32_t size, uint32_t tag, uint32_t tid, uint32_t rid);
28int cellDmaLargePut(const void *ls, uint64_t ea, uint32_t size, uint32_t tag, uint32_t tid, uint32_t rid);
30void cellDmaWaitTagStatusAll(int ignore);
31#endif //WIN32
32
34int stallingUnalignedDmaSmallGet(void *ls, uint64_t ea, uint32_t size);
35
36#endif //FAKE_DMA_H