File: dsp56k.4

package info (click to toggle)
manpages-fr 1.58.1-3
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 10,104 kB
  • ctags: 4
  • sloc: makefile: 106; sh: 8
file content (96 lines) | stat: -rw-r--r-- 4,871 bytes parent folder | download
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
.\" Copyright (c) 2000 lars brinkhoff <lars@nocrew.org>
.\"
.\" This is free documentation; you can redistribute it and/or
.\" modify it under the terms of the GNU General Public License as
.\" published by the Free Software Foundation; either version 2 of
.\" the License, or (at your option) any later version.
.\"
.\" The GNU General Public License's references to "object code"
.\" and "executables" are to be interpreted as the output of any
.\" document formatting or typesetting system, including
.\" intermediate and printed output.
.\"
.\" This manual is distributed in the hope that it will be useful,
.\" but WITHOUT ANY WARRANTY; without even the implied warranty of
.\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
.\" GNU General Public License for more details.
.\"
.\" You should have received a copy of the GNU General Public
.\" License along with this manual; if not, write to the Free
.\" Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111,
.\" USA.
.\"
.\" Modified, Thu Jan 27 19:16:19 CET 2000, lars@nocrew.org
.\" Traduction 28/08/2000 par Christophe Blaess (ccb@club-internet.fr)
.\" LDP 1.30
.\" LDP 1.47
.\" MJ 25/07/2003 LDP-1.56
.TH DSP56K 4 "25 juillet 2003" LDP "Manuel du programmeur Linux"
.SH NOM
dsp56k \- Priphrique d'interface DSP 56001.
.SH SYNOPSIS
.nf
#include <asm/dsp56k.h>
.sp
.BI "ssize_t read (int " fd ", void * " data ", size_t " length );
.BI "ssize_t write (int " fd ", void * " data ", size_t " length );
.BI "int ioctl (int " fd ", \s-1DSP56K_UPLOAD\s+1, struct dsp56k_upload *" program );
.BI "int ioctl (int " fd ", \s-1DSP56K_SET_TX_WSIZE\s+1, int " wsize );
.BI "int ioctl (int " fd ", \s-1DSP56K_SET_RX_WSIZE\s+1, int " wsize );
.BI "int ioctl (int " fd ", \s-1DSP56K_HOST_FLAGS\s+1, struct dsp56k_host_flags *" flags );
.BI "int ioctl (int " fd ", \s-1DSP56K_HOST_CMD\s+1, int " cmd );
.fi
.SH CONFIGURATION
Le DSP 56001 est un priphrique de type caractre, ayant un numro majeur valant 55 et
un mineur 0.
.SH DESCRIPTION
Le DSP 56001 Motorola est un processeur de signal numrique 24 bits entirement programmable,
que l'on trouve dans les ordinateurs compatibles avec l'Atari Falcon 030. Le fichier
spcial \fBdsp56k\fP sert  commander le DSP 56001, pour envoyer ou recevoir des signaux
sur le port hte.
.PP
Pour envoyer un flux de signal vers le processeur, utilisez write() sur le priphrique, et
pour en recevoir utilisez read(). Les donnes peuvent tre mises ou reues par blocs de 8,
16, 24 ou 32 bits du ct hte, mais seront toujours vues comme des blocs de 24 bits du ct du
DSP 56001.
.PP
Les appels
.IR ioctl (2)
suivants permettent de commander le priphrique
\fBdsp56k\fP :
.IP \fBDSP56K_UPLOAD\fP
rinitialise le DSP 56001 et tlcharge un programme. Le troisime arguments de l'appel ioctl()
doit tre un pointeur sur une \fBstruct dsp56k_binary\fP dont le champ \fBbin\fP pointe sur un
programme DSP 56001 binaire. Le champ \fBlen\fP doit contenir la longueur du programme en mots de 24 bits.
.IP \fBDSP56K_SET_TX_WSIZE\fP
configure la taille des mots mis. Les valeurs autorises se trouvent dans l'intervalle 1  4, correspondant
au nombre d'octets envoys  la fois. Ces donnes seront soit compltes avec des zros, soit tronques pour
s'aligner sur le format natif 24 bits du DSP 56001.
.IP \fBDSP56K_SET_RX_WSIZE\fP
configure la taille des mots reus. Les valeurs autorises se trouvent dans l'intervalle 1  4, correspondant
au nombre d'octets reus en une fois. Ces donnes seront soit compltes avec des zros, soit tronques pour
s'aligner sur le format natif 24 bits du DSP 56001.
.IP \fBDSP56K_HOST_FLAGS\fP
Lire ou crire les attributs d'hte. Ces attributs sont reprsents par 4 bits  usage gnraux qui peuvent
tre lus aussi bien par l'ordinateur hte que par le DSP 56001. Les bits 0 et 1 peuvent tre fixs par l'hte, et
les bits 2 et 3 peuvent tre crits par le DSP 56001.

Pour accder aux attributs d'hte, le troisime argument de l'appel ioctl() doit tre un pointeur sur une
\fBstruct dsp56k_host_flags\fP.  Si les bits 0 ou 1 sont  1 dans le champ \fBdir\fP, Le bit correspondant de
\fBout\fP sera crit dans les attributs d'hte. L'tat des attributs d'hte sera renvoy dans les quatre bits
de poids faible du membre \fBstatus\fP.
.IP \fBDSP56K_HOST_CMD\fP
envoie une commande d'hte. Les valeurs autoriss sont dans l'intervalle 0  31 et correspondent  un numro
de commande (dfinie par l'utilisateur) manipul par le programme tournant sur le DSP 56001.
.SH FICHIERS
/dev/dsp56k
.SH AUTEURS
Fredrik Noring <noring@nocrew.org>, lars brinkhoff <lars@nocrew.org>,
Tomas Berndtsson <tomas@nocrew.org>.
.SH "VOIR AUSSI"
linux/include/asm-m68k/dsp56k.h,
linux/drivers/char/dsp56k.c,
http://dsp56k.nocrew.org/,
DSP56000/DSP56001 Digital Signal Processor User's Manual
.SH TRADUCTION
Christophe Blaess, 2000-2003.