/[pcsx2_0.9.7]/trunk/plugins/dev9null/DEV9.h
ViewVC logotype

Contents of /trunk/plugins/dev9null/DEV9.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 31 - (show annotations) (download)
Tue Sep 7 03:24:11 2010 UTC (10 years, 9 months ago) by william
File MIME type: text/plain
File size: 1617 byte(s)
committing r3113 initial commit again...
1 /* dev9null
2 * Copyright (C) 2002-2010 pcsx2 Team
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 */
18
19 #ifndef __DEV9_H__
20 #define __DEV9_H__
21
22 #include <stdio.h>
23
24 #define DEV9defs
25 #include "PS2Edefs.h"
26 #include "PS2Eext.h"
27
28 typedef struct {
29 s32 Log;
30 } Config;
31
32 extern Config conf;
33
34 extern const unsigned char version;
35 extern const unsigned char revision;
36 extern const unsigned char build;
37 extern const unsigned int minor;
38 extern const char *libraryName;
39
40 void SaveConfig();
41 void LoadConfig();
42
43 extern void (*DEV9irq)(int);
44
45 extern __aligned16 s8 dev9regs[0x10000];
46 #define dev9Rs8(mem) dev9regs[(mem) & 0xffff]
47 #define dev9Rs16(mem) (*(s16*)&dev9regs[(mem) & 0xffff])
48 #define dev9Rs32(mem) (*(s32*)&dev9regs[(mem) & 0xffff])
49 #define dev9Ru8(mem) (*(u8*) &dev9regs[(mem) & 0xffff])
50 #define dev9Ru16(mem) (*(u16*)&dev9regs[(mem) & 0xffff])
51 #define dev9Ru32(mem) (*(u32*)&dev9regs[(mem) & 0xffff])
52
53 extern void setLoggingState();
54
55 #endif

  ViewVC Help
Powered by ViewVC 1.1.22