Linux Kernel
3.7.1
|
Go to the source code of this file.
Data Structures | |
struct | cmp_connection |
Functions | |
int | cmp_connection_init (struct cmp_connection *connection, struct fw_unit *unit, unsigned int ipcr_index) |
void | cmp_connection_destroy (struct cmp_connection *connection) |
int | cmp_connection_establish (struct cmp_connection *connection, unsigned int max_payload) |
int | cmp_connection_update (struct cmp_connection *connection) |
void | cmp_connection_break (struct cmp_connection *connection) |
void cmp_connection_break | ( | struct cmp_connection * | c | ) |
void cmp_connection_destroy | ( | struct cmp_connection * | c | ) |
int cmp_connection_establish | ( | struct cmp_connection * | c, |
unsigned int | max_payload_bytes | ||
) |
cmp_connection_establish - establish a connection to the target : the connection manager : the amount of data (including CIP headers) per packet
This function establishes a point-to-point connection from the local computer to the target by allocating isochronous resources (channel and bandwidth) and setting the target's input plug control register. When this function succeeds, the caller is responsible for starting transmitting packets.
int cmp_connection_update | ( | struct cmp_connection * | c | ) |
cmp_connection_update - update the connection after a bus reset : the connection manager
This function must be called from the driver's .update handler to reestablish any connection that might have been active.
Returns zero on success, or a negative error code. On an error, the connection is broken and the caller must stop transmitting iso packets.