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) * mwavepub.h -- PUBLIC declarations for the mwave driver
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  4) *               and applications using it
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  5) *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  6) *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  7) * Written By: Mike Sullivan IBM Corporation
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  8) *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  9) * Copyright (C) 1999 IBM Corporation
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) * This program is free software; you can redistribute it and/or modify
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) * it under the terms of the GNU General Public License as published by
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) * the Free Software Foundation; either version 2 of the License, or
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) * (at your option) any later version.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) * This program is distributed in the hope that it will be useful,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) * but WITHOUT ANY WARRANTY; without even the implied warranty of
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) * GNU General Public License for more details.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) * NO WARRANTY
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) * THE PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) * CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED INCLUDING, WITHOUT
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) * LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Each Recipient is
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) * solely responsible for determining the appropriateness of using and
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) * distributing the Program and assumes all risks associated with its
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) * exercise of rights under this Agreement, including but not limited to
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) * the risks and costs of program errors, damage to or loss of data,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) * programs or equipment, and unavailability or interruption of operations.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) * DISCLAIMER OF LIABILITY
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) * NEITHER RECIPIENT NOR ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR ANY
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) * DAMAGES (INCLUDING WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED AND
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) * USE OR DISTRIBUTION OF THE PROGRAM OR THE EXERCISE OF ANY RIGHTS GRANTED
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) * HEREUNDER, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41) * You should have received a copy of the GNU General Public License
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42) * along with this program; if not, write to the Free Software
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43) * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44) *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 45) *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 46) * 10/23/2000 - Alpha Release
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 47) *	First release to the public
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 48) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 49) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 50) #ifndef _LINUX_MWAVEPUB_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 51) #define _LINUX_MWAVEPUB_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 52) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 53) #include <linux/miscdevice.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 54) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 55) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 56) typedef struct _MW_ABILITIES {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 57) 	unsigned long instr_per_sec;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 58) 	unsigned long data_size;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 59) 	unsigned long inst_size;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 60) 	unsigned long bus_dma_bw;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 61) 	unsigned short uart_enable;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 62) 	short component_count;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 63) 	unsigned long component_list[7];
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 64) 	char mwave_os_name[16];
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 65) 	char bios_task_name[16];
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 66) } MW_ABILITIES, *pMW_ABILITIES;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 67) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 68) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 69) typedef struct _MW_READWRITE {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 70) 	unsigned short usDspAddress;	/* The dsp address */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 71) 	unsigned long ulDataLength;	/* The size in bytes of the data or user buffer */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 72) 	void __user *pBuf;		/* Input:variable sized buffer */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 73) } MW_READWRITE, *pMW_READWRITE;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 74) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 75) #define IOCTL_MW_RESET           _IO(MWAVE_MINOR,1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 76) #define IOCTL_MW_RUN             _IO(MWAVE_MINOR,2)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 77) #define IOCTL_MW_DSP_ABILITIES   _IOR(MWAVE_MINOR,3,MW_ABILITIES)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 78) #define IOCTL_MW_READ_DATA       _IOR(MWAVE_MINOR,4,MW_READWRITE)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 79) #define IOCTL_MW_READCLEAR_DATA  _IOR(MWAVE_MINOR,5,MW_READWRITE)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 80) #define IOCTL_MW_READ_INST       _IOR(MWAVE_MINOR,6,MW_READWRITE)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 81) #define IOCTL_MW_WRITE_DATA      _IOW(MWAVE_MINOR,7,MW_READWRITE)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 82) #define IOCTL_MW_WRITE_INST      _IOW(MWAVE_MINOR,8,MW_READWRITE)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 83) #define IOCTL_MW_REGISTER_IPC    _IOW(MWAVE_MINOR,9,int)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 84) #define IOCTL_MW_UNREGISTER_IPC  _IOW(MWAVE_MINOR,10,int)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 85) #define IOCTL_MW_GET_IPC         _IOW(MWAVE_MINOR,11,int)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 86) #define IOCTL_MW_TRACE           _IOR(MWAVE_MINOR,12,MW_READWRITE)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 87) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 88) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 89) #endif