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