summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorSND\edgbla_cp <SND\edgbla_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2013-02-14 20:53:40 +0000
committerSND\edgbla_cp <SND\edgbla_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2013-02-14 20:53:40 +0000
commitba0c9b98bf69b8e54e7117b21f2282d3b79c2988 (patch)
tree69deb0c8279dcfec0e37e327faf36d530a6d8eaa /plugins
parentd1ba7d9232b2d81e69631de3a126ff52eefbc764 (diff)
downloadpcsxr-ba0c9b98bf69b8e54e7117b21f2282d3b79c2988.tar.gz
sio1;
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@82900 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'plugins')
-rwxr-xr-xplugins/bladesio1/sio1.c50
1 files changed, 37 insertions, 13 deletions
diff --git a/plugins/bladesio1/sio1.c b/plugins/bladesio1/sio1.c
index 669451ff..cef7d6cc 100755
--- a/plugins/bladesio1/sio1.c
+++ b/plugins/bladesio1/sio1.c
@@ -20,6 +20,9 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include <stdint.h>
+
+#include "psemu_plugin_defs.h"
#include "settings.h"
#include "sio1.h"
@@ -81,107 +84,129 @@ long CALLBACK SIO1keypressed( int val )
void CALLBACK SIO1writeData8(unsigned char val)
{
+ printf("SIO1writeData8(%.2x)\n", val);
}
void CALLBACK SIO1writeData16(unsigned short val)
{
+ printf("SIO1writeData16(%.4x)\n", val);
}
void CALLBACK SIO1writeData32(unsigned long val)
{
+ printf("SIO1writeData32(%.8x)\n", val);
}
void CALLBACK SIO1writeStat16(unsigned short val)
{
+ printf("SIO1writeStat16(%.4x)\n", val);
}
void CALLBACK SIO1writeStat32(unsigned long val)
{
+ printf("SIO1writeStat32(%.8x)\n", val);
}
void CALLBACK SIO1writeMode16(unsigned short val)
{
+ printf("SIO1writeMode16(%.4x)\n", val);
}
void CALLBACK SIO1writeMode32(unsigned long val)
{
+ printf("SIO1writeMode32(%.8x)\n", val);
}
void CALLBACK SIO1writeCtrl16(unsigned short val)
{
+ printf("SIO1writeCtrl16(%.4x)\n", val);
}
void CALLBACK SIO1writeCtrl32(unsigned long val)
{
+ printf("SIO1writeCtrl32(%.8x)\n", val);
}
void CALLBACK SIO1writeBaud16(unsigned short val)
{
+ printf("SIO1writeBaud16(%.4x)\n", val);
}
void CALLBACK SIO1writeBaud32(unsigned long val)
{
+ printf("SIO1writeBaud32(%.8x)\n", val);
}
-unsigned char CALLBACK SIO1readData8(void)
+unsigned char CALLBACK SIO1readData8()
{
+ printf("SIO1readData8()\n");
return 0;
}
-unsigned short CALLBACK SIO1readData16(void)
+unsigned short CALLBACK SIO1readData16()
{
+ printf("SIO1readData16()\n");
return 0;
}
-unsigned long CALLBACK SIO1readData32(void)
+unsigned long CALLBACK SIO1readData32()
{
+ printf("SIO1readData32()\n");
return 0;
}
-unsigned short CALLBACK SIO1readStat16(void)
+unsigned short CALLBACK SIO1readStat16()
{
+ printf("SIO1readStat16()\n");
return 0;
}
-unsigned long CALLBACK SIO1readStat32(void)
+unsigned long CALLBACK SIO1readStat32()
{
+ printf("SIO1readStat32()\n");
return 0;
}
-unsigned short CALLBACK SIO1readMode16(void)
+unsigned short CALLBACK SIO1readMode16()
{
+ printf("SIO1readMode16()\n");
return 0;
}
-unsigned long CALLBACK SIO1readMode32(void)
+unsigned long CALLBACK SIO1readMode32()
{
+ printf("SIO1readMode32()\n");
return 0;
}
-unsigned short CALLBACK SIO1readCtrl16(void)
+unsigned short CALLBACK SIO1readCtrl16()
{
+ printf("SIO1readCtrl16()\n");
return 0;
}
-unsigned long CALLBACK SIO1readCtrl32(void)
+unsigned long CALLBACK SIO1readCtrl32()
{
+ printf("SIO1readCtrl32()\n");
return 0;
}
-unsigned short CALLBACK SIO1readBaud16(void)
+unsigned short CALLBACK SIO1readBaud16()
{
+ printf("SIO1readBaud16()\n");
return 0;
}
-unsigned long CALLBACK SIO1readBaud32(void)
+unsigned long CALLBACK SIO1readBaud32()
{
+ printf("SIO1readBaud32()\n");
return 0;
}
/******************************************************************************/
-void CALLBACK SIO1registerCallback(void (CALLBACK *callback)(void))
+void CALLBACK SIO1registerCallback(void (CALLBACK *callback)())
{
}
@@ -196,7 +221,6 @@ long CALLBACK SIO1queryPlayer()
unsigned long CALLBACK PSEgetLibType()
{
- #define PSE_LT_SIO1 32
return PSE_LT_SIO1;
}