lib.h 468 B

123456789101112131415161718
  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. /* returns true if retrying the transaction would not make sense */
  9. static inline bool rcode_is_permanent_error(int rcode)
  10. {
  11. return rcode == RCODE_TYPE_ERROR || rcode == RCODE_ADDRESS_ERROR;
  12. }
  13. #endif