1/******************************************************************************* 2 3 AudioScience HPI driver 4 Copyright (C) 1997-2011 AudioScience Inc. <support@audioscience.com> 5 6 This program is free software; you can redistribute it and/or modify 7 it under the terms of version 2 of the GNU General Public License as 8 published by the Free Software Foundation; 9 10 This program is distributed in the hope that it will be useful, 11 but WITHOUT ANY WARRANTY; without even the implied warranty of 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 GNU General Public License for more details. 14 15 You should have received a copy of the GNU General Public License 16 along with this program; if not, write to the Free Software 17 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 18 19Linux HPI ioctl, and shared module init functions 20*******************************************************************************/ 21 22int asihpi_adapter_probe(struct pci_dev *pci_dev, 23 const struct pci_device_id *pci_id); 24void asihpi_adapter_remove(struct pci_dev *pci_dev); 25void __init asihpi_init(void); 26void __exit asihpi_exit(void); 27 28int asihpi_hpi_release(struct file *file); 29 30long asihpi_hpi_ioctl(struct file *file, unsigned int cmd, unsigned long arg); 31 32/* This is called from hpifunc.c functions, called by ALSA 33 * (or other kernel process) In this case there is no file descriptor 34 * available for the message cache code 35 */ 36void hpi_send_recv(struct hpi_message *phm, struct hpi_response *phr); 37 38#define HOWNER_KERNEL ((void *)-1) 39