2 .\" Copyright (c) 2000 lars brinkhoff <lars@nocrew.org>
4 .\" This is free documentation; you can redistribute it and/or
5 .\" modify it under the terms of the GNU General Public License as
6 .\" published by the Free Software Foundation; either version 2 of
7 .\" the License, or (at your option) any later version.
9 .\" The GNU General Public License's references to "object code"
10 .\" and "executables" are to be interpreted as the output of any
11 .\" document formatting or typesetting system, including
12 .\" intermediate and printed output.
14 .\" This manual is distributed in the hope that it will be useful,
15 .\" but WITHOUT ANY WARRANTY; without even the implied warranty of
16 .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 .\" GNU General Public License for more details.
19 .\" You should have received a copy of the GNU General Public
20 .\" License along with this manual; if not, write to the Free
21 .\" Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111,
24 .\" Modified, Thu Jan 27 19:16:19 CET 2000, lars@nocrew.org
26 .\" Japanese Version Copyright (c) 2000 Yuichi SATO
27 .\" all rights reserved.
28 .\" Translated Tue Jul 11 20:05:48 JST 2000
29 .\" by Yuichi SATO <sato@complex.eng.hokudai.ac.jp>
31 .\"WORD: handshake ハンドシェイク
33 .\"WORD: processer プロセッサー
38 .TH DSP56K 4 2000-03-01 "Linux" "Linux Programmer's Manual"
41 .\"O dsp56k \- DSP56001 interface device
42 dsp56k \- DSP56001 のインターフェース・デバイス
46 #include <asm/dsp56k.h>
48 .BI "ssize_t read(int " fd ", void *" data ", size_t " length );
49 .BI "ssize_t write(int " fd ", void *" data ", size_t " length );
51 .BI "int ioctl(int " fd ", DSP56K_UPLOAD, struct dsp56k_upload *" program );
52 .BI "int ioctl(int " fd ", DSP56K_SET_TX_WSIZE, int " wsize );
53 .BI "int ioctl(int " fd ", DSP56K_SET_RX_WSIZE, int " wsize );
54 .BI "int ioctl(int " fd ", DSP56K_HOST_FLAGS, struct dsp56k_host_flags *" flags );
55 .BI "int ioctl(int " fd ", DSP56K_HOST_CMD, int " cmd );
57 .\"O .SH CONFIGURATION
59 .\"O The dsp56k device is a character device with major number 55 and minor
61 dsp56k デバイスは、メジャー番号 55、マイナー番号 0 の
65 .\"O The Motorola DSP56001 is a fully programmable 24-bit digital signal
66 .\"O processor found in Atari Falcon030-compatible computers.
67 .\"O The \fIdsp56k\fP special file is used to control the DSP56001, and
68 .\"O to send and receive data using the bidirectional handshaked host
70 Motorola DSP56001 は、Atari Falcon030 互換のコンピュータで使われている
71 フルプログラマブルな 24 ビットのデジタルシグナルプロセッサーである。
72 スペシャルファイル \fIdsp56k\fP は、DSP56001 の制御と
73 双方向ハンドシェイクホストポートでのデータの送受信のために使われる。
75 .\"O To send a data stream to the signal processor, use
80 .\"O to receive processed data.
81 .\"O The data can be sent or
82 .\"O received in 8, 16, 24, or 32-bit quantities on the host side, but will
83 .\"O always be seen as 24-bit quantities in the DSP56001.
84 データストリームをシグナルプロセッサーに送信するためには、
91 ホスト側では、データは 8, 16, 24, 32 ビット単位で送受信できるが、
92 DSP56001 内では、24 ビット単位で扱われる。
96 .\"O calls are used to control the
97 .\"O \fIdsp56k\fP device:
100 コールが \fIdsp56k\fP デバイスを制御するために使われる。
101 .IP \fBDSP56K_UPLOAD\fP
102 .\"O resets the DSP56001 and uploads a program.
105 .\"O argument must be a pointer to a \fIstruct dsp56k_binary\fP with members
106 .\"O \fIbin\fP pointing to a DSP56001 binary program, and \fIlen\fP set to
107 .\"O the length of the program, counted in 24-bit words.
108 DSP56001 をリセットし、プログラムをアップロードする。
111 構造体 \fIstruct dsp56k_binary\fP へのポインタでなければならない。
112 構造体のメンバー \fIbin\fP は DSP56001 バイナリプログラムを指し、
113 構造体のメンバー \fIlen\fP は 24 ビットワードで数えた
114 プログラムの長さに設定されていなければならない。
115 .IP \fBDSP56K_SET_TX_WSIZE\fP
116 .\"O sets the transmit word size.
117 .\"O Allowed values are in the range 1 to 4,
118 .\"O and is the number of bytes that will be sent at a time to the
120 .\"O These data quantities will either be padded with zero
121 .\"O bytes, or truncated to fit the native 24-bit data format of the
124 設定できる値は 1 〜 4 の範囲で、このバイト数分だけ 1 度に DSP56001 に送信する。
125 このデータ単位は、DSP56001 本来の 24 ビットデータ形式に合わせるため、
126 ゼロのバイトで埋められたり、切り詰められたりする。
127 .IP \fBDSP56K_SET_RX_WSIZE\fP
128 .\"O sets the receive word size.
129 .\"O Allowed values are in the range 1 to 4,
130 .\"O and is the number of bytes that will be received at a time from the
132 .\"O These data quantities will either truncated, or padded with
133 .\"O a null byte (\(aq\\0\(aq) to fit the native 24-bit data format of the DSP56001.
136 このバイト数分だけ 1 度に DSP56001 から受信する。
137 このデータ単位は、DSP56001 本来の 24 ビットデータ形式に合わせるため、
138 切り詰められたり、NULL バイト (\(aq\\0\(aq) で埋められたりする。
139 .IP \fBDSP56K_HOST_FLAGS\fP
140 .\"O read and write the host flags.
141 .\"O The host flags are four
142 .\"O general-purpose bits that can be read by both the hosting computer and
144 .\"O Bits 0 and 1 can be written by the host, and bits 2 and
145 .\"O 3 can be written by the DSP56001.
147 ホストフラグは、一般的な目的で使うことのできるビットで、
148 ホストコンピュータと DSP56001 の両方から読むことができる。
149 ビット 0 と 1 は、ホストによって書き込むことができ、
150 ビット 2 と 3 は、DSP56001 によって書き込むことができる。
152 .\"O To access the host flags, the third
154 .\"O argument must be a pointer
155 .\"O to a \fIstruct dsp56k_host_flags\fP.
156 .\"O If bit 0 or 1 is set in the
157 .\"O \fIdir\fP member, the corresponding bit in \fIout\fP will be written
158 .\"O to the host flags.
159 .\"O The state of all host flags will be returned in
160 .\"O the lower four bits of the \fIstatus\fP member.
164 構造体 \fIstruct dsp56k_host_flags\fP へのポインタでなければならない。
165 この構造体のメンバー \fIdir\fP のビット 0 または 1 が設定されると、
166 メンバー \fIout\fP の対応するビットの値がホストフラグに書き込まれる。
167 すべてのホストフラグの状態は、構造体のメンバー \fIstatus\fP の
169 .IP \fBDSP56K_HOST_CMD\fP
170 .\"O sends a host command.
171 .\"O Allowed values are in the range 0 to 31, and is a
172 .\"O user-defined command handled by the program running in the DSP56001.
174 送信できる値は 0 〜 31 の範囲で、DSP56001 で動作しているプログラムによって
181 .\" Fredrik Noring <noring@nocrew.org>, lars brinkhoff <lars@nocrew.org>,
182 .\" Tomas Berndtsson <tomas@nocrew.org>.
185 .IR linux/include/asm-m68k/dsp56k.h ,
186 .IR linux/drivers/char/dsp56k.c ,
187 .IR http://dsp56k.nocrew.org/ ,
188 DSP56000/DSP56001 Digital Signal Processor User's Manual