Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Variables
cna.h File Reference
#include <linux/kernel.h>
#include <linux/types.h>
#include <linux/mutex.h>
#include <linux/pci.h>
#include <linux/delay.h>
#include <linux/bitops.h>
#include <linux/timer.h>
#include <linux/interrupt.h>
#include <linux/if_vlan.h>
#include <linux/if_ether.h>

Go to the source code of this file.

Data Structures

struct  mac
 

Macros

#define bfa_sm_fault(__event)
 
#define CNA_FW_FILE_CT   "ctfw.bin"
 
#define CNA_FW_FILE_CT2   "ct2fw.bin"
 
#define FC_SYMNAME_MAX   256
 
#define bfa_q_first(_q)   ((void *)(((struct list_head *) (_q))->next))
 
#define bfa_q_next(_qe)   (((struct list_head *) (_qe))->next)
 
#define bfa_q_prev(_qe)   (((struct list_head *) (_qe))->prev)
 
#define bfa_q_qe_init(_qe)
 
#define bfa_q_deq(_q, _qe)
 
#define bfa_q_deq_tail(_q, _qe)
 
#define bfa_q_enq_head(_q, _qe)
 

Typedefs

typedef struct mac mac_t
 

Variables

char bfa_version []
 

Macro Definition Documentation

#define bfa_q_deq (   _q,
  _qe 
)
Value:
{ \
if (!list_empty(_q)) { \
(*((struct list_head **) (_qe))) = bfa_q_next(_q); \
bfa_q_prev(bfa_q_next(*((struct list_head **) _qe))) = \
(struct list_head *) (_q); \
bfa_q_next(_q) = bfa_q_next(*((struct list_head **) _qe)); \
bfa_q_qe_init(*((struct list_head **) _qe)); \
} else { \
*((struct list_head **)(_qe)) = NULL; \
} \
}

Definition at line 65 of file cna.h.

#define bfa_q_deq_tail (   _q,
  _qe 
)
Value:
{ \
if (!list_empty(_q)) { \
*((struct list_head **) (_qe)) = bfa_q_prev(_q); \
bfa_q_next(bfa_q_prev(*((struct list_head **) _qe))) = \
(struct list_head *) (_q); \
bfa_q_prev(_q) = bfa_q_prev(*(struct list_head **) _qe);\
bfa_q_qe_init(*((struct list_head **) _qe)); \
} else { \
*((struct list_head **) (_qe)) = (struct list_head *) NULL; \
} \
}

Definition at line 80 of file cna.h.

#define bfa_q_enq_head (   _q,
  _qe 
)
Value:
{ \
if (!(bfa_q_next(_qe) == NULL) && (bfa_q_prev(_qe) == NULL)) \
pr_err("Assertion failure: %s:%d: %d", \
__FILE__, __LINE__, \
(bfa_q_next(_qe) == NULL) && (bfa_q_prev(_qe) == NULL));\
bfa_q_next(_qe) = bfa_q_next(_q); \
bfa_q_prev(_qe) = (struct list_head *) (_q); \
bfa_q_prev(bfa_q_next(_q)) = (struct list_head *) (_qe); \
bfa_q_next(_q) = (struct list_head *) (_qe); \
}

Definition at line 95 of file cna.h.

#define bfa_q_first (   _q)    ((void *)(((struct list_head *) (_q))->next))

Definition at line 50 of file cna.h.

#define bfa_q_next (   _qe)    (((struct list_head *) (_qe))->next)

Definition at line 51 of file cna.h.

#define bfa_q_prev (   _qe)    (((struct list_head *) (_qe))->prev)

Definition at line 52 of file cna.h.

#define bfa_q_qe_init (   _qe)
Value:
{ \
bfa_q_next(_qe) = (struct list_head *) NULL; \
bfa_q_prev(_qe) = (struct list_head *) NULL; \
}

Definition at line 57 of file cna.h.

#define bfa_sm_fault (   __event)
Value:
do { \
pr_err("SM Assertion failure: %s: %d: event = %d\n", \
__FILE__, __LINE__, __event); \
} while (0)

Definition at line 33 of file cna.h.

#define CNA_FW_FILE_CT   "ctfw.bin"

Definition at line 40 of file cna.h.

#define CNA_FW_FILE_CT2   "ct2fw.bin"

Definition at line 41 of file cna.h.

#define FC_SYMNAME_MAX   256

max name server symbolic name size

Definition at line 42 of file cna.h.

Typedef Documentation

typedef struct mac mac_t

Variable Documentation

char bfa_version[]