OSDN Git Service

Import translated manuals from JM CVS Repository.
[linuxjm/jm.git] / manual / LDP_man-pages / draft / man4 / dsp56k.4
1 '\" t
2 .\" Copyright (c) 2000 lars brinkhoff <lars@nocrew.org>
3 .\"
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.
8 .\"
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.
13 .\"
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.
18 .\"
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,
22 .\" USA.
23 .\"
24 .\" Modified, Thu Jan 27 19:16:19 CET 2000, lars@nocrew.org
25 .\"
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>
30 .\"
31 .\"WORD:        handshake       ¥Ï¥ó¥É¥·¥§¥¤¥¯
32 .\"WORD:        device          ¥Ç¥Ð¥¤¥¹
33 .\"WORD:        processer       ¥×¥í¥»¥Ã¥µ¡¼
34 .\"WORD:        transmit        Á÷¿®
35 .\"WORD:        recieve         ¼õ¿®
36 .\"WORD:        quantity        Ã±°Ì
37 .\"
38 .TH DSP56K 4 2000-03-01 "Linux" "Linux Programmer's Manual"
39 .\"O .SH NAME
40 .SH Ì¾Á°
41 .\"O dsp56k \- DSP56001 interface device
42 dsp56k \- DSP56001 ¤Î¥¤¥ó¥¿¡¼¥Õ¥§¡¼¥¹¡¦¥Ç¥Ð¥¤¥¹
43 .\"O .SH SYNOPSIS
44 .SH ½ñ¼°
45 .nf
46 #include <asm/dsp56k.h>
47 .sp
48 .BI "ssize_t read(int " fd ", void *" data ", size_t " length );
49 .BI "ssize_t write(int " fd ", void *" data ", size_t " length );
50
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 );
56 .fi
57 .\"O .SH CONFIGURATION
58 .SH ÀßÄê
59 .\"O The dsp56k device is a character device with major number 55 and minor
60 .\"O number 0.
61 dsp56k ¥Ç¥Ð¥¤¥¹¤Ï¡¢¥á¥¸¥ã¡¼ÈÖ¹æ 55¡¢¥Þ¥¤¥Ê¡¼ÈÖ¹æ 0 ¤Î
62 ¥­¥ã¥é¥¯¥¿¡¼¡¦¥Ç¥Ð¥¤¥¹¤Ç¤¢¤ë¡£
63 .\"O .SH DESCRIPTION
64 .SH ÀâÌÀ
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
69 .\"O port.
70 Motorola DSP56001 ¤Ï¡¢Atari Falcon030 ¸ß´¹¤Î¥³¥ó¥Ô¥å¡¼¥¿¤Ç»È¤ï¤ì¤Æ¤¤¤ë
71 ¥Õ¥ë¥×¥í¥°¥é¥Þ¥Ö¥ë¤Ê 24 ¥Ó¥Ã¥È¤Î¥Ç¥¸¥¿¥ë¥·¥°¥Ê¥ë¥×¥í¥»¥Ã¥µ¡¼¤Ç¤¢¤ë¡£
72 ¥¹¥Ú¥·¥ã¥ë¥Õ¥¡¥¤¥ë \fIdsp56k\fP ¤Ï¡¢DSP56001 ¤ÎÀ©¸æ¤È
73 ÁÐÊý¸þ¥Ï¥ó¥É¥·¥§¥¤¥¯¥Û¥¹¥È¥Ý¡¼¥È¤Ç¤Î¥Ç¡¼¥¿¤ÎÁ÷¼õ¿®¤Î¤¿¤á¤Ë»È¤ï¤ì¤ë¡£
74 .PP
75 .\"O To send a data stream to the signal processor, use
76 .\"O .BR write (2)
77 .\"O to the
78 .\"O device, and
79 .\"O .BR read (2)
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 ¥Ç¡¼¥¿¥¹¥È¥ê¡¼¥à¤ò¥·¥°¥Ê¥ë¥×¥í¥»¥Ã¥µ¡¼¤ËÁ÷¿®¤¹¤ë¤¿¤á¤Ë¤Ï¡¢
85 ¥Ç¥Ð¥¤¥¹¤ËÂФ·¤Æ
86 .BR write (2)
87 ¤ò»È¤¦¤³¤È¡£
88 ½èÍý¤µ¤ì¤¿¥Ç¡¼¥¿¤ò¼õ¿®¤¹¤ë¤¿¤á¤Ë¤Ï¡¢
89 .BR read (2)
90 ¤ò»È¤¦¤³¤È¡£
91 ¥Û¥¹¥È¦¤Ç¤Ï¡¢¥Ç¡¼¥¿¤Ï 8, 16, 24, 32 ¥Ó¥Ã¥Èñ°Ì¤ÇÁ÷¼õ¿®¤Ç¤­¤ë¤¬¡¢
92 DSP56001 Æâ¤Ç¤Ï¡¢24 ¥Ó¥Ã¥Èñ°Ì¤Ç°·¤ï¤ì¤ë¡£
93 .PP
94 .\"O The following
95 .\"O .BR ioctl (2)
96 .\"O calls are used to control the
97 .\"O \fIdsp56k\fP device:
98 ¼¡¤Î
99 .BR ioctl (2)
100 ¥³¡¼¥ë¤¬ \fIdsp56k\fP ¥Ç¥Ð¥¤¥¹¤òÀ©¸æ¤¹¤ë¤¿¤á¤Ë»È¤ï¤ì¤ë¡£
101 .IP \fBDSP56K_UPLOAD\fP
102 .\"O resets the DSP56001 and uploads a program.
103 .\"O The third
104 .\"O .BR ioctl(2)
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 ¤ò¥ê¥»¥Ã¥È¤·¡¢¥×¥í¥°¥é¥à¤ò¥¢¥Ã¥×¥í¡¼¥É¤¹¤ë¡£
109 .BR ioctl (2)
110 ¤Î 3 ÈÖÌܤΰú¤­¿ô¤Ï¡¢
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
119 .\"O DSP56001.
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
122 .\"O DSP56001.
123 Á÷¿®¥ï¡¼¥É¥µ¥¤¥º¤òÀßÄꤹ¤ë¡£
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
131 .\"O DSP56001.
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.
134 ¼õ¿®¥ï¡¼¥É¥µ¥¤¥º¤òÀßÄꤹ¤ë¡£
135 ÀßÄê¤Ç¤­¤ëÃͤϠ1 ¡Á 4 ¤ÎÈϰϤǡ¢
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
143 .\"O the DSP56001.
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.
146 ¥Û¥¹¥È¥Õ¥é¥°¤òÆɤ߽ñ¤­¤¹¤ë¡£
147 ¥Û¥¹¥È¥Õ¥é¥°¤Ï¡¢°ìÈÌŪ¤ÊÌÜŪ¤Ç»È¤¦¤³¤È¤Î¤Ç¤­¤ë¥Ó¥Ã¥È¤Ç¡¢
148 ¥Û¥¹¥È¥³¥ó¥Ô¥å¡¼¥¿¤È DSP56001 ¤ÎξÊý¤«¤éÆɤळ¤È¤¬¤Ç¤­¤ë¡£
149 ¥Ó¥Ã¥È 0 ¤È 1 ¤Ï¡¢¥Û¥¹¥È¤Ë¤è¤Ã¤Æ½ñ¤­¹þ¤à¤³¤È¤¬¤Ç¤­¡¢
150 ¥Ó¥Ã¥È 2 ¤È 3 ¤Ï¡¢DSP56001 ¤Ë¤è¤Ã¤Æ½ñ¤­¹þ¤à¤³¤È¤¬¤Ç¤­¤ë¡£
151
152 .\"O To access the host flags, the third
153 .\"O .BR ioctl (2)
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.
161 ¥Û¥¹¥È¥Õ¥é¥°¤Ë¥¢¥¯¥»¥¹¤¹¤ë¤¿¤á¤Ë¤Ï¡¢
162 .BR ioctl (2)
163 ¤Î 3 ÈÖÌܤΰú¤­¿ô¤¬
164 ¹½Â¤ÂΠ\fIstruct dsp56k_host_flags\fP ¤Ø¤Î¥Ý¥¤¥ó¥¿¤Ç¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¡£
165 ¤³¤Î¹½Â¤ÂΤΥá¥ó¥Ð¡¼ \fIdir\fP ¤Î¥Ó¥Ã¥È 0 ¤Þ¤¿¤Ï 1 ¤¬ÀßÄꤵ¤ì¤ë¤È¡¢
166 ¥á¥ó¥Ð¡¼ \fIout\fP ¤ÎÂбþ¤¹¤ë¥Ó¥Ã¥È¤ÎÃͤ¬¥Û¥¹¥È¥Õ¥é¥°¤Ë½ñ¤­¹þ¤Þ¤ì¤ë¡£
167 ¤¹¤Ù¤Æ¤Î¥Û¥¹¥È¥Õ¥é¥°¤Î¾õÂ֤ϡ¢¹½Â¤ÂΤΥá¥ó¥Ð¡¼ \fIstatus\fP ¤Î
168 ²¼¤«¤é 4 ¥Ó¥Ã¥È¤È¤·¤ÆÊÖ¤µ¤ì¤ë¡£
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.
173 ¥Û¥¹¥È¥³¥Þ¥ó¥É¤òÁ÷¿®¤¹¤ë¡£
174 Á÷¿®¤Ç¤­¤ëÃͤϠ0 ¡Á 31 ¤ÎÈϰϤǡ¢DSP56001 ¤ÇÆ°ºî¤·¤Æ¤¤¤ë¥×¥í¥°¥é¥à¤Ë¤è¤Ã¤Æ
175 ½èÍý¤µ¤ì¤ë¥æ¡¼¥¶¡¼ÄêµÁ¥³¥Þ¥ó¥É¤Ç¤¢¤ë¡£
176 .\"O .SH FILES
177 .SH ¥Õ¥¡¥¤¥ë
178 /dev/dsp56k
179 .\"O .\" .SH AUTHORS
180 .\" .SH Ãø¼Ô
181 .\" Fredrik Noring <noring@nocrew.org>, lars brinkhoff <lars@nocrew.org>,
182 .\" Tomas Berndtsson <tomas@nocrew.org>.
183 .\"O .SH "SEE ALSO"
184 .SH ´ØÏ¢¹àÌÜ
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