fcp.h 1.0 KB

1234567891011121314151617181920212223242526272829303132333435
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef SOUND_FIREWIRE_FCP_H_INCLUDED
  3. #define SOUND_FIREWIRE_FCP_H_INCLUDED
  4. #define AVC_PLUG_INFO_BUF_BYTES 4
  5. struct fw_unit;
  6. /*
  7. * AV/C Digital Interface Command Set General Specification 4.2
  8. * (Sep 2004, 1394TA)
  9. */
  10. enum avc_general_plug_dir {
  11. AVC_GENERAL_PLUG_DIR_IN = 0,
  12. AVC_GENERAL_PLUG_DIR_OUT = 1,
  13. AVC_GENERAL_PLUG_DIR_COUNT
  14. };
  15. int avc_general_set_sig_fmt(struct fw_unit *unit, unsigned int rate,
  16. enum avc_general_plug_dir dir,
  17. unsigned short plug);
  18. int avc_general_get_sig_fmt(struct fw_unit *unit, unsigned int *rate,
  19. enum avc_general_plug_dir dir,
  20. unsigned short plug);
  21. int avc_general_get_plug_info(struct fw_unit *unit, unsigned int subunit_type,
  22. unsigned int subunit_id, unsigned int subfunction,
  23. u8 info[AVC_PLUG_INFO_BUF_BYTES]);
  24. int fcp_avc_transaction(struct fw_unit *unit,
  25. const void *command, unsigned int command_size,
  26. void *response, unsigned int response_size,
  27. unsigned int response_match_bytes);
  28. void fcp_bus_reset(struct fw_unit *unit);
  29. #endif