1*4882a593Smuzhiyun /* 2*4882a593Smuzhiyun * 3*4882a593Smuzhiyun * smapi.h -- declarations for SMAPI interface routines 4*4882a593Smuzhiyun * 5*4882a593Smuzhiyun * 6*4882a593Smuzhiyun * Written By: Mike Sullivan IBM Corporation 7*4882a593Smuzhiyun * 8*4882a593Smuzhiyun * Copyright (C) 1999 IBM Corporation 9*4882a593Smuzhiyun * 10*4882a593Smuzhiyun * This program is free software; you can redistribute it and/or modify 11*4882a593Smuzhiyun * it under the terms of the GNU General Public License as published by 12*4882a593Smuzhiyun * the Free Software Foundation; either version 2 of the License, or 13*4882a593Smuzhiyun * (at your option) any later version. 14*4882a593Smuzhiyun * 15*4882a593Smuzhiyun * This program is distributed in the hope that it will be useful, 16*4882a593Smuzhiyun * but WITHOUT ANY WARRANTY; without even the implied warranty of 17*4882a593Smuzhiyun * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18*4882a593Smuzhiyun * GNU General Public License for more details. 19*4882a593Smuzhiyun * 20*4882a593Smuzhiyun * NO WARRANTY 21*4882a593Smuzhiyun * THE PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR 22*4882a593Smuzhiyun * CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED INCLUDING, WITHOUT 23*4882a593Smuzhiyun * LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, 24*4882a593Smuzhiyun * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Each Recipient is 25*4882a593Smuzhiyun * solely responsible for determining the appropriateness of using and 26*4882a593Smuzhiyun * distributing the Program and assumes all risks associated with its 27*4882a593Smuzhiyun * exercise of rights under this Agreement, including but not limited to 28*4882a593Smuzhiyun * the risks and costs of program errors, damage to or loss of data, 29*4882a593Smuzhiyun * programs or equipment, and unavailability or interruption of operations. 30*4882a593Smuzhiyun * 31*4882a593Smuzhiyun * DISCLAIMER OF LIABILITY 32*4882a593Smuzhiyun * NEITHER RECIPIENT NOR ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR ANY 33*4882a593Smuzhiyun * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 34*4882a593Smuzhiyun * DAMAGES (INCLUDING WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED AND 35*4882a593Smuzhiyun * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR 36*4882a593Smuzhiyun * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE 37*4882a593Smuzhiyun * USE OR DISTRIBUTION OF THE PROGRAM OR THE EXERCISE OF ANY RIGHTS GRANTED 38*4882a593Smuzhiyun * HEREUNDER, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES 39*4882a593Smuzhiyun * 40*4882a593Smuzhiyun * You should have received a copy of the GNU General Public License 41*4882a593Smuzhiyun * along with this program; if not, write to the Free Software 42*4882a593Smuzhiyun * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 43*4882a593Smuzhiyun * 44*4882a593Smuzhiyun * 45*4882a593Smuzhiyun * 10/23/2000 - Alpha Release 46*4882a593Smuzhiyun * First release to the public 47*4882a593Smuzhiyun */ 48*4882a593Smuzhiyun 49*4882a593Smuzhiyun #ifndef _LINUX_SMAPI_H 50*4882a593Smuzhiyun #define _LINUX_SMAPI_H 51*4882a593Smuzhiyun 52*4882a593Smuzhiyun typedef struct { 53*4882a593Smuzhiyun int bDSPPresent; 54*4882a593Smuzhiyun int bDSPEnabled; 55*4882a593Smuzhiyun int bModemEnabled; 56*4882a593Smuzhiyun int bMIDIEnabled; 57*4882a593Smuzhiyun int bSblstEnabled; 58*4882a593Smuzhiyun unsigned short usDspIRQ; 59*4882a593Smuzhiyun unsigned short usDspDMA; 60*4882a593Smuzhiyun unsigned short usDspBaseIO; 61*4882a593Smuzhiyun unsigned short usUartIRQ; 62*4882a593Smuzhiyun unsigned short usUartBaseIO; 63*4882a593Smuzhiyun unsigned short usMidiIRQ; 64*4882a593Smuzhiyun unsigned short usMidiBaseIO; 65*4882a593Smuzhiyun unsigned short usSndblstIRQ; 66*4882a593Smuzhiyun unsigned short usSndblstDMA; 67*4882a593Smuzhiyun unsigned short usSndblstBaseIO; 68*4882a593Smuzhiyun } SMAPI_DSP_SETTINGS; 69*4882a593Smuzhiyun 70*4882a593Smuzhiyun int smapi_init(void); 71*4882a593Smuzhiyun int smapi_query_DSP_cfg(SMAPI_DSP_SETTINGS * pSettings); 72*4882a593Smuzhiyun int smapi_set_DSP_cfg(void); 73*4882a593Smuzhiyun int smapi_set_DSP_power_state(bool bOn); 74*4882a593Smuzhiyun 75*4882a593Smuzhiyun 76*4882a593Smuzhiyun #endif 77