#include <linux/device.h>
#include <linux/firewire.h>
#include <linux/firewire-constants.h>
#include <linux/module.h>
#include <linux/sched.h>
#include "lib.h"
#include "iso-resources.h"
#include "cmp.h"
#define MPR_SPEED_MASK …
#define MPR_SPEED_SHIFT …
#define MPR_XSPEED_MASK …
#define MPR_XSPEED_SHIFT …
#define MPR_PLUGS_MASK …
#define PCR_ONLINE …
#define PCR_BCAST_CONN …
#define PCR_P2P_CONN_MASK …
#define PCR_P2P_CONN_SHIFT …
#define PCR_CHANNEL_MASK …
#define PCR_CHANNEL_SHIFT …
#define OPCR_XSPEED_MASK …
#define OPCR_XSPEED_SHIFT …
#define OPCR_SPEED_MASK …
#define OPCR_SPEED_SHIFT …
#define OPCR_OVERHEAD_ID_MASK …
#define OPCR_OVERHEAD_ID_SHIFT …
enum bus_reset_handling { … };
static __printf(2, 3)
void cmp_error(struct cmp_connection *c, const char *fmt, ...)
{ … }
static u64 mpr_address(struct cmp_connection *c)
{ … }
static u64 pcr_address(struct cmp_connection *c)
{ … }
static int pcr_modify(struct cmp_connection *c,
__be32 (*modify)(struct cmp_connection *c, __be32 old),
int (*check)(struct cmp_connection *c, __be32 pcr),
enum bus_reset_handling bus_reset_handling)
{ … }
int cmp_connection_init(struct cmp_connection *c,
struct fw_unit *unit,
enum cmp_direction direction,
unsigned int pcr_index)
{ … }
EXPORT_SYMBOL(…);
int cmp_connection_check_used(struct cmp_connection *c, bool *used)
{ … }
EXPORT_SYMBOL(…);
void cmp_connection_destroy(struct cmp_connection *c)
{ … }
EXPORT_SYMBOL(…);
int cmp_connection_reserve(struct cmp_connection *c,
unsigned int max_payload_bytes)
{ … }
EXPORT_SYMBOL(…);
void cmp_connection_release(struct cmp_connection *c)
{ … }
EXPORT_SYMBOL(…);
static __be32 ipcr_set_modify(struct cmp_connection *c, __be32 ipcr)
{ … }
static int get_overhead_id(struct cmp_connection *c)
{ … }
static __be32 opcr_set_modify(struct cmp_connection *c, __be32 opcr)
{ … }
static int pcr_set_check(struct cmp_connection *c, __be32 pcr)
{ … }
int cmp_connection_establish(struct cmp_connection *c)
{ … }
EXPORT_SYMBOL(…);
int cmp_connection_update(struct cmp_connection *c)
{ … }
EXPORT_SYMBOL(…);
static __be32 pcr_break_modify(struct cmp_connection *c, __be32 pcr)
{ … }
void cmp_connection_break(struct cmp_connection *c)
{ … }
EXPORT_SYMBOL(…);