#define bib_imc ((1) << 31)
static u32 *
-generate_config_rom (struct fw_card *card, size_t *config_rom_length)
+generate_config_rom(struct fw_card *card, size_t *config_rom_length)
{
struct fw_descriptor *desc;
static u32 config_rom[256];
}
static void
-update_config_roms (void)
+update_config_roms(void)
{
struct fw_card *card;
u32 *config_rom;
}
int
-fw_core_add_descriptor (struct fw_descriptor *desc)
+fw_core_add_descriptor(struct fw_descriptor *desc)
{
size_t i;
mutex_lock(&card_mutex);
- list_add_tail (&desc->link, &descriptor_list);
+ list_add_tail(&desc->link, &descriptor_list);
descriptor_count++;
if (desc->immediate > 0)
descriptor_count++;
EXPORT_SYMBOL(fw_core_add_descriptor);
void
-fw_core_remove_descriptor (struct fw_descriptor *desc)
+fw_core_remove_descriptor(struct fw_descriptor *desc)
{
mutex_lock(&card_mutex);
fw_card_get(card);
mutex_lock(&card_mutex);
- config_rom = generate_config_rom (card, &length);
+ config_rom = generate_config_rom(card, &length);
list_add_tail(&card->link, &card_list);
mutex_unlock(&card_mutex);
const u32 *data;
};
-int fw_core_add_descriptor (struct fw_descriptor *desc);
-void fw_core_remove_descriptor (struct fw_descriptor *desc);
+int fw_core_add_descriptor(struct fw_descriptor *desc);
+void fw_core_remove_descriptor(struct fw_descriptor *desc);
-typedef void (*fw_packet_callback_t) (struct fw_packet *packet,
- struct fw_card *card, int status);
+typedef void (*fw_packet_callback_t)(struct fw_packet *packet,
+ struct fw_card *card, int status);
typedef void (*fw_transaction_callback_t)(struct fw_card *card, int rcode,
void *data,
static inline struct fw_packet *
fw_packet(struct list_head *l)
{
- return list_entry (l, struct fw_packet, link);
+ return list_entry(l, struct fw_packet, link);
}
struct fw_address_handler {
struct fw_iso_context;
-typedef void (*fw_iso_callback_t) (struct fw_iso_context *context,
- u32 cycle,
- size_t header_length,
- void *header,
- void *data);
+typedef void (*fw_iso_callback_t)(struct fw_iso_context *context,
+ u32 cycle,
+ size_t header_length,
+ void *header,
+ void *data);
/*
* An iso buffer is just a set of pages mapped for DMA in the
* enable the PHY or set the link_on bit and initiate a bus
* reset.
*/
- int (*enable) (struct fw_card *card, u32 *config_rom, size_t length);
+ int (*enable)(struct fw_card *card, u32 *config_rom, size_t length);
- int (*update_phy_reg) (struct fw_card *card, int address,
- int clear_bits, int set_bits);
+ int (*update_phy_reg)(struct fw_card *card, int address,
+ int clear_bits, int set_bits);
/*
* Update the config rom for an enabled card. This function
* should change the config rom that is presented on the bus
* an initiate a bus reset.
*/
- int (*set_config_rom) (struct fw_card *card,
- u32 *config_rom, size_t length);
+ int (*set_config_rom)(struct fw_card *card,
+ u32 *config_rom, size_t length);
- void (*send_request) (struct fw_card *card, struct fw_packet *packet);
- void (*send_response) (struct fw_card *card, struct fw_packet *packet);
+ void (*send_request)(struct fw_card *card, struct fw_packet *packet);
+ void (*send_response)(struct fw_card *card, struct fw_packet *packet);
/* Calling cancel is valid once a packet has been submitted. */
- int (*cancel_packet) (struct fw_card *card, struct fw_packet *packet);
+ int (*cancel_packet)(struct fw_card *card, struct fw_packet *packet);
/*
* Allow the specified node ID to do direct DMA out and in of
* doesn't support this, -ESTALE if the generation doesn't
* match.
*/
- int (*enable_phys_dma) (struct fw_card *card,
- int node_id, int generation);
+ int (*enable_phys_dma)(struct fw_card *card,
+ int node_id, int generation);
- u64 (*get_bus_time) (struct fw_card *card);
+ u64 (*get_bus_time)(struct fw_card *card);
struct fw_iso_context *
(*allocate_iso_context)(struct fw_card *card,