hpioctl.h 973 B

123456789101112131415161718192021222324252627
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*******************************************************************************
  3. AudioScience HPI driver
  4. Copyright (C) 1997-2011 AudioScience Inc. <[email protected]>
  5. Linux HPI ioctl, and shared module init functions
  6. *******************************************************************************/
  7. int asihpi_adapter_probe(struct pci_dev *pci_dev,
  8. const struct pci_device_id *pci_id);
  9. void asihpi_adapter_remove(struct pci_dev *pci_dev);
  10. void __init asihpi_init(void);
  11. void __exit asihpi_exit(void);
  12. int asihpi_hpi_release(struct file *file);
  13. long asihpi_hpi_ioctl(struct file *file, unsigned int cmd, unsigned long arg);
  14. /* This is called from hpifunc.c functions, called by ALSA
  15. * (or other kernel process) In this case there is no file descriptor
  16. * available for the message cache code
  17. */
  18. void hpi_send_recv(struct hpi_message *phm, struct hpi_response *phr);
  19. #define HOWNER_KERNEL ((void *)-1)