Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
lib.c File Reference
#include <linux/delay.h>
#include <linux/device.h>
#include <linux/firewire.h>
#include <linux/module.h>
#include "lib.h"

Go to the source code of this file.

Macros

#define ERROR_RETRY_DELAY_MS   5
 

Functions

int snd_fw_transaction (struct fw_unit *unit, int tcode, u64 offset, void *buffer, size_t length)
 
 EXPORT_SYMBOL (snd_fw_transaction)
 
 MODULE_DESCRIPTION ("FireWire audio helper functions")
 
 MODULE_AUTHOR ("Clemens Ladisch <[email protected]>")
 
 MODULE_LICENSE ("GPL v2")
 

Macro Definition Documentation

#define ERROR_RETRY_DELAY_MS   5

Definition at line 14 of file lib.c.

Function Documentation

EXPORT_SYMBOL ( snd_fw_transaction  )
MODULE_AUTHOR ( "Clemens Ladisch <[email protected]>"  )
MODULE_DESCRIPTION ( "FireWire audio helper functions"  )
MODULE_LICENSE ( "GPL v2 )
int snd_fw_transaction ( struct fw_unit unit,
int  tcode,
u64  offset,
void buffer,
size_t  length 
)

snd_fw_transaction - send a request and wait for its completion : the driver's unit on the target device : the transaction code : the address in the target's address space : input/output data : length of

Submits an asynchronous request to the target device, and waits for the response. The node ID and the current generation are derived from . On a bus reset or an error, the transaction is retried a few times. Returns zero on success, or a negative error code.

Definition at line 29 of file lib.c.