2009-05-15 07:02:51 +00:00
|
|
|
/* dev9null
|
2010-01-09 02:04:07 +00:00
|
|
|
* Copyright (C) 2002-2010 pcsx2 Team
|
2009-05-15 07:02:51 +00:00
|
|
|
*
|
|
|
|
* 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
|
|
|
|
*/
|
|
|
|
|
2009-05-02 04:39:05 +00:00
|
|
|
#ifndef __DEV9_H__
|
|
|
|
#define __DEV9_H__
|
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
|
2009-09-07 04:56:31 +00:00
|
|
|
#define DEV9defs
|
|
|
|
#include "PS2Edefs.h"
|
2010-01-09 02:04:07 +00:00
|
|
|
#include "PS2Eext.h"
|
2009-05-02 04:39:05 +00:00
|
|
|
|
2009-05-15 07:02:51 +00:00
|
|
|
typedef struct {
|
2010-01-09 02:04:07 +00:00
|
|
|
s32 Log;
|
2009-05-15 07:02:51 +00:00
|
|
|
} Config;
|
|
|
|
|
|
|
|
extern Config conf;
|
2009-05-02 04:39:05 +00:00
|
|
|
|
|
|
|
extern const unsigned char version;
|
|
|
|
extern const unsigned char revision;
|
|
|
|
extern const unsigned char build;
|
|
|
|
extern const unsigned int minor;
|
|
|
|
extern const char *libraryName;
|
|
|
|
|
2009-05-15 07:02:51 +00:00
|
|
|
void SaveConfig();
|
|
|
|
void LoadConfig();
|
|
|
|
|
|
|
|
extern void (*DEV9irq)(int);
|
2009-05-02 04:39:05 +00:00
|
|
|
|
2010-01-09 02:04:07 +00:00
|
|
|
extern __aligned16 s8 dev9regs[0x10000];
|
|
|
|
#define dev9Rs8(mem) dev9regs[(mem) & 0xffff]
|
|
|
|
#define dev9Rs16(mem) (*(s16*)&dev9regs[(mem) & 0xffff])
|
|
|
|
#define dev9Rs32(mem) (*(s32*)&dev9regs[(mem) & 0xffff])
|
|
|
|
#define dev9Ru8(mem) (*(u8*) &dev9regs[(mem) & 0xffff])
|
|
|
|
#define dev9Ru16(mem) (*(u16*)&dev9regs[(mem) & 0xffff])
|
|
|
|
#define dev9Ru32(mem) (*(u32*)&dev9regs[(mem) & 0xffff])
|
2009-05-02 04:39:05 +00:00
|
|
|
|
|
|
|
#endif
|