Back to home page

OSCL-LXR

 
 

    


0001 /*
0002 *
0003 * smapi.h -- declarations for SMAPI interface routines
0004 *
0005 *
0006 * Written By: Mike Sullivan IBM Corporation
0007 *
0008 * Copyright (C) 1999 IBM Corporation
0009 *
0010 * This program is free software; you can redistribute it and/or modify
0011 * it under the terms of the GNU General Public License as published by
0012 * the Free Software Foundation; either version 2 of the License, or
0013 * (at your option) any later version.
0014 *
0015 * This program is distributed in the hope that it will be useful,
0016 * but WITHOUT ANY WARRANTY; without even the implied warranty of
0017 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
0018 * GNU General Public License for more details.
0019 *
0020 * NO WARRANTY
0021 * THE PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR
0022 * CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED INCLUDING, WITHOUT
0023 * LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT,
0024 * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Each Recipient is
0025 * solely responsible for determining the appropriateness of using and
0026 * distributing the Program and assumes all risks associated with its
0027 * exercise of rights under this Agreement, including but not limited to
0028 * the risks and costs of program errors, damage to or loss of data,
0029 * programs or equipment, and unavailability or interruption of operations.
0030 *
0031 * DISCLAIMER OF LIABILITY
0032 * NEITHER RECIPIENT NOR ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR ANY
0033 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
0034 * DAMAGES (INCLUDING WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED AND
0035 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
0036 * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
0037 * USE OR DISTRIBUTION OF THE PROGRAM OR THE EXERCISE OF ANY RIGHTS GRANTED
0038 * HEREUNDER, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES
0039 *
0040 * You should have received a copy of the GNU General Public License
0041 * along with this program; if not, write to the Free Software
0042 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
0043 *
0044 *
0045 * 10/23/2000 - Alpha Release
0046 *   First release to the public
0047 */
0048 
0049 #ifndef _LINUX_SMAPI_H
0050 #define _LINUX_SMAPI_H
0051 
0052 typedef struct {
0053     int bDSPPresent;
0054     int bDSPEnabled;
0055     int bModemEnabled;
0056     int bMIDIEnabled;
0057     int bSblstEnabled;
0058     unsigned short usDspIRQ;
0059     unsigned short usDspDMA;
0060     unsigned short usDspBaseIO;
0061     unsigned short usUartIRQ;
0062     unsigned short usUartBaseIO;
0063     unsigned short usMidiIRQ;
0064     unsigned short usMidiBaseIO;
0065     unsigned short usSndblstIRQ;
0066     unsigned short usSndblstDMA;
0067     unsigned short usSndblstBaseIO;
0068 } SMAPI_DSP_SETTINGS;
0069 
0070 int smapi_init(void);
0071 int smapi_query_DSP_cfg(SMAPI_DSP_SETTINGS * pSettings);
0072 int smapi_set_DSP_cfg(void);
0073 int smapi_set_DSP_power_state(bool bOn);
0074 
0075 
0076 #endif