David Brazdil | 0f672f6 | 2019-12-10 10:32:29 +0000 | [diff] [blame^] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 2 | /******************************************************************************* |
| 3 | |
| 4 | AudioScience HPI driver |
| 5 | Copyright (C) 1997-2011 AudioScience Inc. <support@audioscience.com> |
| 6 | |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 7 | |
| 8 | Linux HPI ioctl, and shared module init functions |
| 9 | *******************************************************************************/ |
| 10 | |
| 11 | int asihpi_adapter_probe(struct pci_dev *pci_dev, |
| 12 | const struct pci_device_id *pci_id); |
| 13 | void asihpi_adapter_remove(struct pci_dev *pci_dev); |
| 14 | void __init asihpi_init(void); |
| 15 | void __exit asihpi_exit(void); |
| 16 | |
| 17 | int asihpi_hpi_release(struct file *file); |
| 18 | |
| 19 | long asihpi_hpi_ioctl(struct file *file, unsigned int cmd, unsigned long arg); |
| 20 | |
| 21 | /* This is called from hpifunc.c functions, called by ALSA |
| 22 | * (or other kernel process) In this case there is no file descriptor |
| 23 | * available for the message cache code |
| 24 | */ |
| 25 | void hpi_send_recv(struct hpi_message *phm, struct hpi_response *phr); |
| 26 | |
| 27 | #define HOWNER_KERNEL ((void *)-1) |