lib.h 514 B

1234567891011121314151617181920
  1. #ifndef SOUND_FIREWIRE_LIB_H_INCLUDED
  2. #define SOUND_FIREWIRE_LIB_H_INCLUDED
  3. #include <linux/firewire-constants.h>
  4. #include <linux/types.h>
  5. struct fw_unit;
  6. int snd_fw_transaction(struct fw_unit *unit, int tcode,
  7. u64 offset, void *buffer, size_t length);
  8. const char *rcode_string(unsigned int rcode);
  9. /* returns true if retrying the transaction would not make sense */
  10. static inline bool rcode_is_permanent_error(int rcode)
  11. {
  12. return rcode == RCODE_TYPE_ERROR || rcode == RCODE_ADDRESS_ERROR;
  13. }
  14. #endif