Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
fcp.h File Reference

Go to the source code of this file.

Functions

int fcp_avc_transaction (struct fw_unit *unit, const void *command, unsigned int command_size, void *response, unsigned int response_size, unsigned int response_match_bytes)
 
void fcp_bus_reset (struct fw_unit *unit)
 

Function Documentation

int fcp_avc_transaction ( struct fw_unit unit,
const void command,
unsigned int  command_size,
void response,
unsigned int  response_size,
unsigned int  response_match_bytes 
)

fcp_avc_transaction - send an AV/C command and wait for its response : a unit on the target device : a buffer containing the command frame; must be DMA-able : the size of : a buffer for the response frame : the maximum size of : a bitmap specifying the bytes used to detect the correct response frame

This function sends a FCP command frame to the target and waits for the corresponding response frame to be returned.

Because it is possible for multiple FCP transactions to be active at the same time, the correct response frame is detected by the value of certain bytes. These bytes must be set in before calling this function, and the corresponding bits must be set in .

and can point to the same buffer.

Asynchronous operation (INTERIM, NOTIFY) is not supported at the moment.

Returns the actual size of the response frame, or a negative error code.

Definition at line 69 of file fcp.c.

void fcp_bus_reset ( struct fw_unit unit)

fcp_bus_reset - inform the target handler about a bus reset : the unit that might be used by fcp_avc_transaction()

This function must be called from the driver's .update handler to inform the FCP transaction handler that a bus reset has happened. Any pending FCP transactions are retried.

Definition at line 128 of file fcp.c.