hpioctl.h 1.5 KB

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