Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros
be.h File Reference
#include <linux/pci.h>
#include <linux/if_vlan.h>
#include <linux/blk-iopoll.h>
#include "be_cmds.h"

Go to the source code of this file.

Data Structures

struct  be_dma_mem
 
struct  be_queue_info
 
struct  be_eq_obj
 
struct  be_mcc_obj
 
struct  be_ctrl_info
 

Macros

#define FW_VER_LEN   32
 
#define MCC_Q_LEN   128
 
#define MCC_CQ_LEN   256
 
#define MAX_MCC_CMD   16
 
#define BE_GEN2   2
 
#define BE_GEN3   3
 
#define PAGE_SHIFT_4K   12
 
#define PAGE_SIZE_4K   (1 << PAGE_SHIFT_4K)
 
#define mcc_timeout   120000 /* 5s timeout */
 
#define PAGES_4K_SPANNED(_address, size)
 
#define AMAP_BIT_OFFSET(_struct, field)   (((size_t)&(((_struct *)0)->field))%32)
 
#define AMAP_SET_BITS(_struct, field, ptr, val)
 
#define AMAP_GET_BITS(_struct, field, ptr)
 
#define be_dws_cpu_to_le(wrb, len)   swap_dws(wrb, len)
 
#define be_dws_le_to_cpu(wrb, len)   swap_dws(wrb, len)
 

Macro Definition Documentation

#define AMAP_BIT_OFFSET (   _struct,
  field 
)    (((size_t)&(((_struct *)0)->field))%32)

Definition at line 136 of file be.h.

#define AMAP_GET_BITS (   _struct,
  field,
  ptr 
)
Value:
amap_get(ptr, \
offsetof(_struct, field)/32, \
amap_mask(sizeof(((_struct *)0)->field)), \

Definition at line 166 of file be.h.

#define AMAP_SET_BITS (   _struct,
  field,
  ptr,
  val 
)
Value:
amap_set(ptr, \
offsetof(_struct, field)/32, \
amap_mask(sizeof(((_struct *)0)->field)), \
AMAP_BIT_OFFSET(_struct, field), \
val)

Definition at line 153 of file be.h.

#define be_dws_cpu_to_le (   wrb,
  len 
)    swap_dws(wrb, len)

Definition at line 172 of file be.h.

#define be_dws_le_to_cpu (   wrb,
  len 
)    swap_dws(wrb, len)

Definition at line 173 of file be.h.

#define BE_GEN2   2

Definition at line 29 of file be.h.

#define BE_GEN3   3

Definition at line 30 of file be.h.

#define FW_VER_LEN   32

Copyright (C) 2005 - 2011 Emulex All rights reserved.

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation. The full GNU General Public License is included in this distribution in the file called COPYING.

Contact Information: linux.nosp@m.-dri.nosp@m.vers@.nosp@m.emul.nosp@m.ex.co.nosp@m.m

Emulex 3333 Susan Street Costa Mesa, CA 92626

Definition at line 24 of file be.h.

#define MAX_MCC_CMD   16

Definition at line 27 of file be.h.

#define MCC_CQ_LEN   256

Definition at line 26 of file be.h.

#define MCC_Q_LEN   128

Definition at line 25 of file be.h.

#define mcc_timeout   120000 /* 5s timeout */

Definition at line 128 of file be.h.

#define PAGE_SHIFT_4K   12

Definition at line 126 of file be.h.

#define PAGE_SIZE_4K   (1 << PAGE_SHIFT_4K)

Definition at line 127 of file be.h.

#define PAGES_4K_SPANNED (   _address,
  size 
)
Value:
((u32)((((size_t)(_address) & (PAGE_SIZE_4K - 1)) + \

Definition at line 131 of file be.h.