xref: /openbmc/linux/sound/pci/asihpi/hpioctl.h (revision 07d7fe7b)
107d7fe7bSThomas Gleixner /* SPDX-License-Identifier: GPL-2.0-only */
2719f82d3SEliot Blennerhassett /*******************************************************************************
3719f82d3SEliot Blennerhassett 
4719f82d3SEliot Blennerhassett     AudioScience HPI driver
540818b62SEliot Blennerhassett     Copyright (C) 1997-2011  AudioScience Inc. <support@audioscience.com>
6719f82d3SEliot Blennerhassett 
7719f82d3SEliot Blennerhassett 
8719f82d3SEliot Blennerhassett Linux HPI ioctl, and shared module init functions
9719f82d3SEliot Blennerhassett *******************************************************************************/
10719f82d3SEliot Blennerhassett 
11e23e7a14SBill Pemberton int asihpi_adapter_probe(struct pci_dev *pci_dev,
12719f82d3SEliot Blennerhassett 			 const struct pci_device_id *pci_id);
13e23e7a14SBill Pemberton void asihpi_adapter_remove(struct pci_dev *pci_dev);
14719f82d3SEliot Blennerhassett void __init asihpi_init(void);
15719f82d3SEliot Blennerhassett void __exit asihpi_exit(void);
16719f82d3SEliot Blennerhassett 
17719f82d3SEliot Blennerhassett int asihpi_hpi_release(struct file *file);
18719f82d3SEliot Blennerhassett 
19719f82d3SEliot Blennerhassett long asihpi_hpi_ioctl(struct file *file, unsigned int cmd, unsigned long arg);
20719f82d3SEliot Blennerhassett 
21719f82d3SEliot Blennerhassett /* This is called from hpifunc.c functions, called by ALSA
22719f82d3SEliot Blennerhassett  * (or other kernel process) In this case there is no file descriptor
23719f82d3SEliot Blennerhassett  * available for the message cache code
24719f82d3SEliot Blennerhassett  */
25719f82d3SEliot Blennerhassett void hpi_send_recv(struct hpi_message *phm, struct hpi_response *phr);
26719f82d3SEliot Blennerhassett 
27719f82d3SEliot Blennerhassett #define HOWNER_KERNEL ((void *)-1)
28