.\" -*- coding: UTF-8 -*- .\" Copyright 2000, Lars Brinkhoff .\" Copyright, the authors of the Linux man-pages project .\" .\" SPDX-License-Identifier: GPL-2.0-or-later .\" .\"******************************************************************* .\" .\" This file was generated with po4a. Translate the source file. .\" .\"******************************************************************* .TH dsp56k 4 "8 февраля 2026 г." "Справочные страницы Linux 6.17" .SH НАИМЕНОВАНИЕ dsp56k \- устройство интерфейса DSP56001 .SH ОБЗОР .nf \fB#include \fP .P \fBssize_t read(int \fP\fIfd\fP\fB, void *\fP\fIdata\fP\fB, size_t \fP\fIlength\fP\fB);\fP \fBssize_t write(int \fP\fIfd\fP\fB, void *\fP\fIdata\fP\fB, size_t \fP\fIlength\fP\fB);\fP .P \fBint ioctl(int \fP\fIfd\fP\fB, DSP56K_UPLOAD, struct dsp56k_upload *\fP\fIprogram\fP\fB);\fP \fBint ioctl(int \fP\fIfd\fP\fB, DSP56K_SET_TX_WSIZE, int \fP\fIwsize\fP\fB);\fP \fBint ioctl(int \fP\fIfd\fP\fB, DSP56K_SET_RX_WSIZE, int \fP\fIwsize\fP\fB);\fP \fBint ioctl(int \fP\fIfd\fP\fB, DSP56K_HOST_FLAGS, struct dsp56k_host_flags *\fP\fIflags\fP\fB);\fP \fBint ioctl(int \fP\fIfd\fP\fB, DSP56K_HOST_CMD, int \fP\fIcmd\fP\fB);\fP .fi .SH НАСТРОЙКА The \fIdsp56k\fP device is a character device with major number 55 and minor number 0. .SH ОПИСАНИЕ Motorola DSP56001 \(em это полностью программируемый 24\-битный цифровой сигнальный процессор, используемый в компьютерах Atari Falcon030 и совместимых с ними. Специальный файл \fIdsp56k\fP используется для управления DSP56001 и для посылки и получения данных через выбранный на узле (host) двунаправленный порт. .P Для отправки потока данных сигнальному процессору, используйте \fBwrite\fP(2), а для получения обработанных данных \(em \fBread\fP(2). Данные могут быть посылаться и получаться узлом по 8, 16, 24 или 32 бита, а сигнальный процессор способен обрабатывать только по 24 бита. .P Для управления устройством \fIdsp56k\fP используются следующие вызовы \fBioctl\fP(2): .TP \fBDSP56K_UPLOAD\fP resets the DSP56001 and uploads a program. The third \fBioctl\fP(2) argument must be a pointer to a \fIstruct\ dsp56k_upload\fP with members \fI.bin\fP pointing to a DSP56001 binary program, and \fI.len\fP set to the length of the program, counted in 24\-bit words. .TP \fBDSP56K_SET_TX_WSIZE\fP 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 bytes containing zero, or truncated to fit the native 24\-bit data format of the DSP56001. .TP \fBDSP56K_SET_RX_WSIZE\fP 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 (\[aq]\[rs]0\[aq]), to fit the native 24\-bit data format of the DSP56001. .TP \fBDSP56K_HOST_FLAGS\fP Считывает и записывает флаги узла. Флаги узла \(em это четыре бита общего назначения, они могут быть считаны как узлом, так и процессором DSP56001. Нулевой и первый биты могут записываться узлом, а второй и третий пишутся устройством DSP56001. .IP To access the host flags, the third \fBioctl\fP(2) argument must be a pointer to a \fIstruct\ dsp56k_host_flags\fP. If bit 0 or 1 is set in the \fI.dir\fP member, the corresponding bit in \fI.out\fP will be written to the host flags. The state of all host flags will be returned in the lower four bits of the \&\fI.status\fP member. .TP \fBDSP56K_HOST_CMD\fP Посылает команды узла. Допустимые величины находятся в диапазоне от 0 до 31, это определяемые пользователем команды, обрабатываемые программой, выполняющейся на DSP56001. .SH ФАЙЛЫ .\" .SH AUTHORS .\" Fredrik Noring , lars brinkhoff , .\" Tomas Berndtsson . \fI/dev/dsp56k\fP .SH "СМОТРИТЕ ТАКЖЕ" \fIlinux/include/asm\-m68k/dsp56k.h\fP, \fIlinux/drivers/char/dsp56k.c\fP, .UR http:\://dsp56k.nocrew.org/ .UE , DSP56000/DSP56001 Digital Signal Processor User's Manual .PP .SH ПЕРЕВОД Русский перевод этой страницы руководства разработал(и) Yuri Kozlov и Иван Павлов . .PP Этот перевод является свободной программной документацией; он распространяется на условиях общедоступной лицензии GNU (GNU General Public License - GPL, .UR https://www.gnu.org/licenses/gpl-3.0.html .UE версии 3 или более поздней) в отношении авторского права, но БЕЗ КАКИХ-ЛИБО ГАРАНТИЙ. .PP Если вы обнаружите какие-либо ошибки в переводе этой страницы руководства, пожалуйста, сообщите об этом разработчику(ам) по его(их) адресу(ам) электронной почты или по адресу .MT списка рассылки русских переводчиков .ME .