/[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 10 - (show annotations) (download)
Mon Sep 6 11:40:06 2010 UTC (9 years, 5 months ago) by william
File MIME type: text/plain
File size: 1489 byte(s)
exported r3113 from ./upstream/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 class IPU_Fifo_Input
20 {
21 public:
22
23 int readpos, writepos;
24 __aligned16 u32 data[32];
25
26 int write(u32* pMem, int size);
27 int read(void *value);
28 void clear();
29 wxString desc() const;
30 };
31
32 class IPU_Fifo_Output
33 {
34 public:
35
36 int readpos, writepos;
37 __aligned16 u32 data[32];
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 private:
46 void _readsingle(void *value);
47 };
48
49 class IPU_Fifo
50 {
51 public:
52 IPU_Fifo_Input in;
53 IPU_Fifo_Output out;
54
55 void init();
56 void clear();
57 };
58
59 extern IPU_Fifo ipu_fifo;
60
61 #endif // IPU_FIFO_H_INCLUDED

  ViewVC Help
Powered by ViewVC 1.1.22