aboutsummaryrefslogtreecommitdiff
path: root/source/nds/dma_adj.h
blob: 3852f09157260518a56f48f217063fae1f0e0edb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#ifndef _DMA_ADJ_H_
#define _DMA_ADJ_H_

#ifdef DS2_DMA

#ifdef __cplusplus
extern "C" {
#endif

struct SPointerAdjustments {
	/* These are used by the DSTWO-NDS side code. */
	unsigned int  GFXScreen;

	/* These are used by Snes9x. */
	unsigned int  ROM;
};

extern struct SPointerAdjustments PtrAdj;

extern void* AlignedMalloc (unsigned int Size, unsigned int Alignment, unsigned int* Adjustment);
extern void AlignedFree (void* Memory, unsigned int Adjustment);

#ifdef __cplusplus
}
#endif

#endif // DS2_DMA

#endif // !_DMA_ADJ_H_