1 /*******************************************************************************
3 AudioScience HPI driver
4 Copyright (C) 1997-2010 AudioScience Inc. <support@audioscience.com>
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;
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.
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
19 Linux HPI ioctl, and shared module init functions
20 *******************************************************************************/
22 int __devinit
asihpi_adapter_probe(struct pci_dev
*pci_dev
,
23 const struct pci_device_id
*pci_id
);
24 void __devexit
asihpi_adapter_remove(struct pci_dev
*pci_dev
);
25 void __init
asihpi_init(void);
26 void __exit
asihpi_exit(void);
28 int asihpi_hpi_release(struct file
*file
);
30 long asihpi_hpi_ioctl(struct file
*file
, unsigned int cmd
, unsigned long arg
);
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
36 void hpi_send_recv(struct hpi_message
*phm
, struct hpi_response
*phr
);
38 #define HOWNER_KERNEL ((void *)-1)