^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) * linux/include/asm-m68k/dsp56k.h - defines and declarations for
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) * DSP56k device driver
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) * Copyright (C) 1996,1997 Fredrik Noring, lars brinkhoff & Tomas Berndtsson
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) * This file is subject to the terms and conditions of the GNU General Public
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) * License. See the file COPYING in the main directory of this archive
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) * for more details.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) /* Used for uploading DSP binary code */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) struct dsp56k_upload {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) int len;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) char __user *bin;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) /* For the DSP host flags */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) struct dsp56k_host_flags {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) int dir; /* Bit field. 1 = write output bit, 0 = do nothing.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) * 0x0000 means reading only, 0x0011 means
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) * writing the bits stored in `out' on HF0 and HF1.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) * Note that HF2 and HF3 can only be read.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) int out; /* Bit field like above. */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) int status; /* Host register's current state is returned */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) /* ioctl command codes */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) #define DSP56K_UPLOAD 1 /* Upload DSP binary program */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) #define DSP56K_SET_TX_WSIZE 2 /* Host transmit word size (1-4) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) #define DSP56K_SET_RX_WSIZE 3 /* Host receive word size (1-4) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) #define DSP56K_HOST_FLAGS 4 /* Host flag registers */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) #define DSP56K_HOST_CMD 5 /* Trig Host Command (0-31) */