/[pcsx2_0.9.7]/trunk/pcsx2/IPU/IPU_Fifo.h
ViewVC logotype

Contents of /trunk/pcsx2/IPU/IPU_Fifo.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 62 - (show annotations) (download)
Tue Sep 7 11:08:22 2010 UTC (9 years, 5 months ago) by william
File MIME type: text/plain
File size: 1650 byte(s)
Auto Commited Import of: pcsx2-0.9.7-r3738-debug in ./trunk
1 /* 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 IPU_FIFO_H_INCLUDED
17 #define IPU_FIFO_H_INCLUDED
18
19 // Important! All FIFO containers in this header should be 'struct' type, not class type.
20 // They are saved into the savestate as-is, and keeping them as struct ensures that the
21 // layout of their contents is reliable.
22
23 struct IPU_Fifo_Input
24 {
25 __aligned16 u32 data[32];
26 int readpos, writepos;
27
28 int write(u32* pMem, int size);
29 int read(void *value);
30 void clear();
31 wxString desc() const;
32 };
33
34 struct IPU_Fifo_Output
35 {
36 __aligned16 u32 data[32];
37 int readpos, writepos;
38
39 // returns number of qw read
40 int write(const u32 * value, int size);
41 void read(void *value,int size);
42 void readsingle(void *value);
43 void clear();
44 wxString desc() const;
45
46 void _readsingle(void *value);
47 };
48
49 struct IPU_Fifo
50 {
51 __aligned16 IPU_Fifo_Input in;
52 __aligned16 IPU_Fifo_Output out;
53
54 void init();
55 void clear();
56 };
57
58 extern __aligned16 IPU_Fifo ipu_fifo;
59
60 #endif // IPU_FIFO_H_INCLUDED

  ViewVC Help
Powered by ViewVC 1.1.22