dsp56k(4) Device Drivers Manual dsp56k(4)

НАИМЕНОВАНИЕ

dsp56k - устройство интерфейса DSP56001

ОБЗОР

#include <asm/dsp56k.h>
ssize_t read(int fd, void *data, size_t length);
ssize_t write(int fd, void *data, size_t length);
int ioctl(int fd, DSP56K_UPLOAD, struct dsp56k_upload *program);
int ioctl(int fd, DSP56K_SET_TX_WSIZE, int wsize);
int ioctl(int fd, DSP56K_SET_RX_WSIZE, int wsize);
int ioctl(int fd, DSP56K_HOST_FLAGS, struct dsp56k_host_flags *flags);
int ioctl(int fd, DSP56K_HOST_CMD, int cmd);

НАСТРОЙКА

The dsp56k device is a character device with major number 55 and minor number 0.

ОПИСАНИЕ

Motorola DSP56001 — это полностью программируемый 24-битный цифровой сигнальный процессор, используемый в компьютерах Atari Falcon030 и совместимых с ними. Специальный файл dsp56k используется для управления DSP56001 и для посылки и получения данных через выбранный на узле (host) двунаправленный порт.

Для отправки потока данных сигнальному процессору, используйте write(2), а для получения обработанных данных — read(2). Данные могут быть посылаться и получаться узлом по 8, 16, 24 или 32 бита, а сигнальный процессор способен обрабатывать только по 24 бита.

Для управления устройством dsp56k используются следующие вызовы ioctl(2):

resets the DSP56001 and uploads a program. The third ioctl(2) argument must be a pointer to a struct dsp56k_upload with members .bin pointing to a DSP56001 binary program, and .len set to the length of the program, counted in 24-bit words.
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.
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 ('\0'), to fit the native 24-bit data format of the DSP56001.
Считывает и записывает флаги узла. Флаги узла — это четыре бита общего назначения, они могут быть считаны как узлом, так и процессором DSP56001. Нулевой и первый биты могут записываться узлом, а второй и третий пишутся устройством DSP56001.
To access the host flags, the third ioctl(2) argument must be a pointer to a struct dsp56k_host_flags. If bit 0 or 1 is set in the .dir member, the corresponding bit in .out will be written to the host flags. The state of all host flags will be returned in the lower four bits of the .status member.
Посылает команды узла. Допустимые величины находятся в диапазоне от 0 до 31, это определяемые пользователем команды, обрабатываемые программой, выполняющейся на DSP56001.

ФАЙЛЫ

/dev/dsp56k

СМОТРИТЕ ТАКЖЕ

linux/include/asm-m68k/dsp56k.h, linux/drivers/char/dsp56k.c, http://dsp56k.nocrew.org/, DSP56000/DSP56001 Digital Signal Processor User's Manual

ПЕРЕВОД

Русский перевод этой страницы руководства разработал(и) Yuri Kozlov <yuray@komyakino.ru>, Иван Павлов <pavia00@gmail.com> и Kirill Rekhov <krekhov.dev@gmail.com>

Этот перевод является свободной программной документацией; он распространяется на условиях общедоступной лицензии GNU (GNU General Public License - GPL, https://www.gnu.org/licenses/gpl-3.0.html версии 3 или более поздней) в отношении авторского права, но БЕЗ КАКИХ-ЛИБО ГАРАНТИЙ.

Если вы обнаружите какие-либо ошибки в переводе этой страницы руководства, пожалуйста, сообщите об этом разработчику(ам) по его(их) адресу(ам) электронной почты или по адресу списка рассылки русских переводчиков.

17 мая 2025 г. Справочные страницы Linux 6.15