Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
core-card.c File Reference
#include <linux/bug.h>
#include <linux/completion.h>
#include <linux/crc-itu-t.h>
#include <linux/device.h>
#include <linux/errno.h>
#include <linux/firewire.h>
#include <linux/firewire-constants.h>
#include <linux/jiffies.h>
#include <linux/kernel.h>
#include <linux/kref.h>
#include <linux/list.h>
#include <linux/module.h>
#include <linux/mutex.h>
#include <linux/spinlock.h>
#include <linux/workqueue.h>
#include <linux/atomic.h>
#include <asm/byteorder.h>
#include "core.h"

Go to the source code of this file.

Macros

#define define_fw_printk_level(func, kern_level)
 
#define BIB_CRC(v)   ((v) << 0)
 
#define BIB_CRC_LENGTH(v)   ((v) << 16)
 
#define BIB_INFO_LENGTH(v)   ((v) << 24)
 
#define BIB_BUS_NAME   0x31333934 /* "1394" */
 
#define BIB_LINK_SPEED(v)   ((v) << 0)
 
#define BIB_GENERATION(v)   ((v) << 4)
 
#define BIB_MAX_ROM(v)   ((v) << 8)
 
#define BIB_MAX_RECEIVE(v)   ((v) << 12)
 
#define BIB_CYC_CLK_ACC(v)   ((v) << 16)
 
#define BIB_PMC   ((1) << 27)
 
#define BIB_BMC   ((1) << 28)
 
#define BIB_ISC   ((1) << 29)
 
#define BIB_CMC   ((1) << 30)
 
#define BIB_IRMC   ((1) << 31)
 
#define NODE_CAPABILITIES   0x0c0083c0 /* per IEEE 1394 clause 8.3.2.6.5.2 */
 
#define DEFAULT_SPLIT_TIMEOUT   (2 * 8000)
 
#define CANON_OUI   0x000085
 

Functions

 define_fw_printk_level (fw_err, KERN_ERR)
 
 define_fw_printk_level (fw_notice, KERN_NOTICE)
 
int fw_compute_block_crc (__be32 *block)
 
int fw_core_add_descriptor (struct fw_descriptor *desc)
 
 EXPORT_SYMBOL (fw_core_add_descriptor)
 
void fw_core_remove_descriptor (struct fw_descriptor *desc)
 
 EXPORT_SYMBOL (fw_core_remove_descriptor)
 
void fw_schedule_bus_reset (struct fw_card *card, bool delayed, bool short_reset)
 
 EXPORT_SYMBOL (fw_schedule_bus_reset)
 
void fw_schedule_bm_work (struct fw_card *card, unsigned long delay)
 
void fw_card_initialize (struct fw_card *card, const struct fw_card_driver *driver, struct device *device)
 
 EXPORT_SYMBOL (fw_card_initialize)
 
int fw_card_add (struct fw_card *card, u32 max_receive, u32 link_speed, u64 guid)
 
 EXPORT_SYMBOL (fw_card_add)
 
void fw_card_release (struct kref *kref)
 
 EXPORT_SYMBOL_GPL (fw_card_release)
 
void fw_core_remove_card (struct fw_card *card)
 
 EXPORT_SYMBOL (fw_core_remove_card)
 

Macro Definition Documentation

#define BIB_BMC   ((1) << 28)

Definition at line 88 of file core-card.c.

#define BIB_BUS_NAME   0x31333934 /* "1394" */

Definition at line 81 of file core-card.c.

#define BIB_CMC   ((1) << 30)

Definition at line 90 of file core-card.c.

#define BIB_CRC (   v)    ((v) << 0)

Definition at line 78 of file core-card.c.

#define BIB_CRC_LENGTH (   v)    ((v) << 16)

Definition at line 79 of file core-card.c.

#define BIB_CYC_CLK_ACC (   v)    ((v) << 16)

Definition at line 86 of file core-card.c.

#define BIB_GENERATION (   v)    ((v) << 4)

Definition at line 83 of file core-card.c.

#define BIB_INFO_LENGTH (   v)    ((v) << 24)

Definition at line 80 of file core-card.c.

#define BIB_IRMC   ((1) << 31)

Definition at line 91 of file core-card.c.

#define BIB_ISC   ((1) << 29)

Definition at line 89 of file core-card.c.

#define BIB_LINK_SPEED (   v)    ((v) << 0)

Definition at line 82 of file core-card.c.

#define BIB_MAX_RECEIVE (   v)    ((v) << 12)

Definition at line 85 of file core-card.c.

#define BIB_MAX_ROM (   v)    ((v) << 8)

Definition at line 84 of file core-card.c.

#define BIB_PMC   ((1) << 27)

Definition at line 87 of file core-card.c.

#define CANON_OUI   0x000085

Definition at line 101 of file core-card.c.

#define DEFAULT_SPLIT_TIMEOUT   (2 * 8000)

Definition at line 99 of file core-card.c.

#define define_fw_printk_level (   func,
  kern_level 
)
Value:
void func(const struct fw_card *card, const char *fmt, ...) \
{ \
va_start(args, fmt); \
vaf.fmt = fmt; \
vaf.va = &args; \
printk(kern_level KBUILD_MODNAME " %s: %pV", \
dev_name(card->device), &vaf); \
va_end(args); \
}

Definition at line 40 of file core-card.c.

#define NODE_CAPABILITIES   0x0c0083c0 /* per IEEE 1394 clause 8.3.2.6.5.2 */

Definition at line 92 of file core-card.c.

Function Documentation

define_fw_printk_level ( fw_err  ,
KERN_ERR   
)
define_fw_printk_level ( fw_notice  ,
KERN_NOTICE   
)
EXPORT_SYMBOL ( fw_core_add_descriptor  )
EXPORT_SYMBOL ( fw_core_remove_descriptor  )
EXPORT_SYMBOL ( fw_schedule_bus_reset  )
EXPORT_SYMBOL ( fw_card_initialize  )
EXPORT_SYMBOL ( fw_card_add  )
EXPORT_SYMBOL ( fw_core_remove_card  )
EXPORT_SYMBOL_GPL ( fw_card_release  )
int fw_card_add ( struct fw_card card,
u32  max_receive,
u32  link_speed,
u64  guid 
)

Definition at line 559 of file core-card.c.

void fw_card_initialize ( struct fw_card card,
const struct fw_card_driver driver,
struct device device 
)

Definition at line 527 of file core-card.c.

void fw_card_release ( struct kref kref)

Definition at line 673 of file core-card.c.

int fw_compute_block_crc ( __be32 block)

Definition at line 56 of file core-card.c.

int fw_core_add_descriptor ( struct fw_descriptor desc)

Definition at line 180 of file core-card.c.

void fw_core_remove_card ( struct fw_card card)

Definition at line 681 of file core-card.c.

void fw_core_remove_descriptor ( struct fw_descriptor desc)

Definition at line 217 of file core-card.c.

void fw_schedule_bm_work ( struct fw_card card,
unsigned long  delay 
)

Definition at line 293 of file core-card.c.

void fw_schedule_bus_reset ( struct fw_card card,
bool  delayed,
bool  short_reset 
)

Definition at line 240 of file core-card.c.