/[pcsx2_0.9.7]/trunk/pcsx2/IopCounters.h
ViewVC logotype

Annotation of /trunk/pcsx2/IopCounters.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 31 - (hide annotations) (download)
Tue Sep 7 03:24:11 2010 UTC (10 years, 2 months ago) by william
File MIME type: text/plain
File size: 1662 byte(s)
committing r3113 initial commit again...
1 william 31 /* PCSX2 - PS2 Emulator for PCs
2     * Copyright (C) 2002-2010 PCSX2 Dev Team
3     *
4     * PCSX2 is free software: you can redistribute it and/or modify it under the terms
5     * of the GNU Lesser General Public License as published by the Free Software Found-
6     * ation, either version 3 of the License, or (at your option) any later version.
7     *
8     * PCSX2 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
9     * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
10     * PURPOSE. See the GNU General Public License for more details.
11     *
12     * You should have received a copy of the GNU General Public License along with PCSX2.
13     * If not, see <http://www.gnu.org/licenses/>.
14     */
15    
16     #ifndef __PSXCOUNTERS_H__
17     #define __PSXCOUNTERS_H__
18    
19     struct psxCounter {
20     u64 count, target;
21     u32 mode;
22     u32 rate, interrupt;
23     u32 sCycleT;
24     s32 CycleT;
25     };
26    
27     #ifdef ENABLE_NEW_IOPDMA
28     # define NUM_COUNTERS 9
29     #else
30     # define NUM_COUNTERS 8
31     #endif
32    
33     extern psxCounter psxCounters[NUM_COUNTERS];
34    
35     extern void psxRcntInit();
36     extern void psxRcntUpdate();
37     extern void psxRcntWcount16(int index, u16 value);
38     extern void psxRcntWcount32(int index, u32 value);
39     extern void psxRcntWmode16(int index, u32 value);
40     extern void psxRcntWmode32(int index, u32 value);
41     extern void psxRcntWtarget16(int index, u32 value);
42     extern void psxRcntWtarget32(int index, u32 value);
43     extern u16 psxRcntRcount16(int index);
44     extern u32 psxRcntRcount32(int index);
45     extern u64 psxRcntCycles(int index);
46    
47     extern void psxVBlankStart();
48     extern void psxVBlankEnd();
49     extern void psxCheckStartGate16(int i);
50     extern void psxCheckEndGate16(int i);
51    
52     #endif /* __PSXCOUNTERS_H__ */

  ViewVC Help
Powered by ViewVC 1.1.22