-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdsp56k.4.html
403 lines (297 loc) · 14.8 KB
/
dsp56k.4.html
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
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>dsp56k(4) — Linux manual pages</title>
<link rel="stylesheet" href="../stylesheet/manpages.css" type="text/css" />
<link rel="home" href="../index.html" title="dsp56k(4) — Linux manual pages" />
<script type="text/javascript" src="../stylesheet/manpages.js" xml:space="preserve">
</script>
<link rel="icon" href="../stylesheet/icon.gif" type="image/gif" />
</head>
<body onload="javascript:init()">
<div class="refentry" title="dsp56k(4) — Linux manual pages">
<a id="dsp56k.4" name="dsp56k.4" shape="rect"> </a>
<div class="titlepage"> </div>
<div class="refnamediv">
<h2>Name</h2>
<p>dsp56k — DSP56001 interface device</p>
</div>
<div class="refsynopsisdiv" title="Synopsis">
<h2>Synopsis</h2>
<div class="funcsynopsis">
<pre class="funcsynopsisinfo" xml:space="preserve">
#include <asm/dsp56k.h>
</pre>
<table border="0" summary="Function synopsis" cellspacing="0" cellpadding="0" class="funcprototype-table">
<tr>
<td rowspan="1" colspan="1"><code class="funcdef">ssize_t <b class="fsfunc">read</b>(</code></td>
<td rowspan="1" colspan="1">int <var class="pdparam">fd</var>,</td>
</tr>
<tr>
<td rowspan="1" colspan="1"> </td>
<td rowspan="1" colspan="1">void *<var class="pdparam">data</var>,</td>
</tr>
<tr>
<td rowspan="1" colspan="1"> </td>
<td rowspan="1" colspan="1">size_t <var class="pdparam">length</var><code>)</code>;</td>
</tr>
</table>
<div class="funcprototype-spacer">
</div>
</div>
<div class="funcsynopsis">
<table border="0" summary="Function synopsis" cellspacing="0" cellpadding="0" class="funcprototype-table">
<tr>
<td rowspan="1" colspan="1"><code class="funcdef">ssize_t <b class="fsfunc">write</b>(</code></td>
<td rowspan="1" colspan="1">int <var class="pdparam">fd</var>,</td>
</tr>
<tr>
<td rowspan="1" colspan="1"> </td>
<td rowspan="1" colspan="1">void *<var class="pdparam">data</var>,</td>
</tr>
<tr>
<td rowspan="1" colspan="1"> </td>
<td rowspan="1" colspan="1">size_t <var class="pdparam">length</var><code>)</code>;</td>
</tr>
</table>
<div class="funcprototype-spacer">
</div>
</div>
<div class="funcsynopsis">
<table border="0" summary="Function synopsis" cellspacing="0" cellpadding="0" class="funcprototype-table">
<tr>
<td rowspan="1" colspan="1"><code class="funcdef">int <b class="fsfunc">ioctl</b>(</code></td>
<td rowspan="1" colspan="1">int <var class="pdparam">fd</var>,</td>
</tr>
<tr>
<td rowspan="1" colspan="1"> </td>
<td rowspan="1" colspan="1"><var class="pdparam">DSP56K_UPLOAD</var>,</td>
</tr>
<tr>
<td rowspan="1" colspan="1"> </td>
<td rowspan="1" colspan="1">struct dsp56k_upload *<var class="pdparam">program</var><code>)</code>;</td>
</tr>
</table>
<div class="funcprototype-spacer">
</div>
</div>
<div class="funcsynopsis">
<table border="0" summary="Function synopsis" cellspacing="0" cellpadding="0" class="funcprototype-table">
<tr>
<td rowspan="1" colspan="1"><code class="funcdef">int <b class="fsfunc">ioctl</b>(</code></td>
<td rowspan="1" colspan="1">int <var class="pdparam">fd</var>,</td>
</tr>
<tr>
<td rowspan="1" colspan="1"> </td>
<td rowspan="1" colspan="1"><var class="pdparam">DSP56K_SET_TX_WSIZE</var>,</td>
</tr>
<tr>
<td rowspan="1" colspan="1"> </td>
<td rowspan="1" colspan="1">int <var class="pdparam">wsize</var><code>)</code>;</td>
</tr>
</table>
<div class="funcprototype-spacer">
</div>
</div>
<div class="funcsynopsis">
<table border="0" summary="Function synopsis" cellspacing="0" cellpadding="0" class="funcprototype-table">
<tr>
<td rowspan="1" colspan="1"><code class="funcdef">int <b class="fsfunc">ioctl</b>(</code></td>
<td rowspan="1" colspan="1">int <var class="pdparam">fd</var>,</td>
</tr>
<tr>
<td rowspan="1" colspan="1"> </td>
<td rowspan="1" colspan="1"><var class="pdparam">DSP56K_SET_RX_WSIZE</var>,</td>
</tr>
<tr>
<td rowspan="1" colspan="1"> </td>
<td rowspan="1" colspan="1">int <var class="pdparam">wsize</var><code>)</code>;</td>
</tr>
</table>
<div class="funcprototype-spacer">
</div>
</div>
<div class="funcsynopsis">
<table border="0" summary="Function synopsis" cellspacing="0" cellpadding="0" class="funcprototype-table">
<tr>
<td rowspan="1" colspan="1"><code class="funcdef">int <b class="fsfunc">ioctl</b>(</code></td>
<td rowspan="1" colspan="1">int <var class="pdparam">fd</var>,</td>
</tr>
<tr>
<td rowspan="1" colspan="1"> </td>
<td rowspan="1" colspan="1"><var class="pdparam">DSP56K_HOST_FLAGS</var>,</td>
</tr>
<tr>
<td rowspan="1" colspan="1"> </td>
<td rowspan="1" colspan="1">struct dsp56k_host_flags *<var class="pdparam">flags</var><code>)</code>;</td>
</tr>
</table>
<div class="funcprototype-spacer">
</div>
</div>
<div class="funcsynopsis">
<table border="0" summary="Function synopsis" cellspacing="0" cellpadding="0" class="funcprototype-table">
<tr>
<td rowspan="1" colspan="1"><code class="funcdef">int <b class="fsfunc">ioctl</b>(</code></td>
<td rowspan="1" colspan="1">int <var class="pdparam">fd</var>,</td>
</tr>
<tr>
<td rowspan="1" colspan="1"> </td>
<td rowspan="1" colspan="1"><var class="pdparam">DSP56K_HOST_CMD</var>,</td>
</tr>
<tr>
<td rowspan="1" colspan="1"> </td>
<td rowspan="1" colspan="1">int <var class="pdparam">cmd</var><code>)</code>;</td>
</tr>
</table>
<div class="funcprototype-spacer">
</div>
</div>
</div>
<div class="refsect1" title="CONFIGURATION">
<a id="dsp56k-4_sect1" name="dsp56k-4_sect1" shape="rect"> </a>
<h2>CONFIGURATION</h2>
<p>The dsp56k device is a character device with major number
55 and minor number 0.</p>
</div>
<div class="refsect1" title="DESCRIPTION">
<a id="dsp56k-4_sect2" name="dsp56k-4_sect2" shape="rect"> </a>
<h2>DESCRIPTION</h2>
<p>The Motorola DSP56001 is a fully programmable 24-bit
digital signal processor found in Atari Falcon030-compatible
computers. The <code class="function">dsp56k</code> special
file is used to control the DSP56001, and to send and receive
data using the bidirectional handshaked host port.</p>
<p>To send a data stream to the signal processor, use
<a class="link" href="../htmlman2/write.2.html" target="_top" shape="rect"><span class="citerefentry"><span class="refentrytitle">write</span>(2)</span></a> to the device, and
<a class="link" href="../htmlman2/read.2.html" target="_top" shape="rect"><span class="citerefentry"><span class="refentrytitle">read</span>(2)</span></a> to receive
processed data. The data can be sent or received in 8, 16,
24, or 32-bit quantities on the host side, but will always be
seen as 24-bit quantities in the DSP56001.</p>
<p>The following <a class="link" href="../htmlman2/ioctl.2.html" target="_top" shape="rect"><span class="citerefentry"><span class="refentrytitle">ioctl</span>(2)</span></a> calls are used to
control the <code class="function">dsp56k</code> device:</p>
<div class="variablelist">
<dl>
<dt><span class="term"><em class="parameter"><code>DSP56K_UPLOAD</code></em></span></dt>
<dd>
<p>resets the DSP56001 and uploads a program. The third
<a class="link" href="../htmlman2/ioctl.2.html" target="_top" shape="rect"><span class="citerefentry"><span class="refentrytitle">ioctl</span>(2)</span></a> argument
must be a pointer to a <span class="emphasis"><em>struct dsp56k_binary</em></span> with
members <code class="function">bin</code> pointing to a
DSP56001 binary program, and <code class="function">len</code> set to the length of the program,
counted in 24-bit words.</p>
</dd>
<dt><span class="term"><em class="parameter"><code>DSP56K_SET_TX_WSIZE</code></em></span></dt>
<dd>
<p>sets the transmit word size. Allowed values are in
the range 1 to 4, and is the number of bytes that will
be sent at a time to the DSP56001. These data
quantities will either be padded with zero bytes, or
truncated to fit the native 24-bit data format of the
DSP56001.</p>
</dd>
<dt><span class="term"><em class="parameter"><code>DSP56K_SET_RX_WSIZE</code></em></span></dt>
<dd>
<p>sets the receive word size. Allowed values are in
the range 1 to 4, and is the number of bytes that will
be received at a time from the DSP56001. These data
quantities will either truncated, or padded with a null
byte ('\0') to fit the native 24-bit data format of the
DSP56001.</p>
</dd>
<dt><span class="term"><em class="parameter"><code>DSP56K_HOST_FLAGS</code></em></span></dt>
<dd>
<p>read and write the host flags. The host flags are
four general-purpose bits that can be read by both the
hosting computer and the DSP56001. Bits 0 and 1 can be
written by the host, and bits 2 and 3 can be written by
the DSP56001.</p>
<p>To access the host flags, the third <a class="link" href="../htmlman2/ioctl.2.html" target="_top" shape="rect"><span class="citerefentry"><span class="refentrytitle">ioctl</span>(2)</span></a> argument
must be a pointer to a <span class="emphasis"><em>struct dsp56k_host_flags</em></span>. If
bit 0 or 1 is set in the <code class="function">dir</code> member, the corresponding bit in
<code class="function">out</code> will be written to
the host flags. The state of all host flags will be
returned in the lower four bits of the <code class="function">status</code> member.</p>
</dd>
<dt><span class="term"><em class="parameter"><code>DSP56K_HOST_CMD</code></em></span></dt>
<dd>
<p>sends a host command. Allowed values are in the
range 0 to 31, and is a user-defined command handled by
the program running in the DSP56001.</p>
</dd>
</dl>
</div>
</div>
<div class="refsect1" title="FILES">
<a id="dsp56k-4_sect3" name="dsp56k-4_sect3" shape="rect"> </a>
<h2>FILES</h2>
<p>/dev/dsp56k</p>
</div>
<div class="refsect1" title="SEE ALSO">
<a id="dsp56k-4_sect4" name="dsp56k-4_sect4" shape="rect"> </a>
<h2>SEE ALSO</h2>
<p><code class="filename">linux/include/asm-m68k/dsp56k.h</code>,
<code class="filename">linux/drivers/char/dsp56k.c</code>,
<a class="literalurl" href="http://dsp56k.nocrew.org/" target="_top" shape="rect">http://dsp56k.nocrew.org/</a>,
DSP56000/DSP56001 Digital Signal Processor User's Manual</p>
</div>
<div class="colophon" title="COLOPHON">
<a id="dsp56k-4_sect5" name="dsp56k-4_sect5" shape="rect"> </a>
<h2>COLOPHON</h2>
<p>This page is part of release 3.24 of the Linux <em class="replaceable"><code>man-pages</code></em> project. A
description of the project, and information about reporting
bugs, can be found at
http://www.kernel.org/doc/man-pages/.</p>
<div class="license">
<table style="border-collapse: collapse;">
<colgroup span="1">
<col span="1" />
</colgroup>
<tbody>
<tr>
<td style="" rowspan="1" colspan="1">
<div class="literallayout">
<br />
t<br />
Copyright (c) 2000 lars brinkhoff <lars<script type="text/javascript">document.write('@');</script><noscript>(@)</noscript>nocrew.org><br />
<br />
This is free documentation; you can redistribute it and/or<br />
modify it under the terms of the GNU General Public License as<br />
published by the Free Software Foundation; either version 2 of<br />
the License, or (at your option) any later version.<br />
<br />
The GNU General Public License's references to "object code"<br />
and "executables" are to be interpreted as the output of any<br />
document formatting or typesetting system, including<br />
intermediate and printed output.<br />
<br />
This manual is distributed in the hope that it will be useful,<br />
but WITHOUT ANY WARRANTY; without even the implied warranty of<br />
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the<br />
GNU General Public License for more details.<br />
<br />
You should have received a copy of the GNU General Public<br />
License along with this manual; if not, write to the Free<br />
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111,<br />
USA.<br />
<br />
Modified, Thu Jan 27 19:16:19 CET 2000, lars<script type="text/javascript">document.write('@');</script><noscript>(@)</noscript>nocrew.org<br />
</div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</body>
</html>