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