Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Typedefs | Functions
core-topology.c File Reference
#include <linux/bug.h>
#include <linux/errno.h>
#include <linux/firewire.h>
#include <linux/firewire-constants.h>
#include <linux/jiffies.h>
#include <linux/kernel.h>
#include <linux/list.h>
#include <linux/module.h>
#include <linux/slab.h>
#include <linux/spinlock.h>
#include <linux/atomic.h>
#include <asm/byteorder.h>
#include "core.h"

Go to the source code of this file.

Macros

#define SELF_ID_PHY_ID(q)   (((q) >> 24) & 0x3f)
 
#define SELF_ID_EXTENDED(q)   (((q) >> 23) & 0x01)
 
#define SELF_ID_LINK_ON(q)   (((q) >> 22) & 0x01)
 
#define SELF_ID_GAP_COUNT(q)   (((q) >> 16) & 0x3f)
 
#define SELF_ID_PHY_SPEED(q)   (((q) >> 14) & 0x03)
 
#define SELF_ID_CONTENDER(q)   (((q) >> 11) & 0x01)
 
#define SELF_ID_PHY_INITIATOR(q)   (((q) >> 1) & 0x01)
 
#define SELF_ID_MORE_PACKETS(q)   (((q) >> 0) & 0x01)
 
#define SELF_ID_EXT_SEQUENCE(q)   (((q) >> 20) & 0x07)
 
#define SELFID_PORT_CHILD   0x3
 
#define SELFID_PORT_PARENT   0x2
 
#define SELFID_PORT_NCONN   0x1
 
#define SELFID_PORT_NONE   0x0
 

Typedefs

typedef void(* fw_node_callback_t )(struct fw_card *card, struct fw_node *node, struct fw_node *parent)
 

Functions

void fw_destroy_nodes (struct fw_card *card)
 
void fw_core_handle_bus_reset (struct fw_card *card, int node_id, int generation, int self_id_count, u32 *self_ids, bool bm_abdicate)
 
 EXPORT_SYMBOL (fw_core_handle_bus_reset)
 

Macro Definition Documentation

#define SELF_ID_CONTENDER (   q)    (((q) >> 11) & 0x01)

Definition at line 42 of file core-topology.c.

#define SELF_ID_EXT_SEQUENCE (   q)    (((q) >> 20) & 0x07)

Definition at line 46 of file core-topology.c.

#define SELF_ID_EXTENDED (   q)    (((q) >> 23) & 0x01)

Definition at line 38 of file core-topology.c.

#define SELF_ID_GAP_COUNT (   q)    (((q) >> 16) & 0x3f)

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

#define SELF_ID_LINK_ON (   q)    (((q) >> 22) & 0x01)

Definition at line 39 of file core-topology.c.

#define SELF_ID_MORE_PACKETS (   q)    (((q) >> 0) & 0x01)

Definition at line 44 of file core-topology.c.

#define SELF_ID_PHY_ID (   q)    (((q) >> 24) & 0x3f)

Definition at line 37 of file core-topology.c.

#define SELF_ID_PHY_INITIATOR (   q)    (((q) >> 1) & 0x01)

Definition at line 43 of file core-topology.c.

#define SELF_ID_PHY_SPEED (   q)    (((q) >> 14) & 0x03)

Definition at line 41 of file core-topology.c.

#define SELFID_PORT_CHILD   0x3

Definition at line 48 of file core-topology.c.

#define SELFID_PORT_NCONN   0x1

Definition at line 50 of file core-topology.c.

#define SELFID_PORT_NONE   0x0

Definition at line 51 of file core-topology.c.

#define SELFID_PORT_PARENT   0x2

Definition at line 49 of file core-topology.c.

Typedef Documentation

typedef void(* fw_node_callback_t)(struct fw_card *card, struct fw_node *node, struct fw_node *parent)

Definition at line 321 of file core-topology.c.

Function Documentation

EXPORT_SYMBOL ( fw_core_handle_bus_reset  )
void fw_core_handle_bus_reset ( struct fw_card card,
int  node_id,
int  generation,
int  self_id_count,
u32 self_ids,
bool  bm_abdicate 
)

Definition at line 519 of file core-topology.c.

void fw_destroy_nodes ( struct fw_card card)

Definition at line 390 of file core-topology.c.