fcp.h 1.0 KB

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