#ifndef _FIREWIRE_PACKET_HEADER_DEFINITIONS_H
#define _FIREWIRE_PACKET_HEADER_DEFINITIONS_H
#include <linux/types.h>
#define ASYNC_HEADER_QUADLET_COUNT …
#define ASYNC_HEADER_Q0_DESTINATION_SHIFT …
#define ASYNC_HEADER_Q0_DESTINATION_MASK …
#define ASYNC_HEADER_Q0_TLABEL_SHIFT …
#define ASYNC_HEADER_Q0_TLABEL_MASK …
#define ASYNC_HEADER_Q0_RETRY_SHIFT …
#define ASYNC_HEADER_Q0_RETRY_MASK …
#define ASYNC_HEADER_Q0_TCODE_SHIFT …
#define ASYNC_HEADER_Q0_TCODE_MASK …
#define ASYNC_HEADER_Q0_PRIORITY_SHIFT …
#define ASYNC_HEADER_Q0_PRIORITY_MASK …
#define ASYNC_HEADER_Q1_SOURCE_SHIFT …
#define ASYNC_HEADER_Q1_SOURCE_MASK …
#define ASYNC_HEADER_Q1_RCODE_SHIFT …
#define ASYNC_HEADER_Q1_RCODE_MASK …
#define ASYNC_HEADER_Q1_RCODE_SHIFT …
#define ASYNC_HEADER_Q1_RCODE_MASK …
#define ASYNC_HEADER_Q1_OFFSET_HIGH_SHIFT …
#define ASYNC_HEADER_Q1_OFFSET_HIGH_MASK …
#define ASYNC_HEADER_Q3_DATA_LENGTH_SHIFT …
#define ASYNC_HEADER_Q3_DATA_LENGTH_MASK …
#define ASYNC_HEADER_Q3_EXTENDED_TCODE_SHIFT …
#define ASYNC_HEADER_Q3_EXTENDED_TCODE_MASK …
static inline unsigned int async_header_get_destination(const u32 header[ASYNC_HEADER_QUADLET_COUNT])
{ … }
static inline unsigned int async_header_get_tlabel(const u32 header[ASYNC_HEADER_QUADLET_COUNT])
{ … }
static inline unsigned int async_header_get_retry(const u32 header[ASYNC_HEADER_QUADLET_COUNT])
{ … }
static inline unsigned int async_header_get_tcode(const u32 header[ASYNC_HEADER_QUADLET_COUNT])
{ … }
static inline unsigned int async_header_get_priority(const u32 header[ASYNC_HEADER_QUADLET_COUNT])
{ … }
static inline unsigned int async_header_get_source(const u32 header[ASYNC_HEADER_QUADLET_COUNT])
{ … }
static inline unsigned int async_header_get_rcode(const u32 header[ASYNC_HEADER_QUADLET_COUNT])
{ … }
static inline u64 async_header_get_offset(const u32 header[ASYNC_HEADER_QUADLET_COUNT])
{ … }
static inline u32 async_header_get_quadlet_data(const u32 header[ASYNC_HEADER_QUADLET_COUNT])
{ … }
static inline unsigned int async_header_get_data_length(const u32 header[ASYNC_HEADER_QUADLET_COUNT])
{ … }
static inline unsigned int async_header_get_extended_tcode(const u32 header[ASYNC_HEADER_QUADLET_COUNT])
{ … }
static inline void async_header_set_destination(u32 header[ASYNC_HEADER_QUADLET_COUNT],
unsigned int destination)
{ … }
static inline void async_header_set_tlabel(u32 header[ASYNC_HEADER_QUADLET_COUNT],
unsigned int tlabel)
{ … }
static inline void async_header_set_retry(u32 header[ASYNC_HEADER_QUADLET_COUNT],
unsigned int retry)
{ … }
static inline void async_header_set_tcode(u32 header[ASYNC_HEADER_QUADLET_COUNT],
unsigned int tcode)
{ … }
static inline void async_header_set_priority(u32 header[ASYNC_HEADER_QUADLET_COUNT],
unsigned int priority)
{ … }
static inline void async_header_set_source(u32 header[ASYNC_HEADER_QUADLET_COUNT],
unsigned int source)
{ … }
static inline void async_header_set_rcode(u32 header[ASYNC_HEADER_QUADLET_COUNT],
unsigned int rcode)
{ … }
static inline void async_header_set_offset(u32 header[ASYNC_HEADER_QUADLET_COUNT], u64 offset)
{ … }
static inline void async_header_set_quadlet_data(u32 header[ASYNC_HEADER_QUADLET_COUNT], u32 quadlet_data)
{ … }
static inline void async_header_set_data_length(u32 header[ASYNC_HEADER_QUADLET_COUNT],
unsigned int data_length)
{ … }
static inline void async_header_set_extended_tcode(u32 header[ASYNC_HEADER_QUADLET_COUNT],
unsigned int extended_tcode)
{ … }
#define ISOC_HEADER_DATA_LENGTH_SHIFT …
#define ISOC_HEADER_DATA_LENGTH_MASK …
#define ISOC_HEADER_TAG_SHIFT …
#define ISOC_HEADER_TAG_MASK …
#define ISOC_HEADER_CHANNEL_SHIFT …
#define ISOC_HEADER_CHANNEL_MASK …
#define ISOC_HEADER_TCODE_SHIFT …
#define ISOC_HEADER_TCODE_MASK …
#define ISOC_HEADER_SY_SHIFT …
#define ISOC_HEADER_SY_MASK …
static inline unsigned int isoc_header_get_data_length(u32 header)
{ … }
static inline unsigned int isoc_header_get_tag(u32 header)
{ … }
static inline unsigned int isoc_header_get_channel(u32 header)
{ … }
static inline unsigned int isoc_header_get_tcode(u32 header)
{ … }
static inline unsigned int isoc_header_get_sy(u32 header)
{ … }
static inline void isoc_header_set_data_length(u32 *header, unsigned int data_length)
{ … }
static inline void isoc_header_set_tag(u32 *header, unsigned int tag)
{ … }
static inline void isoc_header_set_channel(u32 *header, unsigned int channel)
{ … }
static inline void isoc_header_set_tcode(u32 *header, unsigned int tcode)
{ … }
static inline void isoc_header_set_sy(u32 *header, unsigned int sy)
{ … }
#endif