xref: /openbmc/linux/drivers/char/mwave/smapi.h (revision 0cce284537fb42d9c28b9b31038ffc9b464555f5)
11da177e4SLinus Torvalds /*
21da177e4SLinus Torvalds *
31da177e4SLinus Torvalds * smapi.h -- declarations for SMAPI interface routines
41da177e4SLinus Torvalds *
51da177e4SLinus Torvalds *
61da177e4SLinus Torvalds * Written By: Mike Sullivan IBM Corporation
71da177e4SLinus Torvalds *
81da177e4SLinus Torvalds * Copyright (C) 1999 IBM Corporation
91da177e4SLinus Torvalds *
101da177e4SLinus Torvalds * This program is free software; you can redistribute it and/or modify
111da177e4SLinus Torvalds * it under the terms of the GNU General Public License as published by
121da177e4SLinus Torvalds * the Free Software Foundation; either version 2 of the License, or
131da177e4SLinus Torvalds * (at your option) any later version.
141da177e4SLinus Torvalds *
151da177e4SLinus Torvalds * This program is distributed in the hope that it will be useful,
161da177e4SLinus Torvalds * but WITHOUT ANY WARRANTY; without even the implied warranty of
171da177e4SLinus Torvalds * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
181da177e4SLinus Torvalds * GNU General Public License for more details.
191da177e4SLinus Torvalds *
201da177e4SLinus Torvalds * NO WARRANTY
211da177e4SLinus Torvalds * THE PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR
221da177e4SLinus Torvalds * CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED INCLUDING, WITHOUT
231da177e4SLinus Torvalds * LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT,
241da177e4SLinus Torvalds * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Each Recipient is
251da177e4SLinus Torvalds * solely responsible for determining the appropriateness of using and
261da177e4SLinus Torvalds * distributing the Program and assumes all risks associated with its
271da177e4SLinus Torvalds * exercise of rights under this Agreement, including but not limited to
281da177e4SLinus Torvalds * the risks and costs of program errors, damage to or loss of data,
291da177e4SLinus Torvalds * programs or equipment, and unavailability or interruption of operations.
301da177e4SLinus Torvalds *
311da177e4SLinus Torvalds * DISCLAIMER OF LIABILITY
321da177e4SLinus Torvalds * NEITHER RECIPIENT NOR ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR ANY
331da177e4SLinus Torvalds * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
341da177e4SLinus Torvalds * DAMAGES (INCLUDING WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED AND
351da177e4SLinus Torvalds * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
361da177e4SLinus Torvalds * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
371da177e4SLinus Torvalds * USE OR DISTRIBUTION OF THE PROGRAM OR THE EXERCISE OF ANY RIGHTS GRANTED
381da177e4SLinus Torvalds * HEREUNDER, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES
391da177e4SLinus Torvalds *
401da177e4SLinus Torvalds * You should have received a copy of the GNU General Public License
411da177e4SLinus Torvalds * along with this program; if not, write to the Free Software
421da177e4SLinus Torvalds * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
431da177e4SLinus Torvalds *
441da177e4SLinus Torvalds *
451da177e4SLinus Torvalds * 10/23/2000 - Alpha Release
461da177e4SLinus Torvalds *	First release to the public
471da177e4SLinus Torvalds */
481da177e4SLinus Torvalds 
491da177e4SLinus Torvalds #ifndef _LINUX_SMAPI_H
501da177e4SLinus Torvalds #define _LINUX_SMAPI_H
511da177e4SLinus Torvalds 
521da177e4SLinus Torvalds typedef struct {
531da177e4SLinus Torvalds 	int bDSPPresent;
541da177e4SLinus Torvalds 	int bDSPEnabled;
551da177e4SLinus Torvalds 	int bModemEnabled;
561da177e4SLinus Torvalds 	int bMIDIEnabled;
571da177e4SLinus Torvalds 	int bSblstEnabled;
581da177e4SLinus Torvalds 	unsigned short usDspIRQ;
591da177e4SLinus Torvalds 	unsigned short usDspDMA;
601da177e4SLinus Torvalds 	unsigned short usDspBaseIO;
611da177e4SLinus Torvalds 	unsigned short usUartIRQ;
621da177e4SLinus Torvalds 	unsigned short usUartBaseIO;
631da177e4SLinus Torvalds 	unsigned short usMidiIRQ;
641da177e4SLinus Torvalds 	unsigned short usMidiBaseIO;
651da177e4SLinus Torvalds 	unsigned short usSndblstIRQ;
661da177e4SLinus Torvalds 	unsigned short usSndblstDMA;
671da177e4SLinus Torvalds 	unsigned short usSndblstBaseIO;
681da177e4SLinus Torvalds } SMAPI_DSP_SETTINGS;
691da177e4SLinus Torvalds 
701da177e4SLinus Torvalds int smapi_init(void);
711da177e4SLinus Torvalds int smapi_query_DSP_cfg(SMAPI_DSP_SETTINGS * pSettings);
721da177e4SLinus Torvalds int smapi_set_DSP_cfg(void);
73*26ec99b1SArnd Bergmann int smapi_set_DSP_power_state(bool bOn);
741da177e4SLinus Torvalds 
751da177e4SLinus Torvalds 
761da177e4SLinus Torvalds #endif
77