Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-only */
0002 /*******************************************************************************
0003 
0004     AudioScience HPI driver
0005     Copyright (C) 1997-2011  AudioScience Inc. <support@audioscience.com>
0006 
0007 
0008 Linux HPI ioctl, and shared module init functions
0009 *******************************************************************************/
0010 
0011 int asihpi_adapter_probe(struct pci_dev *pci_dev,
0012              const struct pci_device_id *pci_id);
0013 void asihpi_adapter_remove(struct pci_dev *pci_dev);
0014 void __init asihpi_init(void);
0015 void __exit asihpi_exit(void);
0016 
0017 int asihpi_hpi_release(struct file *file);
0018 
0019 long asihpi_hpi_ioctl(struct file *file, unsigned int cmd, unsigned long arg);
0020 
0021 /* This is called from hpifunc.c functions, called by ALSA
0022  * (or other kernel process) In this case there is no file descriptor
0023  * available for the message cache code
0024  */
0025 void hpi_send_recv(struct hpi_message *phm, struct hpi_response *phr);
0026 
0027 #define HOWNER_KERNEL ((void *)-1)