xref: /OK3568_Linux_fs/kernel/sound/pci/asihpi/hpioctl.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0-only */
2*4882a593Smuzhiyun /*******************************************************************************
3*4882a593Smuzhiyun 
4*4882a593Smuzhiyun     AudioScience HPI driver
5*4882a593Smuzhiyun     Copyright (C) 1997-2011  AudioScience Inc. <support@audioscience.com>
6*4882a593Smuzhiyun 
7*4882a593Smuzhiyun 
8*4882a593Smuzhiyun Linux HPI ioctl, and shared module init functions
9*4882a593Smuzhiyun *******************************************************************************/
10*4882a593Smuzhiyun 
11*4882a593Smuzhiyun int asihpi_adapter_probe(struct pci_dev *pci_dev,
12*4882a593Smuzhiyun 			 const struct pci_device_id *pci_id);
13*4882a593Smuzhiyun void asihpi_adapter_remove(struct pci_dev *pci_dev);
14*4882a593Smuzhiyun void __init asihpi_init(void);
15*4882a593Smuzhiyun void __exit asihpi_exit(void);
16*4882a593Smuzhiyun 
17*4882a593Smuzhiyun int asihpi_hpi_release(struct file *file);
18*4882a593Smuzhiyun 
19*4882a593Smuzhiyun long asihpi_hpi_ioctl(struct file *file, unsigned int cmd, unsigned long arg);
20*4882a593Smuzhiyun 
21*4882a593Smuzhiyun /* This is called from hpifunc.c functions, called by ALSA
22*4882a593Smuzhiyun  * (or other kernel process) In this case there is no file descriptor
23*4882a593Smuzhiyun  * available for the message cache code
24*4882a593Smuzhiyun  */
25*4882a593Smuzhiyun void hpi_send_recv(struct hpi_message *phm, struct hpi_response *phr);
26*4882a593Smuzhiyun 
27*4882a593Smuzhiyun #define HOWNER_KERNEL ((void *)-1)
28