1DSP56K(4) Linux Programmer's Manual DSP56K(4)
2
3
4
6 dsp56k - DSP56001 interface device
7
9 #include <asm/dsp56k.h>
10
11 ssize_t read(int fd, void *data, size_t length);
12 ssize_t write(int fd, void *data, size_t length);
13
14 int ioctl(int fd, DSP56K_UPLOAD, struct dsp56k_upload *program);
15 int ioctl(int fd, DSP56K_SET_TX_WSIZE, int wsize);
16 int ioctl(int fd, DSP56K_SET_RX_WSIZE, int wsize);
17 int ioctl(int fd, DSP56K_HOST_FLAGS, struct dsp56k_host_flags *flags);
18 int ioctl(int fd, DSP56K_HOST_CMD, int cmd);
19
21 The dsp56k device is a character device with major number 55 and minor
22 number 0.
23
25 The Motorola DSP56001 is a fully programmable 24-bit digital signal
26 processor found in Atari Falcon030-compatible computers. The dsp56k
27 special file is used to control the DSP56001, and to send and receive
28 data using the bidirectional handshaked host port.
29
30 To send a data stream to the signal processor, use write(2) to the
31 device, and read(2) to receive processed data. The data can be sent or
32 received in 8, 16, 24, or 32-bit quantities on the host side, but will
33 always be seen as 24-bit quantities in the DSP56001.
34
35 The following ioctl(2) calls are used to control the dsp56k device:
36
37 DSP56K_UPLOAD
38 resets the DSP56001 and uploads a program. The third ioctl(2)
39 argument must be a pointer to a struct dsp56k_binary with mem‐
40 bers bin pointing to a DSP56001 binary program, and len set to
41 the length of the program, counted in 24-bit words.
42
43 DSP56K_SET_TX_WSIZE
44 sets the transmit word size. Allowed values are in the range 1
45 to 4, and is the number of bytes that will be sent at a time to
46 the DSP56001. These data quantities will either be padded with
47 zero bytes, or truncated to fit the native 24-bit data format of
48 the DSP56001.
49
50 DSP56K_SET_RX_WSIZE
51 sets the receive word size. Allowed values are in the range 1
52 to 4, and is the number of bytes that will be received at a time
53 from the DSP56001. These data quantities will either truncated,
54 or padded with a null byte ('\0') to fit the native 24-bit data
55 format of the DSP56001.
56
57 DSP56K_HOST_FLAGS
58 read and write the host flags. The host flags are four general-
59 purpose bits that can be read by both the hosting computer and
60 the DSP56001. Bits 0 and 1 can be written by the host, and bits
61 2 and 3 can be written by the DSP56001.
62
63 To access the host flags, the third ioctl(2) argument must be a
64 pointer to a struct dsp56k_host_flags. If bit 0 or 1 is set in
65 the dir member, the corresponding bit in out will be written to
66 the host flags. The state of all host flags will be returned in
67 the lower four bits of the status member.
68
69 DSP56K_HOST_CMD
70 sends a host command. Allowed values are in the range 0 to 31,
71 and is a user-defined command handled by the program running in
72 the DSP56001.
73
75 /dev/dsp56k
76
78 linux/include/asm-m68k/dsp56k.h, linux/drivers/char/dsp56k.c,
79 ⟨http://dsp56k.nocrew.org/⟩, DSP56000/DSP56001 Digital Signal Processor
80 User's Manual
81
83 This page is part of release 5.04 of the Linux man-pages project. A
84 description of the project, information about reporting bugs, and the
85 latest version of this page, can be found at
86 https://www.kernel.org/doc/man-pages/.
87
88
89
90Linux 2019-03-06 DSP56K(4)