summaryrefslogtreecommitdiff
path: root/plugins/bladesio1/sio1.c
blob: 39ea98ccf0f57b4836ff65b2d6cee41eb3fcae1f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
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 SIO1open( 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()
{
}

/******************************************************************************/