Orange Pi5 kernel

Deprecated Linux kernel 5.10.110 for OrangePi 5/5B/5+ boards

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