-
Notifications
You must be signed in to change notification settings - Fork 8
/
dma.h
54 lines (44 loc) · 2.21 KB
/
dma.h
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
/*$T dma.h GC 1.136 03/09/02 14:02:21 */
/*$6
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
*/
/*
* 1964 Copyright (C) 1999-2002 Joel Middendorf, <[email protected]> This
* program is free software; you can redistribute it and/or modify it under the
* terms of the GNU General Public License as published by the Free Software
* Foundation; either version 2 of the License, or (at your option) any later
* version. This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
* details. You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software Foundation, Inc.,
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. To contact the
* authors: email: [email protected], [email protected]
*/
#ifndef _DMA_H__1964_
#define _DMA_H__1964_
enum DMATYPE { NO_DMA_IN_PROGRESS, DMA_PI_READ, DMA_PI_WRITE, DMA_SP_READ, DMA_SP_WRITE, DMA_SI_READ, DMA_SI_WRITE, DMA_AI_WRITE };
extern BOOL DMAInProgress;
extern uint32 DMA_SP_Transfer_Source_Begin_Address;
extern uint32 DMA_SP_Transfer_Target_Begin_Address;
extern int DMA_SP_Transfer_Count;
extern int DMA_SI_Transfer_Count;
extern enum DMATYPE PIDMAInProgress;
extern enum DMATYPE SIDMAInProgress;
extern enum DMATYPE SPDMAInProgress;
extern void DoDMASegment(void);
extern void DynDoDMASegment(void);
extern void DoPIDMASegment(void);
extern void DoSPDMASegment(void);
extern void DoSIDMASegment(void);
extern void DMA_AI(void);
extern void InitDMA(void);
/* DMA external functions */
extern void DMA_PI_MemCopy_From_Cart_To_DRAM(void);
extern void DMA_PI_MemCopy_From_DRAM_To_Cart(void);
extern void DMA_MemCopy_SP_to_DRAM(int WasCalledByRSP);
extern void DMA_MemCopy_DRAM_To_SP(int WasCalledByRSP);
extern void DMA_MemCopy_DRAM_to_SI(void);
extern void DMA_MemCopy_SI_To_DRAM(void);
#endif