Blame view

sound/firewire/lib.h 775 Bytes
b24413180   Greg Kroah-Hartman   License cleanup: ...
1
  /* SPDX-License-Identifier: GPL-2.0 */
31ef9134e   Clemens Ladisch   ALSA: add LaCie F...
2
3
4
5
6
  #ifndef SOUND_FIREWIRE_LIB_H_INCLUDED
  #define SOUND_FIREWIRE_LIB_H_INCLUDED
  
  #include <linux/firewire-constants.h>
  #include <linux/types.h>
585d7cba5   Takashi Sakamoto   ALSA: firewire-li...
7
8
  #include <linux/sched.h>
  #include <sound/rawmidi.h>
31ef9134e   Clemens Ladisch   ALSA: add LaCie F...
9
10
  
  struct fw_unit;
1b70485f1   Clemens Ladisch   ALSA: firewire: e...
11
12
13
  #define FW_GENERATION_MASK	0x00ff
  #define FW_FIXED_GENERATION	0x0100
  #define FW_QUIET		0x0200
31ef9134e   Clemens Ladisch   ALSA: add LaCie F...
14
  int snd_fw_transaction(struct fw_unit *unit, int tcode,
1b70485f1   Clemens Ladisch   ALSA: firewire: e...
15
16
  		       u64 offset, void *buffer, size_t length,
  		       unsigned int flags);
31ef9134e   Clemens Ladisch   ALSA: add LaCie F...
17
18
19
20
21
22
  
  /* returns true if retrying the transaction would not make sense */
  static inline bool rcode_is_permanent_error(int rcode)
  {
  	return rcode == RCODE_TYPE_ERROR || rcode == RCODE_ADDRESS_ERROR;
  }
923f92ebb   Takashi Sakamoto   ALSA: firewire-li...
23
24
  void snd_fw_schedule_registration(struct fw_unit *unit,
  				  struct delayed_work *dwork);
31ef9134e   Clemens Ladisch   ALSA: add LaCie F...
25
  #endif