#ifndef SOUND_FIREWIRE_LIB_H_INCLUDED#define SOUND_FIREWIRE_LIB_H_INCLUDED#include <linux/firewire-constants.h>#include <linux/types.h>structfw_unit;#define FW_GENERATION_MASK 0x00ff#define FW_FIXED_GENERATION 0x0100#define FW_QUIET 0x0200intsnd_fw_transaction(structfw_unit*unit,inttcode,u64offset,void*buffer,size_tlength,unsignedintflags);/* returns true if retrying the transaction would not make sense */staticinlineboolrcode_is_permanent_error(intrcode){returnrcode==RCODE_TYPE_ERROR||rcode==RCODE_ADDRESS_ERROR;}#endif