/*1*2* smapi.h -- declarations for SMAPI interface routines3*4*5* Written By: Mike Sullivan IBM Corporation6*7* Copyright (C) 1999 IBM Corporation8*9* This program is free software; you can redistribute it and/or modify10* it under the terms of the GNU General Public License as published by11* the Free Software Foundation; either version 2 of the License, or12* (at your option) any later version.13*14* This program is distributed in the hope that it will be useful,15* but WITHOUT ANY WARRANTY; without even the implied warranty of16* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the17* GNU General Public License for more details.18*19* NO WARRANTY20* THE PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR21* CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED INCLUDING, WITHOUT22* LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT,23* MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Each Recipient is24* solely responsible for determining the appropriateness of using and25* distributing the Program and assumes all risks associated with its26* exercise of rights under this Agreement, including but not limited to27* the risks and costs of program errors, damage to or loss of data,28* programs or equipment, and unavailability or interruption of operations.29*30* DISCLAIMER OF LIABILITY31* NEITHER RECIPIENT NOR ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR ANY32* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL33* DAMAGES (INCLUDING WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED AND34* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR35* TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE36* USE OR DISTRIBUTION OF THE PROGRAM OR THE EXERCISE OF ANY RIGHTS GRANTED37* HEREUNDER, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES38*39* You should have received a copy of the GNU General Public License40* along with this program; if not, write to the Free Software41* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA42*43*44* 10/23/2000 - Alpha Release45* First release to the public46*/4748#ifndef _LINUX_SMAPI_H49#define _LINUX_SMAPI_H5051typedef struct {52int bDSPPresent;53int bDSPEnabled;54int bModemEnabled;55int bMIDIEnabled;56int bSblstEnabled;57unsigned short usDspIRQ;58unsigned short usDspDMA;59unsigned short usDspBaseIO;60unsigned short usUartIRQ;61unsigned short usUartBaseIO;62unsigned short usMidiIRQ;63unsigned short usMidiBaseIO;64unsigned short usSndblstIRQ;65unsigned short usSndblstDMA;66unsigned short usSndblstBaseIO;67} SMAPI_DSP_SETTINGS;6869int smapi_init(void);70int smapi_query_DSP_cfg(SMAPI_DSP_SETTINGS * pSettings);71int smapi_set_DSP_cfg(void);72int smapi_set_DSP_power_state(bool bOn);737475#endif767778