/*1*2* mwavepub.h -- PUBLIC declarations for the mwave driver3* and applications using it4*5*6* Written By: Mike Sullivan IBM Corporation7*8* Copyright (C) 1999 IBM Corporation9*10* This program is free software; you can redistribute it and/or modify11* it under the terms of the GNU General Public License as published by12* the Free Software Foundation; either version 2 of the License, or13* (at your option) any later version.14*15* This program is distributed in the hope that it will be useful,16* but WITHOUT ANY WARRANTY; without even the implied warranty of17* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the18* GNU General Public License for more details.19*20* NO WARRANTY21* THE PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR22* CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED INCLUDING, WITHOUT23* LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT,24* MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Each Recipient is25* solely responsible for determining the appropriateness of using and26* distributing the Program and assumes all risks associated with its27* exercise of rights under this Agreement, including but not limited to28* the risks and costs of program errors, damage to or loss of data,29* programs or equipment, and unavailability or interruption of operations.30*31* DISCLAIMER OF LIABILITY32* NEITHER RECIPIENT NOR ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR ANY33* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL34* DAMAGES (INCLUDING WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED AND35* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR36* TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE37* USE OR DISTRIBUTION OF THE PROGRAM OR THE EXERCISE OF ANY RIGHTS GRANTED38* HEREUNDER, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES39*40* You should have received a copy of the GNU General Public License41* along with this program; if not, write to the Free Software42* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA43*44*45* 10/23/2000 - Alpha Release46* First release to the public47*/4849#ifndef _LINUX_MWAVEPUB_H50#define _LINUX_MWAVEPUB_H5152#include <linux/miscdevice.h>535455typedef struct _MW_ABILITIES {56unsigned long instr_per_sec;57unsigned long data_size;58unsigned long inst_size;59unsigned long bus_dma_bw;60unsigned short uart_enable;61short component_count;62unsigned long component_list[7];63char mwave_os_name[16];64char bios_task_name[16];65} MW_ABILITIES, *pMW_ABILITIES;666768typedef struct _MW_READWRITE {69unsigned short usDspAddress; /* The dsp address */70unsigned long ulDataLength; /* The size in bytes of the data or user buffer */71void __user *pBuf; /* Input:variable sized buffer */72} MW_READWRITE, *pMW_READWRITE;7374#define IOCTL_MW_RESET _IO(MWAVE_MINOR,1)75#define IOCTL_MW_RUN _IO(MWAVE_MINOR,2)76#define IOCTL_MW_DSP_ABILITIES _IOR(MWAVE_MINOR,3,MW_ABILITIES)77#define IOCTL_MW_READ_DATA _IOR(MWAVE_MINOR,4,MW_READWRITE)78#define IOCTL_MW_READCLEAR_DATA _IOR(MWAVE_MINOR,5,MW_READWRITE)79#define IOCTL_MW_READ_INST _IOR(MWAVE_MINOR,6,MW_READWRITE)80#define IOCTL_MW_WRITE_DATA _IOW(MWAVE_MINOR,7,MW_READWRITE)81#define IOCTL_MW_WRITE_INST _IOW(MWAVE_MINOR,8,MW_READWRITE)82#define IOCTL_MW_REGISTER_IPC _IOW(MWAVE_MINOR,9,int)83#define IOCTL_MW_UNREGISTER_IPC _IOW(MWAVE_MINOR,10,int)84#define IOCTL_MW_GET_IPC _IOW(MWAVE_MINOR,11,int)85#define IOCTL_MW_TRACE _IOR(MWAVE_MINOR,12,MW_READWRITE)868788#endif899091