]> git.ipfire.org Git - thirdparty/man-pages.git/blame - man4/dsp56k.4
man.7: Replace page with `so` of groff_man(7)
[thirdparty/man-pages.git] / man4 / dsp56k.4
CommitLineData
fea681da
MK
1.\" Copyright (c) 2000 lars brinkhoff <lars@nocrew.org>
2.\"
e4a74ca8 3.\" SPDX-License-Identifier: GPL-2.0-or-later
fea681da
MK
4.\"
5.\" Modified, Thu Jan 27 19:16:19 CET 2000, lars@nocrew.org
6.\"
4c1c5274 7.TH dsp56k 4 (date) "Linux man-pages (unreleased)"
fea681da
MK
8.SH NAME
9dsp56k \- DSP56001 interface device
10.SH SYNOPSIS
11.nf
078ade66 12.B #include <asm/dsp56k.h>
68e4db0a 13.PP
fea681da
MK
14.BI "ssize_t read(int " fd ", void *" data ", size_t " length );
15.BI "ssize_t write(int " fd ", void *" data ", size_t " length );
dbfe9c70 16.PP
066cb3d6
MK
17.BI "int ioctl(int " fd ", DSP56K_UPLOAD, struct dsp56k_upload *" program );
18.BI "int ioctl(int " fd ", DSP56K_SET_TX_WSIZE, int " wsize );
19.BI "int ioctl(int " fd ", DSP56K_SET_RX_WSIZE, int " wsize );
20.BI "int ioctl(int " fd ", DSP56K_HOST_FLAGS, struct dsp56k_host_flags *" flags );
21.BI "int ioctl(int " fd ", DSP56K_HOST_CMD, int " cmd );
fea681da
MK
22.fi
23.SH CONFIGURATION
34fa7604 24The
c9f82eec 25.I dsp56k
34fa7604 26device is a character device with major number 55 and minor
fea681da
MK
27number 0.
28.SH DESCRIPTION
29The Motorola DSP56001 is a fully programmable 24-bit digital signal
c13182ef 30processor found in Atari Falcon030-compatible computers.
89f9f5b2 31The \fIdsp56k\fP special file is used to control the DSP56001, and
e713cb8e 32to send and receive data using the bidirectional handshaked host
fea681da
MK
33port.
34.PP
c13182ef 35To send a data stream to the signal processor, use
5e21af3a 36.BR write (2)
b5cc2ffb 37to the
c13182ef 38device, and
5e21af3a 39.BR read (2)
c13182ef
MK
40to receive processed data.
41The data can be sent or
fea681da
MK
42received in 8, 16, 24, or 32-bit quantities on the host side, but will
43always be seen as 24-bit quantities in the DSP56001.
44.PP
45The following
31e9a9ec 46.BR ioctl (2)
fea681da 47calls are used to control the
89f9f5b2 48\fIdsp56k\fP device:
4279e42d
AC
49.TP
50.B DSP56K_UPLOAD
c13182ef
MK
51resets the DSP56001 and uploads a program.
52The third
5e21af3a 53.BR ioctl (2)
f54a0d6a 54argument must be a pointer to a \fIstruct dsp56k_upload\fP with members
89f9f5b2 55\fIbin\fP pointing to a DSP56001 binary program, and \fIlen\fP set to
fea681da 56the length of the program, counted in 24-bit words.
4279e42d
AC
57.TP
58.B DSP56K_SET_TX_WSIZE
c13182ef
MK
59sets the transmit word size.
60Allowed values are in the range 1 to 4,
fea681da 61and is the number of bytes that will be sent at a time to the
c13182ef 62DSP56001.
6de69ccd
MK
63These data quantities will either be padded with bytes containing zero,
64or truncated to fit the native 24-bit data format of the
fea681da 65DSP56001.
4279e42d
AC
66.TP
67.B DSP56K_SET_RX_WSIZE
c13182ef
MK
68sets the receive word size.
69Allowed values are in the range 1 to 4,
d6c1998e
AC
70and is the number of bytes that will be received at a time from the DSP56001.
71These data quantities will either truncated,
72or padded with a null byte (\[aq]\e0\[aq]),
73to fit the native 24-bit data format of the DSP56001.
4279e42d
AC
74.TP
75.B DSP56K_HOST_FLAGS
c13182ef
MK
76read and write the host flags.
77The host flags are four
fea681da 78general-purpose bits that can be read by both the hosting computer and
c13182ef
MK
79the DSP56001.
80Bits 0 and 1 can be written by the host, and bits 2 and
fea681da 813 can be written by the DSP56001.
5b539973 82.IP
c13182ef 83To access the host flags, the third
5e21af3a 84.BR ioctl (2)
b5cc2ffb 85argument must be a pointer
89f9f5b2 86to a \fIstruct dsp56k_host_flags\fP.
c13182ef 87If bit 0 or 1 is set in the
89f9f5b2 88\fIdir\fP member, the corresponding bit in \fIout\fP will be written
c13182ef
MK
89to the host flags.
90The state of all host flags will be returned in
89f9f5b2 91the lower four bits of the \fIstatus\fP member.
4279e42d
AC
92.TP
93.B DSP56K_HOST_CMD
c13182ef
MK
94sends a host command.
95Allowed values are in the range 0 to 31, and is a
fea681da
MK
96user-defined command handled by the program running in the DSP56001.
97.SH FILES
34fa7604 98.I /dev/dsp56k
d2dc6294
MK
99.\" .SH AUTHORS
100.\" Fredrik Noring <noring@nocrew.org>, lars brinkhoff <lars@nocrew.org>,
101.\" Tomas Berndtsson <tomas@nocrew.org>.
47297adb 102.SH SEE ALSO
b49c2acb 103.IR linux/include/asm\-m68k/dsp56k.h ,
a9a13a50 104.IR linux/drivers/char/dsp56k.c ,
608bf950
SK
105.UR http://dsp56k.nocrew.org/
106.UE ,
fea681da 107DSP56000/DSP56001 Digital Signal Processor User's Manual