man-pages/man4/dsp56k.4.html
2021-03-31 01:06:50 +01:00

158 lines
4.9 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML><HEAD><TITLE>Man page of DSP56K</TITLE>
</HEAD><BODY>
<H1>DSP56K</H1>
Section: Linux Programmer's Manual (4)<BR>Updated: 2019-03-06<BR><A HREF="#index">Index</A>
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
<A NAME="lbAB">&nbsp;</A>
<H2>NAME</H2>
dsp56k - DSP56001 interface device
<A NAME="lbAC">&nbsp;</A>
<H2>SYNOPSIS</H2>
<PRE>
#include &lt;<A HREF="file:///usr/include/asm/dsp56k.h">asm/dsp56k.h</A>&gt;
<B>ssize_t read(int </B><I>fd</I><B>, void *</B><I>data</I><B>, size_t </B><I>length</I><B>);</B>
<B>ssize_t write(int </B><I>fd</I><B>, void *</B><I>data</I><B>, size_t </B><I>length</I><B>);</B>
<B>int ioctl(int </B><I>fd</I><B>, DSP56K_UPLOAD, struct dsp56k_upload *</B><I>program</I><B>);</B>
<B>int ioctl(int </B><I>fd</I><B>, DSP56K_SET_TX_WSIZE, int </B><I>wsize</I><B>);</B>
<B>int ioctl(int </B><I>fd</I><B>, DSP56K_SET_RX_WSIZE, int </B><I>wsize</I><B>);</B>
<B>int ioctl(int </B><I>fd</I><B>, DSP56K_HOST_FLAGS, struct dsp56k_host_flags *</B><I>flags</I><B>);</B>
<B>int ioctl(int </B><I>fd</I><B>, DSP56K_HOST_CMD, int </B><I>cmd</I><B>);</B>
</PRE>
<A NAME="lbAD">&nbsp;</A>
<H2>CONFIGURATION</H2>
The dsp56k device is a character device with major number 55 and minor
number 0.
<A NAME="lbAE">&nbsp;</A>
<H2>DESCRIPTION</H2>
The Motorola DSP56001 is a fully programmable 24-bit digital signal
processor found in Atari Falcon030-compatible computers.
The <I>dsp56k</I> special file is used to control the DSP56001, and
to send and receive data using the bidirectional handshaked host
port.
<P>
To send a data stream to the signal processor, use
<B><A HREF="/cgi-bin/man/man2html?2+write">write</A></B>(2)
to the
device, and
<B><A HREF="/cgi-bin/man/man2html?2+read">read</A></B>(2)
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>
The following
<B><A HREF="/cgi-bin/man/man2html?2+ioctl">ioctl</A></B>(2)
calls are used to control the
<I>dsp56k</I> device:
<DL COMPACT>
<DT id="1"><B>DSP56K_UPLOAD</B><DD>
resets the DSP56001 and uploads a program.
The third
<B><A HREF="/cgi-bin/man/man2html?2+ioctl">ioctl</A></B>(2)
argument must be a pointer to a <I>struct dsp56k_binary</I> with members
<I>bin</I> pointing to a DSP56001 binary program, and <I>len</I> set to
the length of the program, counted in 24-bit words.
<DT id="2"><B>DSP56K_SET_TX_WSIZE</B><DD>
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.
<DT id="3"><B>DSP56K_SET_RX_WSIZE</B><DD>
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.
<DT id="4"><B>DSP56K_HOST_FLAGS</B><DD>
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.
<DT id="5"><DD>
To access the host flags, the third
<B><A HREF="/cgi-bin/man/man2html?2+ioctl">ioctl</A></B>(2)
argument must be a pointer
to a <I>struct dsp56k_host_flags</I>.
If bit 0 or 1 is set in the
<I>dir</I> member, the corresponding bit in <I>out</I> will be written
to the host flags.
The state of all host flags will be returned in
the lower four bits of the <I>status</I> member.
<DT id="6"><B>DSP56K_HOST_CMD</B><DD>
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.
</DL>
<A NAME="lbAF">&nbsp;</A>
<H2>FILES</H2>
/dev/dsp56k
<A NAME="lbAG">&nbsp;</A>
<H2>SEE ALSO</H2>
<I>linux/include/asm-m68k/dsp56k.h</I>,
<I>linux/drivers/char/dsp56k.c</I>,
DSP56000/DSP56001 Digital Signal Processor User's Manual
<A NAME="lbAH">&nbsp;</A>
<H2>COLOPHON</H2>
This page is part of release 5.05 of the Linux
<I>man-pages</I>
project.
A description of the project,
information about reporting bugs,
and the latest version of this page,
can be found at
<A HREF="https://www.kernel.org/doc/man-pages/.">https://www.kernel.org/doc/man-pages/.</A>
<P>
<HR>
<A NAME="index">&nbsp;</A><H2>Index</H2>
<DL>
<DT id="7"><A HREF="#lbAB">NAME</A><DD>
<DT id="8"><A HREF="#lbAC">SYNOPSIS</A><DD>
<DT id="9"><A HREF="#lbAD">CONFIGURATION</A><DD>
<DT id="10"><A HREF="#lbAE">DESCRIPTION</A><DD>
<DT id="11"><A HREF="#lbAF">FILES</A><DD>
<DT id="12"><A HREF="#lbAG">SEE ALSO</A><DD>
<DT id="13"><A HREF="#lbAH">COLOPHON</A><DD>
</DL>
<HR>
This document was created by
<A HREF="/cgi-bin/man/man2html">man2html</A>,
using the manual pages.<BR>
Time: 00:06:01 GMT, March 31, 2021
</BODY>
</HTML>