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
|
2010-07-04 22:49:00 +00:00
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
2009-05-15 07:02:51 +00:00
|
|
|
*/
|
|
|
|
|
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
|
|
|
|
2016-08-24 21:16:38 +00:00
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
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;
|
|
|
|
|
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];
|
2016-08-24 21:16:38 +00:00
|
|
|
#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
|
|
|
|
2010-01-09 05:11:18 +00:00
|
|
|
extern void setLoggingState();
|
|
|
|
|
2009-05-02 04:39:05 +00:00
|
|
|
#endif
|