diff options
| author | SND\edgbla_cp <SND\edgbla_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2010-07-07 13:52:32 +0000 |
|---|---|---|
| committer | SND\edgbla_cp <SND\edgbla_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2010-07-07 13:52:32 +0000 |
| commit | 337765356b5fd420d3cab3349caa34eec2f98e65 (patch) | |
| tree | ac569bb639779ab741be53329c406008b2108c33 /plugins/bladesio1/sio1.c | |
| parent | 2bcdda648da39be8d65bd9c0c96c87861c775c2e (diff) | |
| download | pcsxr-337765356b5fd420d3cab3349caa34eec2f98e65.tar.gz | |
Sio1 plugin (dummy).
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@54273 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'plugins/bladesio1/sio1.c')
| -rw-r--r-- | plugins/bladesio1/sio1.c | 226 |
1 files changed, 226 insertions, 0 deletions
diff --git a/plugins/bladesio1/sio1.c b/plugins/bladesio1/sio1.c new file mode 100644 index 00000000..9a43afc4 --- /dev/null +++ b/plugins/bladesio1/sio1.c @@ -0,0 +1,226 @@ +/*************************************************************************** + * Copyright (C) 2010 by Blade_Arma * + * * + * 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., * + * 51 Franklin Street, Fifth Floor, Boston, MA 02111-1307 USA. * + ***************************************************************************/ + +#include <stdio.h> +#include <stdlib.h> +#include <string.h> + +#include "settings.h" +#include "sio1.h" + +/******************************************************************************/ + +static char *pluginName = N_("Sio1 Driver"); + +static const unsigned char version = 1; +static const unsigned char revision = 1; +static const unsigned char build = 1; + +Settings settings; + +/******************************************************************************/ + +long CALLBACK SIO1init() +{ + return 0; +} + +long CALLBACK SIO1shutdown() +{ + return 0; +} + +/******************************************************************************/ + +long CALLBACK SIOopen( unsigned long *gpuDisp ) +{ + settingsRead(); + + return 0; +} + +long CALLBACK SIO1close() +{ + return 0; +} + +/******************************************************************************/ + +void CALLBACK SIO1pause() +{ +} + +void CALLBACK SIO1resume() +{ +} + +/******************************************************************************/ + +long CALLBACK SIO1keypressed( int val ) +{ + return 0; +} + +/******************************************************************************/ + +void CALLBACK SIO1writeData8(unsigned char val) +{ +} + +void CALLBACK SIO1writeData16(unsigned short val) +{ +} + +void CALLBACK SIO1writeData32(unsigned long val) +{ +} + +void CALLBACK SIO1writeStat16(unsigned short val) +{ +} + +void CALLBACK SIO1writeStat32(unsigned long val) +{ +} + +void CALLBACK SIO1writeMode16(unsigned short val) +{ +} + +void CALLBACK SIO1writeMode32(unsigned long val) +{ +} + +void CALLBACK SIO1writeCtrl16(unsigned short val) +{ +} + +void CALLBACK SIO1writeCtrl32(unsigned long val) +{ +} + +void CALLBACK SIO1writeBaud16(unsigned short val) +{ +} + +void CALLBACK SIO1writeBaud32(unsigned long val) +{ +} + +unsigned char CALLBACK SIO1readData8(void) +{ + return 0; +} + +unsigned short CALLBACK SIO1readData16(void) +{ + return 0; +} + +unsigned long CALLBACK SIO1readData32(void) +{ + return 0; +} + +unsigned short CALLBACK SIO1readStat16(void) +{ + return 0; +} + +unsigned long CALLBACK SIO1readStat32(void) +{ + return 0; +} + +unsigned short CALLBACK SIO1readMode16(void) +{ + return 0; +} + +unsigned long CALLBACK SIO1readMode32(void) +{ + return 0; +} + +unsigned short CALLBACK SIO1readCtrl16(void) +{ + return 0; +} + +unsigned long CALLBACK SIO1readCtrl32(void) +{ + return 0; +} + +unsigned short CALLBACK SIO1readBaud16(void) +{ + return 0; +} + +unsigned long CALLBACK SIO1readBaud32(void) +{ + return 0; +} + + +/******************************************************************************/ + +void CALLBACK SIO1registerCallback(void (CALLBACK *callback)(void)) +{ +} + +/******************************************************************************/ +/* +long CALLBACK SIO1queryPlayer() +{ + return settings.player; +} +*/ +/******************************************************************************/ + +unsigned long CALLBACK PSEgetLibType() +{ + #define PSE_LT_SIO1 32 + return PSE_LT_SIO1; +} + +char* CALLBACK PSEgetLibName() +{ + return _(pluginName); +} + +unsigned long CALLBACK PSEgetLibVersion() +{ + return version << 16 | revision << 8 | build; +} + +void CALLBACK SIO1about() +{ +} + +long CALLBACK SIO1test() +{ + return 0; +} + +void CALLBACK SIO1configure() +{ +} + +/******************************************************************************/ |
